| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <PropertyList> |
| 4 | <name>ai-objects</name> |
| 5 | <layout>vbox</layout> |
| 6 | <modal>false</modal> |
| 7 | <width>400</width> |
| 8 | |
| 9 | <group> |
| 10 | |
| 11 | <layout>hbox</layout> |
| 12 | |
| 13 | <text> |
| 14 | <label>Control Nearby AI Objects</label> |
| 15 | </text> |
| 16 | |
| 17 | <empty> |
| 18 | <stretch>true</stretch> |
| 19 | </empty> |
| 20 | |
| 21 | <button> |
| 22 | <legend>X</legend> |
| 23 | <key>Esc</key> |
| 24 | <pref-width>20</pref-width> |
| 25 | <pref-height>20</pref-height> |
| 26 | <binding> |
| 27 | <command>dialog-close</command> |
| 28 | </binding> |
| 29 | </button> |
| 30 | |
| 31 | </group> |
| 32 | |
| 33 | <hrule/> |
| 34 | |
| 35 | <group> |
| 36 | <layout>table</layout> |
| 37 | |
| 38 | <text> |
| 39 | <label>Select an AI object to bring up its own control dialog</label> |
| 40 | <halign>left</halign> |
| 41 | <row>0</row> |
| 42 | <col>0</col> |
| 43 | </text> |
| 44 | |
| 45 | <combo> |
| 46 | <row>1</row> |
| 47 | <col>0</col> |
| 48 | <name>object-selection</name> |
| 49 | <halign>left</halign> |
| 50 | <stretch>true</stretch> |
| 51 | <pref-width>300</pref-width> |
| 52 | <property>/ai/control/object-selected</property> |
| 53 | <properties>/ai/control/objects-nearby/</properties> |
| 54 | <value>Truman</value> |
| 55 | <binding> |
| 56 | <command>dialog-apply</command> |
| 57 | <object-name>object-selection</object-name> |
| 58 | </binding> |
| 59 | </combo> |
| 60 | |
| 61 | |
| 62 | |
| 63 | </group> |
| 64 | |
| 65 | |
| 66 | <empty> |
| 67 | <pref-height>12</pref-height> |
| 68 | </empty> |
| 69 | |
| 70 | <hrule/> |
| 71 | |
| 72 | <group> |
| 73 | <layout>table</layout> |
| 74 | |
| 75 | <button> |
| 76 | <row>0</row> |
| 77 | <col>0</col> |
| 78 | <legend>OK</legend> |
| 79 | <default>true</default> |
| 80 | <equal>true</equal> |
| 81 | <binding> |
| 82 | <command>dialog-apply</command> |
| 83 | </binding> |
| 84 | |
| 85 | <binding> |
| 86 | <command>nasal</command> |
| 87 | <script> |
| 88 | var obj_dlg_id = getprop("/ai/control/object-selected"); |
| 89 | |
| 90 | var dlg = gui.Dialog.new(obj_dlg_id); |
| 91 | dlg.open(); |
| 92 | |
| 93 | </script> |
| 94 | </binding> |
| 95 | |
| 96 | <binding> |
| 97 | <command>dialog-close</command> |
| 98 | </binding> |
| 99 | </button> |
| 100 | |
| 101 | <button> |
| 102 | <row>0</row> |
| 103 | <col>1</col> |
| 104 | <legend>Close</legend> |
| 105 | <default>true</default> |
| 106 | <binding> |
| 107 | <command>dialog-close</command> |
| 108 | </binding> |
| 109 | </button> |
| 110 | |
| 111 | </group> |
| 112 | |
| 113 | </PropertyList> |