local selected = 0
imgui.OnFrame(
function() return true end,
function() end,
function(self)
imgui.Begin(...)
imgui.BeginChild(...)
if imgui.Button("1") then selected = 1 end
if imgui.Button("2") then selected = 2 end
imgui.EndChild()
imgui.SameLine()
imgui.BeginChild(...)
if selected == 1 then
imgui.Text("selected first window")
elseif selected == 2 then
imgui.Text("selected second window")
else
imgui.Text("nothing selected")
end...