Page 1 of 1

LDT Execution Environment for Halion

Posted: Mon Apr 15, 2019 8:13 pm
by misohoza
Lua Development Tools (LDT) uses so called Execution Environment for code assistance (auto-complete suggestions and tooltips). I tried to create one for Halion.
halion.zip
(74.59 KiB) Downloaded 29 times
How to install:
  • Download the attachment. Do not unzip.
  • In LDT go to Window>Preferences>Lua>Execution Environments. Click the Add button and select the Execution Environment file.

More detailed information can be found here: Managing Execution Environments

Limitations:

Some functions return an array with objects (findLayers, findZones, ...). If you use ipairs with this array you will get no auto complete suggestions.

Code: Select all

zones = this.parent:findZones()
for i, zone in ipairs(zones) do
--no suggestions after typing zone:
end
Using numeric for loop or accessing the table values by index should work.

Notes:

Default shortcut to invoke auto complete suggestions is Ctrl + Space. After typing colon or dot auto complete suggestions should appear automatically.

Re: LDT Execution Environment for Halion

Posted: Mon Apr 22, 2019 10:53 am
by abject39
nice!