mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add gui.create_frame
This commit is contained in:
parent
3014329280
commit
463098aa1e
8 changed files with 84 additions and 24 deletions
|
|
@ -127,7 +127,12 @@ function on_hud_open()
|
|||
|
||||
hud.default_hand_controller = update_hand
|
||||
|
||||
gui.root.root:add("<frame size='16' color='#FF0000'><label>Hello, World</label></frame>")
|
||||
local name = "gui/no_icon"
|
||||
gui.create_frame(name, {16, 16})
|
||||
|
||||
local document = Document.new(name)
|
||||
document.root:add("<label>Hello</label>")
|
||||
document.root.color = {255, 0, 0, 255}
|
||||
end
|
||||
|
||||
function on_hud_render()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue