local mainWindow = imgui.ImBool()
local extraWindow = imgui.ImBool()
function main()
while true do wait(0)
if wasKeyPressed(VK_F12) then mainWindow.v = not mainWindow.v end
end
end
function imgui.OnDrawFrame()
if mainWindow.v then
if imgui.Begin('Main Window', mainWindow) then
if imgui.Button(u8'Название', imgui.ImVec2(50, 30)) then extraWindow.v = not extraWindow.v end
imgui.End()
end
end
if extraWindow.v then
--code
end
end