- 107
- 22
- Версия MoonLoader
- .026-beta
ку, окно имгуи не двигается, что надо дописать, чтобы оно двигалось?
Lua:
function imgui.OnDrawFrame()
if main_window_state.v then
imgui.SetNextWindowSize(imgui.ImVec2(800, 350), imgui.Cond.FirstUseEver)
local sW, sH = getScreenResolution()
imgui.SetNextWindowPos(imgui.ImVec2(sW / 2, sH / 2), imgui.Cond.ImGuiCond_Always, imgui.ImVec2(0.5, 0.5))
imgui.Begin("Test",main_window_state)
imgui.BeginChild('left pane', imgui.ImVec2(150, 0), true)
if imgui.Button("Button 1", imgui.ImVec2(145, 20)) then
end
if imgui.Button("Button 2", imgui.ImVec2(145, 20)) then
end
imgui.EndChild()
imgui.SameLine(165)
imgui.BeginChild('Central UP', imgui.ImVec2(630, 100), true)
imgui.Text("Some Text1")
imgui.Text("Some Text2")
imgui.EndChild()
imgui.SetCursorPos(imgui.ImVec2(165, 140))
imgui.BeginChild('Central Down', imgui.ImVec2(630, 100), true)
imgui.Text("Some Text")
if imgui.Button("Button in Child", imgui.ImVec2(145, 20)) then
end
imgui.EndChild()
imgui.End()
end
end