local size = {['x'] = 200,['y'] = 200}
function imgui.OnDrawFrame()
local x,y = getScreenResolution()
imgui.SetNextWindowPos(imgui.ImVec2(x/2, y/2), imgui.Cond.FirstUseEver)
imgui.SetNextWindowSize(imgui.ImVec2(size.x, size.y))
imgui.Begin('Test',true,imgui.WindowFlags.MenuBar)
imgui.BeginMenuBar()
if imgui.MenuItem('300') then
size.x = 300
end
if imgui.MenuItem('400') then
size.x = 400
end
imgui.EndMenuBar()
imgui.End()
end