Add hydraulic system, tidy pneumatic system
[fg:toms-fgdata.git] / Aircraft / Hurricane / Models / panel2-hotspots.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE PropertyList SYSTEM "panel.dtd">
3 <!--    This part should be the same for any 3D panel.  Customize the actions section -->
4 <PropertyList>
5         <name>Hurricane Panel 2 Hotspots</name>
6         <background>Aircraft/Hurricane/Models/transparent-bg.rgb</background>
7         <w>1024</w>
8         <h>768</h>
9         <y-offset>0</y-offset>
10         <instruments>
11                 <instrument>
12                         <name>Slope Controls</name>
13                         <x>512</x>
14                         <y>384</y>
15                         <w>1024</w>
16                         <h>768</h>
17                         <w-base>1024</w-base>
18                         <h-base>1024</h-base>
19                         <layers>
20                                 <layer>
21                                         <name>background</name>
22                                         <texture>
23                                                 <path>Aircraft/Hurricane/Models/transparent-bg.rgb</path>
24                                                 <x1>0.0</x1>
25                                                 <y1>0.0</y1>
26                                                 <x2>1.0</x2>
27                                                 <y2>1.0</y2>
28                                         </texture>
29                                 </layer>
30                                 <!-- <layer> 
31               <name>grid</name>
32               <texture> 
33                 <path>Aircraft/Hurricane/Models/hotspotgrid.rgb</path>
34                 <x1>0.0</x1>
35                 <y1>0.0</y1>
36                 <x2>1.0</x2>
37                 <y2>1.0</y2>
38               </texture>
39             </layer> -->
40                         </layers>
41                         <actions>
42                                 <!-- fuel cock -->
43                                 <action>
44                                         <name>lever open</name>
45                                         <button>0</button>
46                                         <x>-360</x>
47                                         <y>-155</y>
48                                         <w>50</w>
49                                         <h>50</h>
50                                         <binding>
51                                                 <command>nasal</command>
52                                                 <script>
53                                                         hurricane.openCock();
54                                                 </script>
55                                         </binding>
56                                 </action>
57                                 <action>
58                                         <name>lever close</name>
59                                         <button>0</button>
60                                         <x>-410</x>
61                                         <y>-155</y>
62                                         <w>50</w>
63                                         <h>50</h>
64                                         <binding>
65                                                 <command>nasal</command>
66                                                 <script>
67                                                         hurricane.closeCock();
68                                                 </script>
69                                         </binding>
70                                 </action>
71                                 <!-- hydraulic selector 
72                                 <action>
73                                         <name>flaps retract</name>
74                                         <button>0</button>
75                                         <x>355</x>
76                                         <y>-170</y>
77                                         <w>25</w>
78                                         <h>20</h>
79                                         <binding>
80                                                 <command>nasal</command>
81                                                 <script>hurricane.hydraulicLever(1,1)</script>
82                                         </binding>
83                                 </action>
84                                 <action>
85                                         <name>flaps neutral</name>
86                                         <button>0</button>
87                                         <x>355</x>
88                                         <y>-190</y>
89                                         <w>25</w>
90                                         <h>20</h>
91                                         <binding>
92                                                 <command>nasal</command>
93                                                 <script>hurricane.hydraulicLever(1,0)</script>
94                                         </binding>
95                                 </action>
96                                 <action>
97                                         <name>flaps extend</name>
98                                         <button>0</button>
99                                         <x>355</x>
100                                         <y>-210</y>
101                                         <w>25</w>
102                                         <h>20</h>
103                                         <binding>
104                                                 <command>nasal</command>
105                                                 <script>hurricane.hydraulicLever(1,-1)</script>
106                                         </binding>
107                                 </action>
108                                 <action>
109                                         <name>gear retract</name>
110                                         <button>0</button>
111                                         <x>335</x>
112                                         <y>-170</y>
113                                         <w>25</w>
114                                         <h>20</h>
115                                         <binding>
116                                                 <command>nasal</command>
117                                                 <script>hurricane.hydraulicLever(-1,1)</script>
118                                         </binding>
119                                 </action>
120                                 <action>
121                                         <name>gear neutral</name>
122                                         <button>0</button>
123                                         <x>335</x>
124                                         <y>-190</y>
125                                         <w>25</w>
126                                         <h>20</h>
127                                         <binding>
128                                                 <command>nasal</command>
129                                                 <script>hurricane.hydraulicLever(-1,0)</script>
130                                         </binding>
131                                 </action>
132                                 <action>
133                                         <name>gear extend</name>
134                                         <button>0</button>
135                                         <x>335</x>
136                                         <y>-210</y>
137                                         <w>25</w>
138                                         <h>20</h>
139                                         <binding>
140                                                 <command>nasal</command>
141                                                 <script>hurricane.hydraulicLever(-1,-1)</script>
142                                         </binding>
143                                 </action> -->
144                                 <!-- cut-off pull -->
145                                 <action>
146                                         <name>cut-off pull</name>
147                                         <button>0</button>
148                                         <x>390</x>
149                                         <y>-205</y>
150                                         <w>35</w>
151                                         <h>35</h>
152                                         <binding>
153                                                 <command>nasal</command>
154                                                 <script>
155                                                         hurricane.pullCutoff(1);
156                                                 </script>
157                                         </binding>
158                                         <mod-up>
159                                                 <binding>
160                                                         <command>nasal</command>
161                                                         <script>
162                                                                 hurricane.pullCutoff(0);
163                                                         </script>
164                                                 </binding>
165                                         </mod-up>
166                                 </action>
167                         </actions>
168                 </instrument>
169         </instruments>
170 </PropertyList>