add gui.create_frame

This commit is contained in:
MihailRis 2026-02-04 13:10:49 +03:00
parent 3014329280
commit 463098aa1e
8 changed files with 84 additions and 24 deletions

View file

@ -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()