Copy local item = gui. combobox ( 'lua>elements a>test' , 'lua>elements a' , 'Test combobox' , false , 'Value 1' , 'Value 2' )
item: set_tooltip ( "This is a combobox" )
Copy local item = gui. checkbox ( 'lua>elements a>test' , 'lua>elements a' , 'Test checkbox' )
iteam: set_visible ( false )
Copy local item = gui. slider ( 'lua>elements a>test' , 'lua>elements a' , 'Test slider' , 0 , 10 )
iteam: add_callback ( function ()
print (item: get ())
end )
Copy local item = gui. textbox ( 'lua>elements a>test' , 'lua>elements a' )
print (iteam: get_name ()) -- prints 'textbox'
Copy local item = gui. color_picker ( 'lua>elements a>test' , 'lua>elements a' , 'Test color picker' , render. color ( '#fff' ))
print (iteam: get_type ()) -- prints 'color_picker'