mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add cursorLocator argument to gui.set_active_frame
This commit is contained in:
parent
8ee2edef5c
commit
239ada8e3d
4 changed files with 36 additions and 12 deletions
|
|
@ -130,10 +130,11 @@ function on_hud_open()
|
|||
local name = "misc/moon"
|
||||
local frame = gui.create_frame(name, name, {128, 128})
|
||||
frame:add("<button>Hello, World</button>")
|
||||
frame.color = {255, 0, 0, 255}
|
||||
|
||||
input.add_callback('key:y', function ()
|
||||
gui.set_active_frame(name)
|
||||
gui.set_active_frame(name, function()
|
||||
return input.get_mouse_pos()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue