Debian Codegraph @

Aircraft/Instruments/clock.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default digital clock instrument.
5
6 Started summer 2000 by David Megginson, [email protected].
7
8 This is an instrument configuration file for the open-source flight
9 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
10 FlightGear property list defining the instrument's layers and actions.
11
12 Each instrument is composed of layers stacked on top of each other.
13 A layer may be a texture (with transparent parts to show the layers
14 underneath), text, or a special layer that switches between two
15 others (say, to turn an indicator light on or off). Each layer can
16 move independently in proportion to a property value, and text
17 can be generated from property values as well: all of the layer's
18 movements are defined as transformations.
19
20 Actions are hotspots on the instrument that will respond to a mouse
21 click. Actions always modify the values of properties, either by
22 adjusting them, toggling them, or swaping them with other
23 properties' values.
24 -->
25
26 <PropertyList>
27 <name>Digital Clock</name>
28 <w-base>120</w-base>
29 <h-base>120</h-base>
30
31 <layers>
32 <layer>
33 <name>bezel</name>
34 <condition>
35 <equals>
36 <property>/sim/aero</property>
37 <value>c172</value>
38 </equals>
39 </condition>
40 <texture>
41 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
42 <x1>0.0</x1>
43 <y1>0.0</y1>
44 <x2>1.0</x2>
45 <y2>1.0</y2>
46 </texture>
47 <transformations>
48 <transformation>
49 <type>y-shift</type>
50 <offset>0</offset>
51 </transformation>
52 <transformation>
53 <type>x-shift</type>
54 <offset>-0</offset>
55 </transformation>
56 </transformations>
57 <w>120</w>
58 <h>120</h>
59 </layer>
60
61 <layer>
62 <name>clock background</name>
63 <texture>
64 <path>Aircraft/Instruments/Textures/faces-3.rgb</path>
65 <x1>0.5</x1>
66 <y1>0.0</y1>
67 <x2>1.0</x2>
68 <y2>0.5</y2>
69 </texture>
70 <w>115</w>
71 <h>115</h>
72 </layer>
73
74 <layer>
75 <name>display</name>
76 <type>text</type>
77 <font>led</font>
78 <point-size>6.5</point-size>
79 <color>
80 <red>0.0</red>
81 <green>0.0</green>
82 <blue>0.0</blue>
83 </color>
84 <chunks>
85 <chunk>
86 <type>text-value</type>
87 <property>/instrumentation/clock/indicated-string</property>
88 </chunk>
89 </chunks>
90 <transformations>
91 <transformation>
92 <type>x-shift</type>
93 <offset>-31</offset>
94 </transformation>
95 <transformation>
96 <type>y-shift</type>
97 <offset>-9</offset>
98 </transformation>
99 </transformations>
100 </layer>
101 <layer>
102 <name>glare shield</name>
103 <texture>
104 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
105 <x1>0.5</x1>
106 <y1>0.0</y1>
107 <x2>1.0</x2>
108 <y2>0.5</y2>
109 </texture>
110 <w>115</w>
111 <h>115</h>
112 <transformations>
113 <transformation>
114 <type>x-shift</type>
115 <offset>2</offset>
116 </transformation>
117 <transformation>
118 <type>y-shift</type>
119 <offset>-2</offset>
120 </transformation>
121 </transformations>
122 </layer>
123
124 </layers>
125
126 </PropertyList>