forked from X-Friese/FlyWithLua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlyWithLua_Manual_en.out
275 lines (275 loc) · 26.1 KB
/
FlyWithLua_Manual_en.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
\BOOKMARK [1][-]{section.1}{Using the Plugin}{}% 1
\BOOKMARK [2][-]{subsection.1.1}{What's needed}{section.1}% 2
\BOOKMARK [2][-]{subsection.1.2}{Installation}{section.1}% 3
\BOOKMARK [2][-]{subsection.1.3}{How to interact with Lua}{section.1}% 4
\BOOKMARK [2][-]{subsection.1.4}{Lua variables and DataRefs}{section.1}% 5
\BOOKMARK [2][-]{subsection.1.5}{Writing a first config file}{section.1}% 6
\BOOKMARK [2][-]{subsection.1.6}{Pre-defined variables}{section.1}% 7
\BOOKMARK [2][-]{subsection.1.7}{Loop Callbacks}{section.1}% 8
\BOOKMARK [2][-]{subsection.1.8}{Menu entries}{section.1}% 9
\BOOKMARK [2][-]{subsection.1.9}{Menu switches}{section.1}% 10
\BOOKMARK [1][-]{section.2}{Reference}{}% 11
\BOOKMARK [2][-]{subsection.2.1}{Predefined variables}{section.2}% 12
\BOOKMARK [3][-]{subsubsection.2.1.1}{LONGITUDE}{subsection.2.1}% 13
\BOOKMARK [3][-]{subsubsection.2.1.2}{LATITUDE}{subsection.2.1}% 14
\BOOKMARK [3][-]{subsubsection.2.1.3}{PLANE\137ICAO}{subsection.2.1}% 15
\BOOKMARK [3][-]{subsubsection.2.1.4}{PLANE\137TAILNUMBER}{subsection.2.1}% 16
\BOOKMARK [3][-]{subsubsection.2.1.5}{SCREEN\137WIDTH}{subsection.2.1}% 17
\BOOKMARK [3][-]{subsubsection.2.1.6}{SCREEN\137HIGHT}{subsection.2.1}% 18
\BOOKMARK [3][-]{subsubsection.2.1.7}{MOUSE\137X}{subsection.2.1}% 19
\BOOKMARK [3][-]{subsubsection.2.1.8}{MOUSE\137Y}{subsection.2.1}% 20
\BOOKMARK [3][-]{subsubsection.2.1.9}{XSB\137METAR}{subsection.2.1}% 21
\BOOKMARK [3][-]{subsubsection.2.1.10}{LUA\137RUN}{subsection.2.1}% 22
\BOOKMARK [3][-]{subsubsection.2.1.11}{XPLANE\137VERSION}{subsection.2.1}% 23
\BOOKMARK [3][-]{subsubsection.2.1.12}{XPLANE\137HOSTID}{subsection.2.1}% 24
\BOOKMARK [3][-]{subsubsection.2.1.13}{SDK\137VERSION}{subsection.2.1}% 25
\BOOKMARK [3][-]{subsubsection.2.1.14}{SYSTEM}{subsection.2.1}% 26
\BOOKMARK [3][-]{subsubsection.2.1.15}{SYSTEM\137ARCHITECTURE}{subsection.2.1}% 27
\BOOKMARK [3][-]{subsubsection.2.1.16}{XPLANE\137LANGUAGE}{subsection.2.1}% 28
\BOOKMARK [3][-]{subsubsection.2.1.17}{DIRECTORY\137SEPARATOR}{subsection.2.1}% 29
\BOOKMARK [3][-]{subsubsection.2.1.18}{SCRIPT\137DIRECTORY}{subsection.2.1}% 30
\BOOKMARK [3][-]{subsubsection.2.1.19}{AIRCRAFT\137PATH}{subsection.2.1}% 31
\BOOKMARK [3][-]{subsubsection.2.1.20}{AIRCRAFT\137FILENAME}{subsection.2.1}% 32
\BOOKMARK [3][-]{subsubsection.2.1.21}{DO\137EVERY\137FRAME\137TIME\137SEC}{subsection.2.1}% 33
\BOOKMARK [3][-]{subsubsection.2.1.22}{DO\137EVERY\137DRAW\137TIME\137SEC}{subsection.2.1}% 34
\BOOKMARK [3][-]{subsubsection.2.1.23}{DO\137SOMETIMES\137TIME\137SEC}{subsection.2.1}% 35
\BOOKMARK [3][-]{subsubsection.2.1.24}{DO\137OFTEN\137TIME\137SEC}{subsection.2.1}% 36
\BOOKMARK [3][-]{subsubsection.2.1.25}{SCRIPTS\137LOADING\137TIME\137SEC}{subsection.2.1}% 37
\BOOKMARK [3][-]{subsubsection.2.1.26}{CLOCKS\137PER\137SEC}{subsection.2.1}% 38
\BOOKMARK [3][-]{subsubsection.2.1.27}{LUA\137MEMORY\137USAGE\137KB}{subsection.2.1}% 39
\BOOKMARK [2][-]{subsection.2.2}{Lua functions}{section.2}% 40
\BOOKMARK [3][-]{subsubsection.2.2.1}{DataRef\( "variable name", "DataRef name" \)}{subsection.2.2}% 41
\BOOKMARK [3][-]{subsubsection.2.2.2}{DataRef\( "variable name", "DataRef name", "readonly" \)}{subsection.2.2}% 42
\BOOKMARK [3][-]{subsubsection.2.2.3}{DataRef\( "variable name", "DataRef name", "readonly", index \)}{subsection.2.2}% 43
\BOOKMARK [3][-]{subsubsection.2.2.4}{DataRef name, Index, readonly, DataRef type, DataRef ID = get\137DataRef\137binding\( "variable name" \)}{subsection.2.2}% 44
\BOOKMARK [3][-]{subsubsection.2.2.5}{button\( button number \)}{subsection.2.2}% 45
\BOOKMARK [3][-]{subsubsection.2.2.6}{last\137button\( button number \)}{subsection.2.2}% 46
\BOOKMARK [3][-]{subsubsection.2.2.7}{create\137switch\( button number, DataRef name, index, off value, on value \)}{subsection.2.2}% 47
\BOOKMARK [3][-]{subsubsection.2.2.8}{create\137positive\137edge\137flip\( button number, DataRef name, index, first value, second value \)}{subsection.2.2}% 48
\BOOKMARK [3][-]{subsubsection.2.2.9}{create\137negative\137edge\137flip\( button number, DataRef name, index, first value, second value \)}{subsection.2.2}% 49
\BOOKMARK [3][-]{subsubsection.2.2.10}{create\137positive\137edge\137trigger\( button number, DataRef name, index, value \)}{subsection.2.2}% 50
\BOOKMARK [3][-]{subsubsection.2.2.11}{create\137negative\137edge\137trigger\( button number, DataRef name, index, value \)}{subsection.2.2}% 51
\BOOKMARK [3][-]{subsubsection.2.2.12}{create\137positive\137edge\137increment\( button number, DataRef name, index, stepping, limit, rounding \)}{subsection.2.2}% 52
\BOOKMARK [3][-]{subsubsection.2.2.13}{create\137negative\137edge\137increment\( button number, DataRef name, index, stepping, limit, rounding \)}{subsection.2.2}% 53
\BOOKMARK [3][-]{subsubsection.2.2.14}{create\137positive\137edge\137decrement\( button number, DataRef name, index, stepping, limit, rounding \)}{subsection.2.2}% 54
\BOOKMARK [3][-]{subsubsection.2.2.15}{create\137negative\137edge\137decrement\( button number, DataRef name, index, stepping, limit, rounding \)}{subsection.2.2}% 55
\BOOKMARK [3][-]{subsubsection.2.2.16}{create\137axis\137median\( axis number, variable name \)}{subsection.2.2}% 56
\BOOKMARK [3][-]{subsubsection.2.2.17}{get\( "DataRef name" \)}{subsection.2.2}% 57
\BOOKMARK [3][-]{subsubsection.2.2.18}{get\( "DataRef name", index \)}{subsection.2.2}% 58
\BOOKMARK [3][-]{subsubsection.2.2.19}{set\( "DataRef name", value \)}{subsection.2.2}% 59
\BOOKMARK [3][-]{subsubsection.2.2.20}{set\137array\( "DataRef name", index, value \)}{subsection.2.2}% 60
\BOOKMARK [3][-]{subsubsection.2.2.21}{set\137button\137assignment\( button number, "simulator function"\)}{subsection.2.2}% 61
\BOOKMARK [3][-]{subsubsection.2.2.22}{set\137axis\137assignment\( axis number, "axis function", "reverse"\)}{subsection.2.2}% 62
\BOOKMARK [3][-]{subsubsection.2.2.23}{clear\137all\137axis\137assignments\(\)}{subsection.2.2}% 63
\BOOKMARK [3][-]{subsubsection.2.2.24}{clear\137all\137button\137assignments\(\)}{subsection.2.2}% 64
\BOOKMARK [3][-]{subsubsection.2.2.25}{set\137pilots\137head\( x, y, z, heading, pitch \)}{subsection.2.2}% 65
\BOOKMARK [3][-]{subsubsection.2.2.26}{x, y, z, heading, pitch = get\137pilots\137head\( \)}{subsection.2.2}% 66
\BOOKMARK [3][-]{subsubsection.2.2.27}{command\137once\( "simulator function" \)}{subsection.2.2}% 67
\BOOKMARK [3][-]{subsubsection.2.2.28}{logMsg\( "string" \)}{subsection.2.2}% 68
\BOOKMARK [3][-]{subsubsection.2.2.29}{XSBSpeakString\( "string" \)}{subsection.2.2}% 69
\BOOKMARK [3][-]{subsubsection.2.2.30}{XPLMSpeakString\( "string" \)}{subsection.2.2}% 70
\BOOKMARK [3][-]{subsubsection.2.2.31}{print\( "string" \)}{subsection.2.2}% 71
\BOOKMARK [3][-]{subsubsection.2.2.32}{do\137sometimes\( "Lua code string" \)}{subsection.2.2}% 72
\BOOKMARK [3][-]{subsubsection.2.2.33}{do\137often\( "Lua code string" \)}{subsection.2.2}% 73
\BOOKMARK [3][-]{subsubsection.2.2.34}{do\137every\137frame\( "Lua code string" \)}{subsection.2.2}% 74
\BOOKMARK [3][-]{subsubsection.2.2.35}{do\137every\137draw\( "Lua code string" \)}{subsection.2.2}% 75
\BOOKMARK [3][-]{subsubsection.2.2.36}{do\137on\137keystroke\( "Lua code string" \)}{subsection.2.2}% 76
\BOOKMARK [3][-]{subsubsection.2.2.37}{do\137on\137mouse\137wheel\( "Lua code string" \)}{subsection.2.2}% 77
\BOOKMARK [3][-]{subsubsection.2.2.38}{do\137on\137mouse\137click\( "Lua code string" \)}{subsection.2.2}% 78
\BOOKMARK [3][-]{subsubsection.2.2.39}{do\137on\137new\137metar\( "Lua code string" \)}{subsection.2.2}% 79
\BOOKMARK [3][-]{subsubsection.2.2.40}{do\137on\137exit\( "Lua code string" \)}{subsection.2.2}% 80
\BOOKMARK [3][-]{subsubsection.2.2.41}{draw\137string\( x, y, "string" \)}{subsection.2.2}% 81
\BOOKMARK [3][-]{subsubsection.2.2.42}{draw\137string\( x, y, "string", "color" \)}{subsection.2.2}% 82
\BOOKMARK [3][-]{subsubsection.2.2.43}{draw\137string\( x, y, "string", red, green, blue \)}{subsection.2.2}% 83
\BOOKMARK [3][-]{subsubsection.2.2.44}{draw\137string\137Helvetica\13710\( x, y, "string" \)}{subsection.2.2}% 84
\BOOKMARK [3][-]{subsubsection.2.2.45}{draw\137string\137Helvetica\13712\( x, y, "string" \)}{subsection.2.2}% 85
\BOOKMARK [3][-]{subsubsection.2.2.46}{draw\137string\137Helvetica\13718\( x, y, "string" \)}{subsection.2.2}% 86
\BOOKMARK [3][-]{subsubsection.2.2.47}{draw\137string\137Times\137Roman\13710\( x, y, "string" \)}{subsection.2.2}% 87
\BOOKMARK [3][-]{subsubsection.2.2.48}{draw\137string\137Times\137Roman\13724\( x, y, "string" \)}{subsection.2.2}% 88
\BOOKMARK [3][-]{subsubsection.2.2.49}{measure\137string\( "string" \)}{subsection.2.2}% 89
\BOOKMARK [3][-]{subsubsection.2.2.50}{measure\137string\( "string", "font name" \)}{subsection.2.2}% 90
\BOOKMARK [3][-]{subsubsection.2.2.51}{hight, width = bubble\( x, y, "title", \203 \)}{subsection.2.2}% 91
\BOOKMARK [3][-]{subsubsection.2.2.52}{hight, width = big\137bubble\( x, y, "title", \203 \)}{subsection.2.2}% 92
\BOOKMARK [3][-]{subsubsection.2.2.53}{hight, width = huge\137bubble\( x, y, "title", \203 \)}{subsection.2.2}% 93
\BOOKMARK [3][-]{subsubsection.2.2.54}{add\137macro\( "macro name", "Lua code string" \)}{subsection.2.2}% 94
\BOOKMARK [3][-]{subsubsection.2.2.55}{add\137ATC\137macro\( "macro name", "Lua code string" \)}{subsection.2.2}% 95
\BOOKMARK [3][-]{subsubsection.2.2.56}{add\137macro\( "macro name", "activation code string", "deactivation code string", "default state" \)}{subsection.2.2}% 96
\BOOKMARK [3][-]{subsubsection.2.2.57}{create\137command\( "command name", "command description", "begin code string", "continue code string", "end code string" \)}{subsection.2.2}% 97
\BOOKMARK [3][-]{subsubsection.2.2.58}{table = directory\137to\137table\( "path" \)}{subsection.2.2}% 98
\BOOKMARK [3][-]{subsubsection.2.2.59}{place\137aircraft\137at\( "ICAO" \)}{subsection.2.2}% 99
\BOOKMARK [3][-]{subsubsection.2.2.60}{load\137aircraft\( "path and full filename" \)}{subsection.2.2}% 100
\BOOKMARK [3][-]{subsubsection.2.2.61}{load\137situation\( "path and full filename" \)}{subsection.2.2}% 101
\BOOKMARK [3][-]{subsubsection.2.2.62}{save\137situation\( "path and full filename" \)}{subsection.2.2}% 102
\BOOKMARK [3][-]{subsubsection.2.2.63}{crash\137the\137sim\(\)}{subsection.2.2}% 103
\BOOKMARK [1][-]{section.3}{Modules}{}% 104
\BOOKMARK [2][-]{subsection.3.1}{The Radio Module}{section.3}% 105
\BOOKMARK [2][-]{subsection.3.2}{The XSquawkBox Module}{section.3}% 106
\BOOKMARK [3][-]{subsubsection.3.2.1}{XSBConnect\(\)}{subsection.3.2}% 107
\BOOKMARK [3][-]{subsubsection.3.2.2}{XSBUserLogin\(\)}{subsection.3.2}% 108
\BOOKMARK [3][-]{subsubsection.3.2.3}{XSBDisconnect\(\)}{subsection.3.2}% 109
\BOOKMARK [3][-]{subsubsection.3.2.4}{XSBShowFlightplan\(\)}{subsection.3.2}% 110
\BOOKMARK [3][-]{subsubsection.3.2.5}{XSBSendFlightplan\(\)}{subsection.3.2}% 111
\BOOKMARK [3][-]{subsubsection.3.2.6}{frequency = XSBLookupATC\( "name string" \)}{subsection.3.2}% 112
\BOOKMARK [2][-]{subsection.3.3}{The Bit Module}{section.3}% 113
\BOOKMARK [1][-]{section.4}{OpenAL sound}{}% 114
\BOOKMARK [2][-]{subsection.4.1}{Buffers, Sounds and Listeners}{section.4}% 115
\BOOKMARK [2][-]{subsection.4.2}{Loading and defining sounds}{section.4}% 116
\BOOKMARK [3][-]{subsubsection.4.2.1}{table position = load\137WAV\137file\( filename \)}{subsection.4.2}% 117
\BOOKMARK [3][-]{subsubsection.4.2.2}{let\137sound\137loop\( table position, boolean value \)}{subsection.4.2}% 118
\BOOKMARK [3][-]{subsubsection.4.2.3}{set\137sound\137pitch\( table position, float value \)}{subsection.4.2}% 119
\BOOKMARK [3][-]{subsubsection.4.2.4}{set\137sound\137gain\( table position, float value \)}{subsection.4.2}% 120
\BOOKMARK [3][-]{subsubsection.4.2.5}{unload\137all\137sounds\( \)}{subsection.4.2}% 121
\BOOKMARK [3][-]{subsubsection.4.2.6}{replace\137WAV\137file\(table position, filename \)}{subsection.4.2}% 122
\BOOKMARK [2][-]{subsection.4.3}{Using the sounds from the sound table}{section.4}% 123
\BOOKMARK [3][-]{subsubsection.4.3.1}{play\137sound\( table position \)}{subsection.4.3}% 124
\BOOKMARK [3][-]{subsubsection.4.3.2}{stop\137sound\( table position \)}{subsection.4.3}% 125
\BOOKMARK [3][-]{subsubsection.4.3.3}{pause\137sound\( table position \)}{subsection.4.3}% 126
\BOOKMARK [3][-]{subsubsection.4.3.4}{rewind\137sound\( table position \)}{subsection.4.3}% 127
\BOOKMARK [1][-]{section.5}{OpenGL graphics}{}% 128
\BOOKMARK [2][-]{subsection.5.1}{Functions of OpenGL}{section.5}% 129
\BOOKMARK [3][-]{subsubsection.5.1.1}{glBegin\137POINTS\(\)}{subsection.5.1}% 130
\BOOKMARK [3][-]{subsubsection.5.1.2}{glBegin\137LINES\(\)}{subsection.5.1}% 131
\BOOKMARK [3][-]{subsubsection.5.1.3}{glBegin\137LINE\137STRIP\(\)}{subsection.5.1}% 132
\BOOKMARK [3][-]{subsubsection.5.1.4}{glBegin\137LINE\137LOOP\(\)}{subsection.5.1}% 133
\BOOKMARK [3][-]{subsubsection.5.1.5}{glBegin\137POLYGON\(\)}{subsection.5.1}% 134
\BOOKMARK [3][-]{subsubsection.5.1.6}{glBegin\137TRIANGLES\(\)}{subsection.5.1}% 135
\BOOKMARK [3][-]{subsubsection.5.1.7}{glBegin\137TRIANGLE\137STRIP\(\)}{subsection.5.1}% 136
\BOOKMARK [3][-]{subsubsection.5.1.8}{glBegin\137TRIANGLE\137FAN\(\)}{subsection.5.1}% 137
\BOOKMARK [3][-]{subsubsection.5.1.9}{glBegin\137QUADS\(\)}{subsection.5.1}% 138
\BOOKMARK [3][-]{subsubsection.5.1.10}{glBegin\137QUAD\137STRIP\(\)}{subsection.5.1}% 139
\BOOKMARK [3][-]{subsubsection.5.1.11}{glEnd\(\)}{subsection.5.1}% 140
\BOOKMARK [3][-]{subsubsection.5.1.12}{glVertex2f\(x, y\)}{subsection.5.1}% 141
\BOOKMARK [3][-]{subsubsection.5.1.13}{glVertex3f\(x, y, z\)}{subsection.5.1}% 142
\BOOKMARK [3][-]{subsubsection.5.1.14}{glLineWidth\(width\)}{subsection.5.1}% 143
\BOOKMARK [3][-]{subsubsection.5.1.15}{glColor3f\(red, green, blue\)}{subsection.5.1}% 144
\BOOKMARK [3][-]{subsubsection.5.1.16}{glColor4f\(red, green, blue, alpha\)}{subsection.5.1}% 145
\BOOKMARK [3][-]{subsubsection.5.1.17}{glRectf\(x1, y1, x2, y2\)}{subsection.5.1}% 146
\BOOKMARK [3][-]{subsubsection.5.1.18}{XPLMSetGraphicsState\(EnableFog, NumberTexUnits, EnableLighting, EnableAlphaTesting, EnableAlphaBlending, EnableDepthTesting, EnableDepthWriting\)}{subsection.5.1}% 147
\BOOKMARK [1][-]{section.6}{The graphics module}{}% 148
\BOOKMARK [2][-]{subsection.6.1}{Functions of graphics module}{section.6}% 149
\BOOKMARK [3][-]{subsubsection.6.1.1}{x\137result, y\137result = graphics.move\137angle\( x, y, angle, length \)}{subsection.6.1}% 150
\BOOKMARK [3][-]{subsubsection.6.1.2}{graphics.draw\137line\( x1, y1, x2, y2 \)}{subsection.6.1}% 151
\BOOKMARK [3][-]{subsubsection.6.1.3}{graphics.draw\137rectangle\( x1, y1, x2, y2 \)}{subsection.6.1}% 152
\BOOKMARK [3][-]{subsubsection.6.1.4}{graphics.draw\137triangle\( x1, y1, x2, y2, x3, y3 \)}{subsection.6.1}% 153
\BOOKMARK [3][-]{subsubsection.6.1.5}{graphics.set\137color\( red, green, blue, alpha \)}{subsection.6.1}% 154
\BOOKMARK [3][-]{subsubsection.6.1.6}{graphics.set\137width\( width \)}{subsection.6.1}% 155
\BOOKMARK [3][-]{subsubsection.6.1.7}{graphics.draw\137angle\137line\( x, y, angle, length \)}{subsection.6.1}% 156
\BOOKMARK [3][-]{subsubsection.6.1.8}{graphics.draw\137angle\137arrow\( x, y, angle, length, arrowhead's length, line width \)}{subsection.6.1}% 157
\BOOKMARK [3][-]{subsubsection.6.1.9}{graphics.draw\137circle\( x, y, radius, line width \)}{subsection.6.1}% 158
\BOOKMARK [3][-]{subsubsection.6.1.10}{graphics.draw\137filled\137circle\( x, y, radius \)}{subsection.6.1}% 159
\BOOKMARK [3][-]{subsubsection.6.1.11}{graphics.draw\137arc\( x, y, start angle, end angle, radius, line width \)}{subsection.6.1}% 160
\BOOKMARK [3][-]{subsubsection.6.1.12}{graphics.draw\137filled\137arc\( x, y, start angle, end angle, radius \)}{subsection.6.1}% 161
\BOOKMARK [3][-]{subsubsection.6.1.13}{graphics.draw\137tick\137mark\( x, y, angle, radius, length, width \)}{subsection.6.1}% 162
\BOOKMARK [3][-]{subsubsection.6.1.14}{graphics.draw\137outer\137tracer\( x, y, angle, radius, size \)}{subsection.6.1}% 163
\BOOKMARK [3][-]{subsubsection.6.1.15}{graphics.draw\137inner\137tracer\( x, y, angle, radius, size \)}{subsection.6.1}% 164
\BOOKMARK [1][-]{section.7}{HUD module}{}% 165
\BOOKMARK [2][-]{subsection.7.1}{An Interactive HUD}{section.7}% 166
\BOOKMARK [2][-]{subsection.7.2}{An Example}{section.7}% 167
\BOOKMARK [2][-]{subsection.7.3}{Functions from HUD module}{section.7}% 168
\BOOKMARK [3][-]{subsubsection.7.3.1}{HUD.begin\137HUD\( x, y, width, hight, "name", "always" \)}{subsection.7.3}% 169
\BOOKMARK [3][-]{subsubsection.7.3.2}{HUD.end\137HUD\( \)}{subsection.7.3}% 170
\BOOKMARK [3][-]{subsubsection.7.3.3}{HUD.create\137element\( "name", x, y, width, hight, red, green, blue, alpha \)}{subsection.7.3}% 171
\BOOKMARK [3][-]{subsubsection.7.3.4}{HUD.draw\137string\( x, y, fontsize, "string", red, green, blue, alpha \)}{subsection.7.3}% 172
\BOOKMARK [3][-]{subsubsection.7.3.5}{HUD.draw\137fstring\( x, y, fontsize, "format", "expression", red, green, blue, alpha \)}{subsection.7.3}% 173
\BOOKMARK [3][-]{subsubsection.7.3.6}{HUD.create\137backlight\137indicator\( x, y, width, hight, "condition", red, green, blue, alpha \)}{subsection.7.3}% 174
\BOOKMARK [3][-]{subsubsection.7.3.7}{HUD.create\137click\137action\( x, y, width, hight, "action" \)}{subsection.7.3}% 175
\BOOKMARK [3][-]{subsubsection.7.3.8}{HUD.create\137click\137switch\( x, y, width, hight, "variable", value, alternative value \)}{subsection.7.3}% 176
\BOOKMARK [3][-]{subsubsection.7.3.9}{HUD.create\137wheel\137action\( x, y, width, hight, "action" \)}{subsection.7.3}% 177
\BOOKMARK [1][-]{section.8}{XPLMNavigation}{}% 178
\BOOKMARK [2][-]{subsection.8.1}{Functions from XPLMNavigation}{section.8}% 179
\BOOKMARK [3][-]{subsubsection.8.1.1}{nav\137reference = XPLMGetFirstNavAid\(\)}{subsection.8.1}% 180
\BOOKMARK [3][-]{subsubsection.8.1.2}{next\137nav\137reference = XPLMGetNextNavAid\( inNavAidRef \)}{subsection.8.1}% 181
\BOOKMARK [3][-]{subsubsection.8.1.3}{first\137nav\137reference = XPLMFindFirstNavAidOfType\( inType \)}{subsection.8.1}% 182
\BOOKMARK [3][-]{subsubsection.8.1.4}{last\137nav\137reference = XPLMFindLastNavAidOfType\( inType \)}{subsection.8.1}% 183
\BOOKMARK [3][-]{subsubsection.8.1.5}{nav\137reference = XPLMFindNavAid\( inNameFragment, inIDFragment, inLat, inLon, inFrequency, inType\)}{subsection.8.1}% 184
\BOOKMARK [3][-]{subsubsection.8.1.6}{outType, outLatitude, outLongitude, outHeight, outFrequency, outHeading, outID, outName = XPLMGetNavAidInfo\( inRef \)}{subsection.8.1}% 185
\BOOKMARK [3][-]{subsubsection.8.1.7}{index\137count = XPLMCountFMSEntries\(\)}{subsection.8.1}% 186
\BOOKMARK [3][-]{subsubsection.8.1.8}{index = XPLMGetDisplayedFMSEntry\(\)}{subsection.8.1}% 187
\BOOKMARK [3][-]{subsubsection.8.1.9}{index = XPLMGetDestinationFMSEntry\(\)}{subsection.8.1}% 188
\BOOKMARK [3][-]{subsubsection.8.1.10}{XPLMSetDisplayedFMSEntry\( inIndex \)}{subsection.8.1}% 189
\BOOKMARK [3][-]{subsubsection.8.1.11}{XPLMSetDestinationFMSEntry\( inIndex \)}{subsection.8.1}% 190
\BOOKMARK [3][-]{subsubsection.8.1.12}{outType, outID, outRef, outAltitude, outLat, outLon = XPLMGetFMSEntryInfo\( inIndex \)}{subsection.8.1}% 191
\BOOKMARK [3][-]{subsubsection.8.1.13}{XPLMSetFMSEntryInfo\( inIndex, inRef, inAltitude\)}{subsection.8.1}% 192
\BOOKMARK [3][-]{subsubsection.8.1.14}{XPLMSetFMSEntryLatLon\( inIndex, inLat, inLon, inAltitude\)}{subsection.8.1}% 193
\BOOKMARK [3][-]{subsubsection.8.1.15}{XPLMClearFMSEntry\( inIndex \)}{subsection.8.1}% 194
\BOOKMARK [1][-]{section.9}{Access HID devices}{}% 195
\BOOKMARK [2][-]{subsection.9.1}{Pre-defined variables}{section.9}% 196
\BOOKMARK [3][-]{subsubsection.9.1.1}{NUMBER\137OF\137HID\137DEVICES}{subsection.9.1}% 197
\BOOKMARK [3][-]{subsubsection.9.1.2}{ALL\137HID\137DEVICES}{subsection.9.1}% 198
\BOOKMARK [2][-]{subsection.9.2}{HID related functions}{section.9}% 199
\BOOKMARK [3][-]{subsubsection.9.2.1}{table, number = create\137HID\137table\(\)}{subsection.9.2}% 200
\BOOKMARK [3][-]{subsubsection.9.2.2}{device = hid\137open\( vendor\137ID, product\137ID \)}{subsection.9.2}% 201
\BOOKMARK [3][-]{subsubsection.9.2.3}{device = hid\137open\137path\( path \)}{subsection.9.2}% 202
\BOOKMARK [3][-]{subsubsection.9.2.4}{hid\137close\( device \)}{subsection.9.2}% 203
\BOOKMARK [3][-]{subsubsection.9.2.5}{hid\137write\( device, report ID, value, ... \)}{subsection.9.2}% 204
\BOOKMARK [3][-]{subsubsection.9.2.6}{nov, variable, ... = hid\137read\137timeout\( device, nov wanted, milliseconds \)}{subsection.9.2}% 205
\BOOKMARK [3][-]{subsubsection.9.2.7}{nov, variable, ... = hid\137read\137timeout\( device, nov wanted \)}{subsection.9.2}% 206
\BOOKMARK [3][-]{subsubsection.9.2.8}{success = hid\137set\137nonblocking\( device, nonblock \)}{subsection.9.2}% 207
\BOOKMARK [3][-]{subsubsection.9.2.9}{nobw = hid\137send\137feature\137report\( device, report ID, value, ... \)}{subsection.9.2}% 208
\BOOKMARK [3][-]{subsubsection.9.2.10}{nobw = hid\137send\137filled\137feature\137report\( device, report ID, nobts, value, ... \)}{subsection.9.2}% 209
\BOOKMARK [3][-]{subsubsection.9.2.11}{nobr, report ID, variable, ... = hid\137get\137feature\137report\( device, novw \)}{subsection.9.2}% 210
\BOOKMARK [2][-]{subsection.9.3}{The Arcaze USB module}{section.9}% 211
\BOOKMARK [3][-]{subsubsection.9.3.1}{device = arcaze.open\137first\137device\(\)}{subsection.9.3}% 212
\BOOKMARK [3][-]{subsubsection.9.3.2}{A1, A2, A3, ..., B19, B20 = arcaze.read\137pins\( device \)}{subsection.9.3}% 213
\BOOKMARK [3][-]{subsubsection.9.3.3}{ADC1, ADC2, ADC3, ADC4, ADC5, ADC6 = arcaze.read\137ADCs\( device \)}{subsection.9.3}% 214
\BOOKMARK [3][-]{subsubsection.9.3.4}{E1, E2, E3, ..., E19, E20 = arcaze.read\137encoders\( device \)}{subsection.9.3}% 215
\BOOKMARK [3][-]{subsubsection.9.3.5}{arcaze.set\137all\137pins\137for\137input\( device \)}{subsection.9.3}% 216
\BOOKMARK [3][-]{subsubsection.9.3.6}{arcaze.set\137pin\137direction\( device, pin, direction \)}{subsection.9.3}% 217
\BOOKMARK [3][-]{subsubsection.9.3.7}{arcaze.set\137pin\( device, pin, value \)}{subsection.9.3}% 218
\BOOKMARK [3][-]{subsubsection.9.3.8}{arcaze.init\137display\( device, address, intensity, scan\137limit \)}{subsection.9.3}% 219
\BOOKMARK [3][-]{subsubsection.9.3.9}{arcaze.init\137display\( device, address \)}{subsection.9.3}% 220
\BOOKMARK [3][-]{subsubsection.9.3.10}{arcaze.show\( device, address, mask, value\137string \)}{subsection.9.3}% 221
\BOOKMARK [1][-]{section.10}{Classic and modern mode}{}% 222
\BOOKMARK [2][-]{subsection.10.1}{Reading classic functions}{section.10}% 223
\BOOKMARK [3][-]{subsubsection.10.1.1}{variable = XPLMGetDatai\( DataRef \)}{subsection.10.1}% 224
\BOOKMARK [3][-]{subsubsection.10.1.2}{variable = XPLMGetDataf\( DataRef \)}{subsection.10.1}% 225
\BOOKMARK [3][-]{subsubsection.10.1.3}{variable = XPLMGetDatad\( DataRef \)}{subsection.10.1}% 226
\BOOKMARK [3][-]{subsubsection.10.1.4}{table = XPLMGetDatavi\( DataRef, inIndex, inMax \)}{subsection.10.1}% 227
\BOOKMARK [3][-]{subsubsection.10.1.5}{table = XPLMGetDatavf\( DataRef \)}{subsection.10.1}% 228
\BOOKMARK [3][-]{subsubsection.10.1.6}{userdata variable = XPLMFindDataRef\( DataRef Name \)}{subsection.10.1}% 229
\BOOKMARK [3][-]{subsubsection.10.1.7}{datatype variable = XPLMGetDataRefTypes\( DataRef reference \)}{subsection.10.1}% 230
\BOOKMARK [2][-]{subsection.10.2}{Writing classic functions}{section.10}% 231
\BOOKMARK [3][-]{subsubsection.10.2.1}{XPLMSetDatai\( DataRef, variable or value\)}{subsection.10.2}% 232
\BOOKMARK [3][-]{subsubsection.10.2.2}{XPLMSetDataf\( DataRef, variable or value\)}{subsection.10.2}% 233
\BOOKMARK [3][-]{subsubsection.10.2.3}{XPLMSetDatad\( DataRef, variable or value\)}{subsection.10.2}% 234
\BOOKMARK [3][-]{subsubsection.10.2.4}{XPLMSetDatavi\( DataRef, table, inIndex, inMax \)}{subsection.10.2}% 235
\BOOKMARK [3][-]{subsubsection.10.2.5}{XPLMSetDatavf\( DataRef, table, inIndex, inMax \)}{subsection.10.2}% 236
\BOOKMARK [1][-]{section.11}{The Lua way to access DataRefs}{}% 237
\BOOKMARK [2][-]{subsection.11.1}{A magic metatable}{section.11}% 238
\BOOKMARK [3][-]{subsubsection.11.1.1}{table = dataref\137table\( DataRef \)}{subsection.11.1}% 239
\BOOKMARK [1][-]{section.12}{Manage your joysticks}{}% 240
\BOOKMARK [2][-]{subsection.12.1}{Get a basic configuration}{section.12}% 241
\BOOKMARK [2][-]{subsection.12.2}{Define your sticks}{section.12}% 242
\BOOKMARK [2][-]{subsection.12.3}{Define type specific assignments}{section.12}% 243
\BOOKMARK [2][-]{subsection.12.4}{Lua for cockpit builders}{section.12}% 244
\BOOKMARK [1][-]{section.13}{Understanding PLCs}{}% 245
\BOOKMARK [1][-]{section.14}{Basic knowledge about DataRefs}{}% 246
\BOOKMARK [2][-]{subsection.14.1}{What are DataRefs?}{section.14}% 247
\BOOKMARK [2][-]{subsection.14.2}{Find the right DataRefs}{section.14}% 248
\BOOKMARK [2][-]{subsection.14.3}{Accessing DataRefs}{section.14}% 249
\BOOKMARK [2][-]{subsection.14.4}{Observe the DataRef}{section.14}% 250
\BOOKMARK [1][-]{section.15}{Take Lua into consideration}{}% 251
\BOOKMARK [2][-]{subsection.15.1}{Strings inside of strings}{section.15}% 252
\BOOKMARK [2][-]{subsection.15.2}{Multiple line strings}{section.15}% 253
\BOOKMARK [2][-]{subsection.15.3}{Global or local variables?}{section.15}% 254
\BOOKMARK [2][-]{subsection.15.4}{Tables are tables}{section.15}% 255
\BOOKMARK [1][-]{section.16}{Debugging}{}% 256
\BOOKMARK [1][-]{section.17}{Integrate foreign libraries}{}% 257
\BOOKMARK [1][-]{section.18}{The new 64-bit architecture}{}% 258
\BOOKMARK [2][-]{subsection.18.1}{Architecture exclusive script loading}{section.18}% 259
\BOOKMARK [2][-]{subsection.18.2}{Checking architecture inside a script}{section.18}% 260
\BOOKMARK [2][-]{subsection.18.3}{64-bit DLLs}{section.18}% 261
\BOOKMARK [1][-]{section.19}{Q\046A}{}% 262
\BOOKMARK [2][-]{subsection.19.1}{My script doesn't work. What can I do?}{section.19}% 263
\BOOKMARK [3][-]{subsubsection.19.1.1}{Check the debug info file and Log.txt}{subsection.19.1}% 264
\BOOKMARK [3][-]{subsubsection.19.1.2}{Check for conflicts to other scripts}{subsection.19.1}% 265
\BOOKMARK [3][-]{subsubsection.19.1.3}{I really can't solve it!}{subsection.19.1}% 266
\BOOKMARK [2][-]{subsection.19.2}{How to ask the developer of FlyWithLua for help?}{section.19}% 267
\BOOKMARK [2][-]{subsection.19.3}{Is the debug file privacy safe?}{section.19}% 268
\BOOKMARK [2][-]{subsection.19.4}{Where are the Splines?}{section.19}% 269
\BOOKMARK [2][-]{subsection.19.5}{Feature requests}{section.19}% 270
\BOOKMARK [2][-]{subsection.19.6}{Can I store Lua files inside the aircraft's folder?}{section.19}% 271
\BOOKMARK [2][-]{subsection.19.7}{I want full access to X-Plane's plugin SDK!}{section.19}% 272
\BOOKMARK [2][-]{subsection.19.8}{Using Lua For Windows}{section.19}% 273
\BOOKMARK [1][-]{section.20}{Credits}{}% 274
\BOOKMARK [1][-]{section.21}{License}{}% 275