- 1
- 0
- Версия MoonLoader
- .025-beta
Lua:
require "lib.moonloader"
local vkeys = require "vkeys"
local imgui = require "imgui"
local main_window_state = imgui.ImBool(false)
function imgui.OnDrawFrame()
if main_window_state.v then
imgui.SetNextWindowSixe(imgui.ImVec2(150, 200), imgui.Cond.FirstUseEver)
imgui.Begin("Main Window")
imgui.Text("Text here")
if imgui.Button('Press Me') then
printStringNow('Button Pressed!', 1800)
end
imgui.End()
end
end
function main()
while true do
wait(0)
if isKeyJustPressed(VK_J) then
main_window_state.v = not main_window_state.v
end
imgui.Process = main_window_state.v
end
end