mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-24 14:19:12 +01:00
fix: the diesel throttle marker follows the controller only with a scaletable:
A mainctrlact: without a scaletable: (the shipped ST43 cabs) keeps its marker still, as before, instead of sweeping on an unchecked linear scale. A gauge redefined in the fixed form drops the scaletable: of its earlier definition.
This commit is contained in:
@@ -67,6 +67,9 @@ public:
|
||||
return ( static_cast<int>( type() ) & static_cast<int>( TGaugeType::toggle ) ) != 0; }
|
||||
bool is_delayed() const {
|
||||
return ( static_cast<int>( type() ) & static_cast<int>( TGaugeType::delayed ) ) != 0; }
|
||||
// true if the gauge was given a non-uniform scale (scaletable:)
|
||||
bool has_scaletable() const {
|
||||
return false == m_scaletable.empty(); }
|
||||
// members
|
||||
TSubModel *SubModel { nullptr }; // McZapkie-310302: zeby mozna bylo sprawdzac czy zainicjowany poprawnie
|
||||
TSubModel *SubModelOn { nullptr }; // optional submodel visible when the state input is set
|
||||
|
||||
Reference in New Issue
Block a user