Debian Codegraph @

gui/dialogs/time-mode.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <name>time-mode</name>
6
7 <layout>vbox</layout>
8
9 <!-- titlebar -->
10 <group>
11 <layout>hbox</layout>
12
13 <text>
14 <label>Time Mode</label>
15 </text>
16
17 <empty>
18 <stretch>1</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 </group>
31
32 <hrule/>
33
34 <group>
35 <layout>vbox</layout>
36 <group>
37 <layout>hbox</layout>
38 <radio>
39 <halign>left</halign>
40 <label>Real time</label>
41 <property>/sim/multiplay/lag/master</property>
42 <live>true</live>
43 <binding>
44 <command>dialog-apply</command>
45 </binding>
46 <binding>
47 <command>nasal</command>
48 <script>
49 var v = props.globals.getNode("/sim/multiplay/lag/master").getBoolValue();
50 if (v) {
51 props.globals.getNode("/sim/time/simple-time/enabled", 1).setBoolValue(0);
52 }
53 </script>
54 </binding>
55 </radio>
56 <button>
57 <legend>Real time lag settings</legend>
58 <binding>
59 <command>dialog-show</command>
60 <dialog-name>lag-adjust</dialog-name>
61 </binding>
62 </button>
63 </group>
64 <radio>
65 <halign>left</halign>
66 <label>Simple time</label>
67 <property>/sim/time/simple-time/enabled</property>
68 <live>true</live>
69 <binding>
70 <command>dialog-apply</command>
71 </binding>
72 <binding>
73 <command>nasal</command>
74 <script>
75 var v = props.globals.getNode("/sim/time/simple-time/enabled").getBoolValue();
76 if (v) {
77 props.globals.getNode("/sim/multiplay/lag/master", 1).setBoolValue(0);
78 }
79 </script>
80 </binding>
81 </radio>
82 <input>
83 <property>/sim/time/fixed-dt</property>
84 <label>Fixed dt</label>
85 <live>true</live>
86 <halign>left</halign>
87 <label></label>
88 <binding>
89 <command>dialog-apply</command>
90 </binding>
91 </input>
92 </group>
93
94 </PropertyList>