mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 17:09:19 +02:00
build 200106. ep brake cab control, battery state cab indicator, additional cab control tooltips, minor bug fixes
This commit is contained in:
@@ -216,9 +216,12 @@ TGauge::Load_mapping( cParser &Input ) {
|
||||
if( key == "type:" ) {
|
||||
auto const gaugetype { Input.getToken<std::string>( true, "\n\r\t ,;" ) };
|
||||
m_type = (
|
||||
gaugetype == "push" ? TGaugeType::push :
|
||||
gaugetype == "impulse" ? TGaugeType::push :
|
||||
gaugetype == "return" ? TGaugeType::push :
|
||||
gaugetype == "delayed" ? TGaugeType::push_delayed :
|
||||
gaugetype == "pushtoggle" ? TGaugeType::pushtoggle :
|
||||
gaugetype == "toggle" ? TGaugeType::toggle :
|
||||
TGaugeType::toggle ); // default
|
||||
}
|
||||
else if( key == "soundinc:" ) {
|
||||
|
||||
Reference in New Issue
Block a user