Debian Codegraph @

Aircraft/ufo/Instruments/ehsi.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Electronic Horizontal Situational Indicator EHSI -->
3
4 <PropertyList>
5 <name>EHSI</name>
6 <w-base>270</w-base>
7 <h-base>270</h-base>
8
9 <layers>
10 <layer>
11 <name>background</name>
12 <w>256</w>
13 <h>256</h>
14 <texture>
15 <path>Aircraft/Instruments/Textures/radar_background.rgb</path>
16 <x1>0</x1>
17 <y1>0</y1>
18 <x2>1</x2>
19 <y2>1</y2>
20 </texture>
21 <emissive>true</emissive>
22 </layer>
23
24 <layer>
25 <name>weather data</name>
26 <emissive>true</emissive>
27 <w>256</w>
28 <h>256</h>
29 <texture>
30 <path>Aircraft/Instruments/Textures/od_wxradar.rgb</path>
31 <x1>0</x1>
32 <y1>0</y1>
33 <x2>1</x2>
34 <y2>1</y2>
35 </texture>
36 </layer>
37
38 <layer>
39 <name>TACAN ID</name>
40 <type>text</type>
41 <font>helvetica_bold</font>
42 <point-size>10</point-size>
43 <color>
44 <red>0.5</red>
45 <green>1.0</green>
46 <blue>0.5</blue>
47 </color>
48 <emissive>true</emissive>
49 <condition>
50 <and>
51 <equals>
52 <property>instrumentation/tacan/in-range</property>
53 <value>true</value>
54 </equals>
55 <equals>
56 <property>instrumentation/radar/mode-control</property>
57 <value>1</value>
58 </equals>
59 <less-than-equals>
60 <property>instrumentation/tacan/indicated-distance-nm</property>
61 <property>instrumentation/radar/range</property>
62 </less-than-equals>
63 <equals>
64 <property>instrumentation/radar/display-controls/data</property>
65 <value>true</value>
66 </equals>
67 </and>
68 </condition>
69 <chunks>
70 <chunk>
71 <type>text-value</type>
72 <property>instrumentation/tacan/ident</property>
73 </chunk>
74 </chunks>
75 <transformations>
76 <transformation>
77 <type>x-shift</type>
78 <property>instrumentation/tacan/display/x-shift-scaled</property>
79 </transformation>
80 <transformation>
81 <type>y-shift</type>
82 <property>instrumentation/tacan/display/y-shift-scaled</property>
83 <offset>-15</offset>
84 </transformation>
85 <transformation>
86 <type>rotation</type>
87 <property>instrumentation/tacan/display/rotation</property>
88 </transformation>
89 </transformations>
90 </layer>
91
92 <layer>
93 <name>outer range ring</name>
94 <type>text</type>
95 <font>helvetica_bold</font>
96 <point-size>12</point-size>
97 <color>
98 <red>0.5</red>
99 <green>1.0</green>
100 <blue>0.5</blue>
101 </color>
102 <emissive>true</emissive>
103 <chunks>
104 <chunk>
105 <type>number-value</type>
106 <property>instrumentation/radar/range</property>
107 <format>%2.1f</format>
108 </chunk>
109 </chunks>
110 <transformations>
111 <transformation>
112 <type>x-shift</type>
113 <offset>-90</offset>
114 </transformation>
115 <transformation>
116 <type>y-shift</type>
117 <offset>66</offset>
118 </transformation>
119 </transformations>
120 </layer>
121
122 <layer>
123 <name>inner range ring</name>
124 <type>text</type>
125 <font>helvetica_bold</font>
126 <point-size>12</point-size>
127 <color>
128 <red>0.5</red>
129 <green>1.0</green>
130 <blue>0.5</blue>
131 </color>
132 <emissive>true</emissive>
133 <chunks>
134 <chunk>
135 <type>number-value</type>
136 <property>instrumentation/radar/range</property>
137 <scale>0.5</scale>
138 <format>%2.1f</format>
139 </chunk>
140 </chunks>
141 <transformations>
142 <transformation>
143 <type>x-shift</type>
144 <offset>-50</offset>
145 </transformation>
146 <transformation>
147 <type>y-shift</type>
148 <offset>32</offset>
149 </transformation>
150 </transformations>
151 </layer>
152 </layers>
153
154 <actions>
155 <action>
156 <name>double range</name>
157 <button>0</button>
158 <x>-93</x>
159 <y>54</y>
160 <w>32</w>
161 <h>32</h>
162 <binding>
163 <command>nasal</command>
164 <script>
165 var p = "instrumentation/radar/range";
166 var v = getprop(p) * 2;
167 setprop(p, v > 640 ? 640 : v);
168 </script>
169 </binding>
170 </action>
171
172 <action>
173 <name>half range</name>
174 <button>0</button>
175 <x>-53</x>
176 <y>24</y>
177 <w>32</w>
178 <h>28</h>
179 <binding>
180 <command>nasal</command>
181 <script>
182 var p = "instrumentation/radar/range";
183 var v = getprop(p) * 0.5;
184 setprop(p, v &lt; 1.25 ? 1.25 : v);
185 </script>
186 </binding>
187 </action>
188
189 <action>
190 <name>wx toggle</name>
191 <button>0</button>
192 <x>-119</x>
193 <y>-119</y>
194 <w>50</w>
195 <h>30</h>
196 <binding>
197 <command>property-toggle</command>
198 <property>instrumentation/radar/display-controls/WX</property>
199 </binding>
200 </action>
201
202 <action>
203 <name>data toggle</name>
204 <button>0</button>
205 <x>3</x>
206 <y>-119</y>
207 <w>50</w>
208 <h>30</h>
209 <binding>
210 <command>property-toggle</command>
211 <property>instrumentation/radar/display-controls/data</property>
212 </binding>
213 </action>
214
215 <action>
216 <name>echo toggle</name>
217 <button>0</button>
218 <x>69</x>
219 <y>-119</y>
220 <w>50</w>
221 <h>30</h>
222 <binding>
223 <command>property-toggle</command>
224 <property>instrumentation/radar/display-controls/pos</property>
225 </binding>
226 </action>
227 </actions>
228 </PropertyList>