function imgui.OnDrawFrame()
if not window.v then
imgui.Process = false
end
if window.v then
imgui.SetNextWindowPos(imgui.ImVec2(350.0, 250.0), imgui.Cond.FirstUseEver)
imgui.SetNextWindowSize(imgui.ImVec2(280.0, 70.0), imgui.Cond.FirstUseEver)
imgui.Begin('Window Title', window)
imgui.BeginChild('##tabs', _, false)
if imgui.PageButton(page == 1, '#', 'Page one') then
page = 1
end
if imgui.PageButton(page == 2, '#', 'Page two') then
page = 2
end
imgui.EndChild()
imgui.BeginChild('##workspace', imgui.ImVec2(500, 500), true)
if page == 1 then
imgui.Text('One Page')
elseif page == 2 then
imgui.Text('Two Page')
end
imgui.EndChild()
imgui.End()
end
end
end -- 59 строка