summaryrefslogtreecommitdiff
path: root/examples/gui/main.lua
diff options
context:
space:
mode:
authorjussi2022-03-25 22:31:59 +0200
committerjussi2022-03-25 22:31:59 +0200
commit6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73 (patch)
treeea890671a6737ca727b4895107624f886677811e /examples/gui/main.lua
parent55ad8773ec7c857a51dbed8e9e9eea16515b6d02 (diff)
downloadreilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.tar.gz
reilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.tar.bz2
reilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.zip
More raygui functions and updated to raygui v3.2-dev.
Diffstat (limited to 'examples/gui/main.lua')
-rw-r--r--examples/gui/main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/gui/main.lua b/examples/gui/main.lua
index c799cdb..aa7123f 100644
--- a/examples/gui/main.lua
+++ b/examples/gui/main.lua
@@ -11,6 +11,7 @@ local sliderValueRange = { 0.0, 10.0 }
local scrollbarValue = 0.0
local dropdownValue = 0
local dropdownActive = false
+local index = 0
function init()
local monitor = 0
@@ -38,9 +39,10 @@ function draw()
windowOpen = false
end
- RL_GuiPanel( { 60, 260, 100, 100 } )
+ RL_GuiPanel( { 60, 260, 100, 100 }, "Panel" )
toggled = RL_GuiToggle( { 200, 260, 64, 32 }, "Toggle", toggled )
+ index = RL_GuiToggleGroup( { 520, 30, 64, 32 }, "Cat\nDog\nMonkey", index )
checkbox = RL_GuiCheckBox( { 200, 300, 16, 16 }, "CheckBox", checkbox )
local textBoxToggle = false