Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- event.onexit(function()
- gui.clearGraphics() --> not working without a frame advance, why?
- gui.cleartext()
- end)
- --gui.DrawNew("native") --> useless here
- while true do
- gui.DrawNew("native")
- -- possible arguments:
- -- "native" -> all the area that gui.text can reach, including the black gaps
- -- "emu" -> the game area, the scale is always the same, no matter the size of the windows of whether the AR is correct
- -- keep in mind that client.SetGameExtraPadding(...) and client.SetClientExtraPadding(...) should be considered
- local xmouse = input.getmouse().X
- local ymouse = input.getmouse().Y
- gui.text(0, 32, string.format("GUI.TEXT: %d, %d", xmouse, ymouse))
- gui.drawText(0, 48, string.format("DRAWTEXT: %d, %d", xmouse, ymouse), "red")
- gui.drawBox(0, 0, xmouse, ymouse)
- if client.ispaused() then
- emu.yield()
- --gui.clearGraphics() --> not necessary, it is actually bad here
- gui.cleartext() --> only affects gui.text, that would draw upon itself
- else
- emu.frameadvance()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment