1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-02 08:06:43 +00:00
openmw/files/lua_api
Petr Mikheev 620748480b Merge branch 'lua_missing_key_codes' into 'master'
Lua binding for SDL_GetKeyName, two missing scan codes

See merge request 

(cherry picked from commit d86e7d4c9a28bc96af0a5638b26879fa49b8a847)

9a073baa Add Apostrophe and Period scan codes
d66f3a35 Add getKeyName to Lua input API
ed64add9 Replace mentions of KeyEvent with KEY
2021-12-03 13:35:57 +00:00
..
openmw Merge branch 'lua_missing_key_codes' into 'master' 2021-12-03 13:35:57 +00:00
CMakeLists.txt Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
coroutine.doclua Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
global.doclua Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
math.doclua Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
README.md Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
string.doclua Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00
table.doclua Update OpenMW Lua documentation 2021-07-09 20:48:54 +02:00

Files in this directory describe OpenMW API for Lua Development Tools (LDT).

*.doclua files are taken (with some modifications) from LDT distribution and are distributed under MIT license. Openmw-specific docs (openmw/*.lua) are under GPLv3 license.

To get a Lua IDE with integrated OpenMW documentation and code autocompletion do the following:

  1. Install and run LDT.
  2. Press File / New / Lua Project in menu.
  3. Specify project name (for example the title of your omwaddon)
  4. Set Targeted Execution Environment to No Execution Environment, and Target Grammar to lua-5.1.
  5. Press Next, choose the Libraries tab, and click Add External Source Folder. Then specify there the path to this directory.
  6. Press Finish.