summaryrefslogtreecommitdiff
path: root/examples/raygui_lib
diff options
context:
space:
mode:
Diffstat (limited to 'examples/raygui_lib')
-rw-r--r--examples/raygui_lib/main.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/raygui_lib/main.lua b/examples/raygui_lib/main.lua
index 0c3b559..1f20d7b 100644
--- a/examples/raygui_lib/main.lua
+++ b/examples/raygui_lib/main.lua
@@ -190,6 +190,7 @@ function RL.init()
}
windowbox.texture = texture
windowbox.textureRect = textureRect
+
local groupbox = Gui:GroupBox(
Rect:new( 400, 700, 256, 256 ),
"GroupBox"
@@ -211,7 +212,7 @@ function RL.init()
}
tabBar = Gui:GuiTabBar(
Rect:new( 700, 520, 700, 32 ),
- "Cat;Dog;Horse;Cow",
+ "Cat;Dog;Horse;Cow;Dog;Horse;Cow",
0,
nil,
closeTab
@@ -219,10 +220,10 @@ function RL.init()
local scrollpanel = Gui:ScrollPanel(
Rect:new( 800, 64, 256, 256 ),
"ScrollPanel",
- Rect:new( 0, 0, 256, 600 ),
+ Rect:new( 0, 0, 300, 600 ),
Vec2:new( 0, 0 ),
-- Callback.
- nil,
+ function( self ) print( self.scroll ) end,
-- Grab callback.
function( self ) Gui:set2Top( self ) end
)