oprf_assets/SA-6/gui/dialogs/prio.xml

166 lines
5.4 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>priority</name>
<modal>false</modal>
<layout>vbox</layout>
<draggable>true</draggable>
<resizable>false</resizable>
<width>150</width>
<height>250</height>
<group>
<empty><stretch>1</stretch></empty>
<layout>hbox</layout>
<text>
<label>Priority</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>dialog-close</command>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<label>Random</label>
<halign>right</halign>
<row>0</row>
<col>0</col>
</text>
<radio>
<row>0</row>
<col>1</col>
<property>priority0</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",0);setprop("priority0",1);setprop("priority6",0);setprop("priority1",0);setprop("priority2",0);setprop("priority3",0);setprop("priority4",0);setprop("priority5",0);</script>
</binding>
</radio>
<text>
<label>Highest</label>
<halign>right</halign>
<row>1</row>
<col>0</col>
</text>
<radio>
<row>1</row>
<col>1</col>
<property>priority1</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",1);setprop("priority1",1);setprop("priority0",0);setprop("priority6",0);setprop("priority2",0);setprop("priority3",0);setprop("priority4",0);setprop("priority5",0);</script>
</binding>
</radio>
<text>
<label>Lowest</label>
<halign>right</halign>
<row>2</row>
<col>0</col>
</text>
<radio>
<row>2</row>
<col>1</col>
<property>priority2</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",2);setprop("priority2",1);setprop("priority0",0);setprop("priority1",0);setprop("priority6",0);setprop("priority3",0);setprop("priority4",0);setprop("priority5",0);</script>
</binding>
</radio>
<text>
<label>Fastest</label>
<halign>right</halign>
<row>3</row>
<col>0</col>
</text>
<radio>
<row>3</row>
<col>1</col>
<property>priority3</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",3);setprop("priority3",1);setprop("priority0",0);setprop("priority1",0);setprop("priority2",0);setprop("priority6",0);setprop("priority4",0);setprop("priority5",0);</script>
</binding>
</radio>
<text>
<label>Slowest</label>
<halign>right</halign>
<row>4</row>
<col>0</col>
</text>
<radio>
<row>4</row>
<col>1</col>
<property>priority4</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",4);setprop("priority4",1);setprop("priority0",0);setprop("priority1",0);setprop("priority2",0);setprop("priority3",0);setprop("priority6",0);setprop("priority5",0);</script>
</binding>
</radio>
<text>
<label>Closest</label>
<halign>right</halign>
<row>5</row>
<col>0</col>
</text>
<radio>
<row>5</row>
<col>1</col>
<property>priority5</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",5);setprop("priority5",1);setprop("priority0",0);setprop("priority1",0);setprop("priority2",0);setprop("priority3",0);setprop("priority4",0);setprop("priority6",0);</script>
</binding>
</radio>
<text>
<label>Farthest</label>
<halign>right</halign>
<row>6</row>
<col>0</col>
</text>
<radio>
<row>6</row>
<col>1</col>
<property>priority6</property>
<live>true</live>
<binding>
<command>nasal</command>
<script>setprop("priority",6);setprop("priority6",1);setprop("priority0",0);setprop("priority1",0);setprop("priority2",0);setprop("priority3",0);setprop("priority4",0);setprop("priority5",0);</script>
</binding>
</radio>
<input>
<row>7</row>
<col>0</col>
<width>75</width>
<height>25</height>
<label>DLNK</label>
<property>instrumentation/datalink/channel</property>
<live>true</live>
<halign>right</halign>
<binding>
<command>dialog-apply</command>
</binding>
<color>
<red>0.75</red>
<green>0.75</green>
<blue>1.0</blue>
</color>
</input>
</group>
</PropertyList>