From 6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 25 Mar 2022 22:31:59 +0200 Subject: More raygui functions and updated to raygui v3.2-dev. --- examples/gui/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/gui') 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 -- cgit v1.2.3