summaryrefslogtreecommitdiff
path: root/examples/gui/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gui/main.lua')
-rw-r--r--examples/gui/main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/gui/main.lua b/examples/gui/main.lua
index 25c4ed6..18d8b41 100644
--- a/examples/gui/main.lua
+++ b/examples/gui/main.lua
@@ -36,10 +36,16 @@ end
function RL.draw()
RL.ClearBackground( { 50, 20, 75 } )
+ -- RL.GuiSetStyle( RL.DEFAULT, RL.TEXT_SIZE, 10 )
+
if RL.GuiButton( { 112, 16, 96, 32 }, RL.GuiIconText( 113, "Exit" ) ) then
RL.CloseWindow()
end
+ -- RL.GuiSetStyle( RL.DEFAULT, RL.TEXT_SIZE, 20 )
+ RL.GuiButton( { 112, 64, 96, 32 }, RL.GuiIconText( 113, "Kissa" ) )
+ -- RL.GuiSetStyle( RL.DEFAULT, RL.TEXT_SIZE, 10 )
+
if windowOpen and RL.GuiWindowBox( { 300, 16, 200, 320 }, "Window" ) then
windowOpen = false
end