function imgui.OnDrawFrame()
if window1.v then
imgui.SetNextWindowSize(imgui.ImVec2(1200, 650), imgui.Cond.Always)
imgui.SetNextWindowPos(imgui.ImVec2(resX / 2, resY / 2), imgui.Cond.Once, imgui.ImVec2(0.5, 0.5))
imgui.Begin(u8' Главное меню ', window1, img_state, imgui.WindowFlags.NoResize)
imgui.BeginChild('#navigation', imgui.ImVec2(120,500), true)
if imgui.Button(u8' Страница 1') then selected = 1 end
if imgui.Button(u8' Страница 2') then selected = 2 end
imgui.EndChild()
imgui.SameLine()
imgui.BeginChild('#MM', imgui.ImVec2(999,600), true)
if selected == 1 then
-- какой то текст
elseif selected == 2 then
-- сюды спурчик..
end
end
end