From 863f596b76043ec374fafa38f14cdc4a97d0b267 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 5 Jan 2024 23:15:22 +0200 Subject: Raygui lib enhancements and Raygui lib extensions example. --- examples/raygui_lib/main.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/raygui_lib') 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 ) -- cgit v1.2.3