local act = 0
--onFrame
if imgui.Button('1') then act = 1 end
if imgui.Button('2') then act = 2 end
if act == 1 then
imgui.BeginChild('##1', imgui.ImVec2(200, 200), true)
imgui.Text('1')
imgui.EndChild()
elseif act == 2 then
imgui.BeginChild('##2', imgui.ImVec2(200, 200), true)
imgui.Text('2')
imgui.EndChild()
else
imgui.BeginChild('##else', imgui.ImVec2(200, 200), true)
imgui.Text('else')
imgui.EndChild()
end