mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 13:39:18 +02:00
Merge branch 'gfx-work' into sim
This commit is contained in:
@@ -136,7 +136,7 @@ drivingaid_panel::update() {
|
||||
}
|
||||
}
|
||||
std::string textline =
|
||||
( mover->SecuritySystem.is_vigilance_blinking() ?
|
||||
( (mover->SecuritySystem.is_vigilance_blinking() && (train != nullptr ? (train->fBlinkTimer > 0) : true)) ?
|
||||
STR("!ALERTER! ") :
|
||||
" " );
|
||||
textline +=
|
||||
@@ -959,6 +959,14 @@ debug_panel::update_section_scenario( std::vector<text_line> &Output ) {
|
||||
textline = "Cloud cover: " + to_string( Global.Overcast, 3 );
|
||||
textline += "\nLight level: " + to_string( Global.fLuminance, 3 );
|
||||
if( Global.FakeLight ) { textline += "(*)"; }
|
||||
textline +=
|
||||
"\nWind: azimuth "
|
||||
+ to_string( simulation::Environment.wind_azimuth(), 0 ) // ma być azymut, czyli 0 na północy i rośnie na wschód
|
||||
+ " "
|
||||
+ std::string( "N NEE SES SWW NW" )
|
||||
.substr( 0 + 2 * std::floor( std::fmod( 8 + ( glm::radians( simulation::Environment.wind_azimuth() ) + 0.5 * M_PI_4 ) / M_PI_4, 8 ) ), 2 )
|
||||
+ ", " + to_string( glm::length( simulation::Environment.wind() ), 1 ) + " m/s";
|
||||
|
||||
textline += "\nAir temperature: " + to_string( Global.AirTemperature, 1 ) + " deg C";
|
||||
|
||||
Output.emplace_back( textline, Global.UITextColor );
|
||||
|
||||
Reference in New Issue
Block a user