From 02c7dd9ca80e522b987ebce34143f2eef1b95b64 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 2 Oct 2024 14:06:50 +0300 Subject: Raygui update. --- examples/raygui_extensions/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/raygui_extensions/main.lua') diff --git a/examples/raygui_extensions/main.lua b/examples/raygui_extensions/main.lua index 4cd537d..50b3103 100644 --- a/examples/raygui_extensions/main.lua +++ b/examples/raygui_extensions/main.lua @@ -42,6 +42,8 @@ local function addButton( bounds, text, callback ) { RL.LABEL, RL.TEXT_COLOR_NORMAL, RL.ColorToInt( { 84, 59, 22 } ) }, { RL.LABEL, RL.TEXT_COLOR_PRESSED, RL.ColorToInt( { 84/2, 59/2, 22/2 } ) }, { RL.LABEL, RL.TEXT_COLOR_FOCUSED, RL.ColorToInt( RL.GREEN ) }, + { RL.BUTTON, RL.BASE_COLOR_PRESSED, RL.ColorToInt( RL.WHITE ) }, + { RL.BUTTON, RL.BASE_COLOR_NORMAL, RL.ColorToInt( RL.WHITE ) }, }, }, text @@ -324,7 +326,7 @@ function RL.init() end function RL.update( delta ) - Gui:update() + Gui:update( delta ) end function RL.draw() -- cgit v1.2.3