Skip to content

Using in a mission script #5

@Rolln-dev

Description

@Rolln-dev

After reading

LuaImGui Path
For aircraft mods you will want to install the LuaImGui folder in Cockpit/Scripts however you may want
to change the location (for example export or mission lua contexts). To do this you set the global
lua_imgui_path to the path to the LuaImGui folder before calling require on the ImGui.lua.

I've started testing using LuaImGui from a mission script (mission lua state) and can get it to appear but not sure how I would go about handling refreshing. Any thoughts? In the export lua state we can refresh on the next frame, so maybe this won't work from a mission script. Just thought I would give it a try.

Scheduling the update via function using timer.scheduleFunction doesn't feel right and maybe to much overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions