I am new to Air Manager and to Lua, though I've programmed in several other languages over the years.
I am developing a Bendix King KLN94 GPS instrument. As well as a moving map, this has many pages of useful information (in excess of 70) though I'm not thinking of reproducing all of them. The pages are arranged in 10 "chapters" which are selected by rotating the outer GPS knob and pages in chapters by rotating the inner knob.
To avoid loads and loads of conditional statements, I had thought that the graphics of individual pages could be grouped together and made visible when the page was active and to do this, the group id's could be stored in a 2 dimensional array the first dimension being the chapter number and the second the page number.
My knowledge of array handling in Lua is not well developed....anyone out there got experience? Can group id's be elements of an array?
Use of Arrays
Help creating logic scripts for Air Manager Instruments
Message
Author
-
- Posts: 60
- Joined: Sun Jun 12, 2016 3:11 pm
Return to “Lua and API Scripting Help”
Jump to
- Sim Innovations Announcements
- ↳ General Announcements
- ↳ Air Manager
- Desktop Air Manager Support
- ↳ Air Manager Help
- ↳ Air Manager Bug Reports
- ↳ Air Manager feedback & feature requests
- Tablet devices Air Manager Support
- ↳ iPad Help
- ↳ Android Help
- Air Player Support
- ↳ Air Player Desktop
- ↳ Air Player ARM
- Other software
- ↳ KnobXP
- ↳ KnobFS
- ↳ Air Player Mini
- Instrument Building Support
- ↳ General Instrument Help
- ↳ Under development and finished work
- ↳ Lua and API Scripting Help
- ↳ Instrument Graphics Help
- ↳ Beta Tester Requests
- Hardware
- ↳ Arduino
- ↳ Raspberry Pi
- ↳ Knobster
- ↳ Flight Illusion
- Air Manager Applications
- ↳ Simutainment Applications
- ↳ Pilot Training
- ↳ Cockpit building
- The Media Room
- ↳ Photos & Videos
- The Crewroom
- ↳ General Discussion on Anything