I have such weird problem:
I have here this slider, and he works fine in the air, but for some reason on the ground the property adjusts, but the setlistener on it doesn't work..... I cannot understand... Any ideas?
- Code: Select all
<slider>
<pref-width>180</pref-width>
<property>/autopilot-v/pitch-knob</property>
<step>1</step>
<min>1</min>
<max>5</max>
<live type="bool">true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
- Code: Select all
setlistener("/autopilot-v/pitch-knob", func {
# do stuff
});
Anything seem wrong here? Keep in mind when I adjust the property /autopilot-v/pitch-knob from PropertyBrowser, it works... so WTF?
IT GETS WORSE:
- Code: Select all
<slider>
<pref-width>205</pref-width>
<property>/autopilot-v/roll-knob</property>
<step>1</step>
<min>1</min>
<max>5</max>
<live type="bool">true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
- Code: Select all
setlistener("/autopilot-v/roll-knob", func {
# do more stuff
});
EDIT: Made a correction -- typo
This one works fine, ALWAYS..... WTF?
Is there an obvious error, or is this another one of those weird FlightGear thingies...
Kind Regards,
Josh