summaryrefslogtreecommitdiff
path: root/examples/raygui_extensions/main.lua
diff options
context:
space:
mode:
authorjussi2024-10-02 14:06:50 +0300
committerjussi2024-10-02 14:06:50 +0300
commit02c7dd9ca80e522b987ebce34143f2eef1b95b64 (patch)
tree56ebba19705bcc47a1b0f44f2b0a241cf7da3791 /examples/raygui_extensions/main.lua
parent30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef (diff)
downloadreilua-enhanced-02c7dd9ca80e522b987ebce34143f2eef1b95b64.tar.gz
reilua-enhanced-02c7dd9ca80e522b987ebce34143f2eef1b95b64.tar.bz2
reilua-enhanced-02c7dd9ca80e522b987ebce34143f2eef1b95b64.zip
Raygui update.
Diffstat (limited to 'examples/raygui_extensions/main.lua')
-rw-r--r--examples/raygui_extensions/main.lua4
1 files changed, 3 insertions, 1 deletions
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()