Skip to content

ImGui Inputs don't work inside anything other than addItem #8

@blueberrypi-studio

Description

@blueberrypi-studio

Image

tested with tab bar, window and inputs only work/respond if they're not inside anything other than addItem

do_mission_file("mission")

ImGui.AddItem("GNS-530", "DEBUG", function()

    local step = 0.1 -- size of step for + and - buttons
    value = ImGui:InputFloat("Input Float Label", value, step)
    ImGui:Text("Input Float Value: " .. value)

    if ImGui:Button("DUMP Mission Table") then
        --dumpTableToFile(mission, "Logs/GNS-530_MissionDump.lua")
        print_message_to_user("Mission table dumped to Logs/GNS-530_MissionDump.lua")
    end

    ImGui:TabBar("GNS-530 Debug", function()
        ImGui:TabItem("Mission", function()

            local step = 0.1 -- size of step for + and - buttons
            value2 = ImGui:InputFloat("Input Float Label 2", value2, step)
            ImGui:Text("Input Float Value: " .. value2)

            recursiveImGuiTree(mission)
        end)
    end)
end, 500, 1200)

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