UI / Lua
Vanilla framework
Section titled βVanilla frameworkβ- Globals β
RegisterEvent,SetScript,CallEventScripts,CallUpdateScripts. - Helper API β 200+ functions in
ui/addons/ego_detailmonitorhelper/helper.luafor menu authoring. - FFI bridge β C function calls from Lua.
Third-party APIs
Section titled βThird-party APIsβ- SN Mod Support APIs β Simple Menu API, Simple Menu Options, Interact Menu, Hotkey API, Named Pipes, Time, Chat Window, Userdata.
Common questions (planned)
Section titled βCommon questions (planned)β- βHow do I add a custom menu to the game?β β Helper API β
Helper.registerMenuwalkthrough. - βHow do I handle events from MD in my Lua code?β β Globals β
RegisterEvent("MyMod.X", ...)example. - βHow do I add an option to the Extension Options menu?β β SN APIs β Simple Menu Options.
- βWhy doesnβt
utf8work in my Lua code?β β Gotchas βutf8is nil in X4 sandbox. - βWhy is the table widget ID, not the object?β β Gotchas β
uitablesemantics.