2007-02-24 19:48:02 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>ufo-adjust</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<x>-20</x>
|
|
|
|
<y>-20</y>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Adjust model</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<default>1</default>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>ufo.adjust_dialog.close()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule><whatever/></hrule>
|
|
|
|
|
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
var self = cmdarg();
|
2007-02-26 17:57:55 +00:00
|
|
|
var dlgname = self.getNode("name").getValue();
|
2007-03-23 23:13:59 +00:00
|
|
|
var kbdctrl = props.globals.getNode("/devices/status/keyboard/ctrl");
|
|
|
|
var kbdshift = props.globals.getNode("/devices/status/keyboard/shift");
|
2007-02-26 17:57:55 +00:00
|
|
|
|
|
|
|
var Value = {
|
|
|
|
new : func(name) {
|
|
|
|
var m = { parents: [Value] };
|
|
|
|
m.name = name;
|
|
|
|
var n = props.globals.getNode("/models/adjust/" ~ m.name, 1);
|
|
|
|
m.sliderN = n.getNode("slider", 1);
|
|
|
|
m.offsetN = n.getNode("offset", 1);
|
|
|
|
m.offsetN.setDoubleValue(0);
|
|
|
|
m.sliderN.setDoubleValue(0);
|
|
|
|
m.last_slider = 0;
|
|
|
|
m.center();
|
|
|
|
m.sliderL = setlistener(m.sliderN, func { m.update() });
|
|
|
|
return m;
|
|
|
|
},
|
|
|
|
del : func {
|
|
|
|
removelistener(me.sliderL);
|
|
|
|
},
|
|
|
|
update : func {
|
2007-03-23 23:13:59 +00:00
|
|
|
var offset = me.sliderN.getValue();
|
|
|
|
var value = me.offsetN.getValue() + me.sliderN.getValue() - me.last_slider;
|
|
|
|
var factor = kbdctrl.getValue() ? 5 : kbdshift.getValue() ? 0.1 : 1;
|
|
|
|
ufo.modelmgr.adjust(me.name, value * factor, 1); # 1 -> scale with distance
|
2007-02-26 17:57:55 +00:00
|
|
|
me.offsetN.setDoubleValue(0);
|
2007-03-23 23:13:59 +00:00
|
|
|
me.last_slider = offset;
|
2007-02-26 17:57:55 +00:00
|
|
|
},
|
|
|
|
center : func {
|
|
|
|
me.offsetN.setValue(me.offsetN.getValue() + me.sliderN.getValue());
|
|
|
|
me.sliderN.setDoubleValue(0);
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
var values = [
|
|
|
|
Value.new("longitudinal"),
|
|
|
|
Value.new("transversal"),
|
|
|
|
Value.new("altitude"),
|
|
|
|
Value.new("heading"),
|
|
|
|
Value.new("pitch"),
|
|
|
|
Value.new("roll"),
|
|
|
|
];
|
|
|
|
|
|
|
|
var center = func {
|
|
|
|
foreach (var v; values) {
|
|
|
|
v.center();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var update = func(w) {
|
|
|
|
self.setValues({"dialog-name": dlgname, "object-name": w});
|
|
|
|
fgcommand("dialog-update", self);
|
|
|
|
center();
|
|
|
|
}
|
2007-02-24 19:48:02 +00:00
|
|
|
</open>
|
2007-02-26 17:57:55 +00:00
|
|
|
|
|
|
|
<close>
|
|
|
|
foreach (var v; values) {
|
|
|
|
v.del();
|
|
|
|
}
|
|
|
|
</close>
|
2007-02-24 19:48:02 +00:00
|
|
|
</nasal>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/longitudinal/offset</property>
|
|
|
|
<step>-10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("longitudinal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/longitudinal/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("longitudinal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>longitudinal</name>
|
|
|
|
<property>/models/adjust/longitudinal/slider</property>
|
|
|
|
<legend>near/far</legend>
|
2007-02-24 19:48:02 +00:00
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>longitudinal</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/longitudinal/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("longitudinal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/longitudinal/offset</property>
|
|
|
|
<step>10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("longitudinal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/transversal/offset</property>
|
|
|
|
<step>-10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("transversal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/transversal/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("transversal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>transversal</name>
|
|
|
|
<property>/models/adjust/transversal/slider</property>
|
|
|
|
<legend>left/right</legend>
|
2007-02-24 19:48:02 +00:00
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>0.6</red>
|
|
|
|
<green>1.0</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
<alpha>1.0</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>transversal</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/transversal/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("transversal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/transversal/offset</property>
|
|
|
|
<step>10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("transversal")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/altitude/offset</property>
|
|
|
|
<step>-10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("altitude")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/altitude/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("altitude")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>altitude</name>
|
|
|
|
<property>/models/adjust/altitude/slider</property>
|
|
|
|
<legend>altitude</legend>
|
2007-02-24 19:48:02 +00:00
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>0.6</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>1.0</blue>
|
|
|
|
<alpha>1.0</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>altitude</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/altitude/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("altitude")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/altitude/offset</property>
|
|
|
|
<step>10</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("altitude")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/heading/offset</property>
|
|
|
|
<step>-6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("heading")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/heading/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("heading")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>heading</name>
|
|
|
|
<property>/models/adjust/heading/slider</property>
|
|
|
|
<legend>heading</legend>
|
2007-02-24 19:48:02 +00:00
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>1.0</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
<alpha>1.0</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>heading</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/heading/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("heading")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/heading/offset</property>
|
|
|
|
<step>6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("heading")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/pitch/offset</property>
|
|
|
|
<step>-6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("pitch")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/pitch/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("pitch")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>pitch</name>
|
|
|
|
<property>/models/adjust/pitch/slider</property>
|
2007-02-24 19:48:02 +00:00
|
|
|
<legend>pitch</legend>
|
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>1.0</blue>
|
|
|
|
<alpha>1.0</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>pitch</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/pitch/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("pitch")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/pitch/offset</property>
|
|
|
|
<step>6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("pitch")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><<</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/roll/offset</property>
|
|
|
|
<step>-6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("roll")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend><</legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/roll/offset</property>
|
|
|
|
<step>-1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("roll")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<slider>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>roll</name>
|
|
|
|
<property>/models/adjust/roll/slider</property>
|
2007-02-24 19:48:02 +00:00
|
|
|
<legend>roll</legend>
|
|
|
|
<pref-width>250</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<min>-1</min>
|
|
|
|
<max>1</max>
|
2007-02-24 19:48:02 +00:00
|
|
|
|
|
|
|
<color>
|
|
|
|
<red>0.6</red>
|
|
|
|
<green>1.0</green>
|
|
|
|
<blue>1.0</blue>
|
|
|
|
<alpha>1.0</alpha>
|
|
|
|
</color>
|
|
|
|
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>roll</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/roll/offset</property>
|
|
|
|
<step>1</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("roll")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>>></legend>
|
|
|
|
<pref-width>22</pref-width>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<live>1</live>
|
|
|
|
|
2007-02-26 17:57:55 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/models/adjust/roll/offset</property>
|
|
|
|
<step>6</step>
|
|
|
|
</binding>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>update("roll")</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Heading </label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>Sliders</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Orientation</label>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>2</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<halign>right</halign>
|
|
|
|
<legend>Reset</legend>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<pref-width>60</pref-width>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>ufo.modelmgr.reset_heading()</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>sticky-heading</name>
|
2007-02-24 19:48:02 +00:00
|
|
|
<legend>Sticky</legend>
|
|
|
|
<one-shot>0</one-shot>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<pref-width>55</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<property>/models/adjust/sticky-heading</property>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>sticky-heading</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<halign>center</halign>
|
|
|
|
<legend>Center</legend>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<pref-width>60</pref-width>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>center()</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
2007-02-26 17:57:55 +00:00
|
|
|
<name>sticky-orientation</name>
|
2007-02-24 19:48:02 +00:00
|
|
|
<legend>Sticky</legend>
|
|
|
|
<one-shot>0</one-shot>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<pref-width>55</pref-width>
|
|
|
|
<live>1</live>
|
2007-02-26 17:57:55 +00:00
|
|
|
<property>/models/adjust/sticky-orientation</property>
|
2007-02-24 19:48:02 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<object-name>sticky-orientation</object-name>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<halign>left</halign>
|
|
|
|
<legend>Reset</legend>
|
|
|
|
<pref-height>22</pref-height>
|
|
|
|
<pref-width>60</pref-width>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
2007-02-26 17:57:55 +00:00
|
|
|
<script>ufo.modelmgr.reset_orientation()</script>
|
2007-02-24 19:48:02 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
</PropertyList>
|