summaryrefslogtreecommitdiff
path: root/examples/gui/main.lua
diff options
context:
space:
mode:
authorjussi2024-12-11 00:21:28 +0200
committerjussi2024-12-11 00:21:28 +0200
commitb4b81f68c4274a6b4d0b5039b83459a1345ca6da (patch)
tree9f4f82d979c075b4be939107e725eb4f0e398549 /examples/gui/main.lua
parent14fbd73660b14fb5af3f8973ec09896c80b63ab2 (diff)
downloadreilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.tar.gz
reilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.tar.bz2
reilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.zip
Gui Icons enumeration.
Diffstat (limited to 'examples/gui/main.lua')
-rw-r--r--examples/gui/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gui/main.lua b/examples/gui/main.lua
index 1ace3b3..fbefa2c 100644
--- a/examples/gui/main.lua
+++ b/examples/gui/main.lua
@@ -44,11 +44,11 @@ function RL.draw()
local result = 0
-- RL.GuiSetStyle( RL.DEFAULT, RL.TEXT_SIZE, 10 )
- if RL.GuiButton( { 112, 16, 96, 32 }, RL.GuiIconText( 113, "Exit" ) ) == 1 then
+ if RL.GuiButton( { 112, 16, 96, 32 }, RL.GuiIconText( RL.ICON_CROSS, "Exit" ) ) == 1 then
RL.CloseWindow()
end
- RL.GuiButton( { 112, 64, 96, 32 }, RL.GuiIconText( 100, "Cat" ) )
+ RL.GuiButton( { 112, 64, 96, 32 }, RL.GuiIconText( RL.ICON_FOUR_BOXES, "Cat" ) )
if windowOpen and RL.GuiWindowBox( { 300, 16, 200, 320 }, "Window" ) == 1 then
windowOpen = false
@@ -117,7 +117,7 @@ function RL.draw()
_, guiTabBarActive = RL.GuiTabBar(
{ 420, 680, 320, 32 },
- RL.GuiIconText( 13, "Play" )..";"..RL.GuiIconText( 12, "Cat.png" )..";"..RL.GuiIconText( 16, "Files" ),
+ RL.GuiIconText( RL.ICON_FILETYPE_PLAY, "Play" )..";"..RL.GuiIconText( RL.ICON_FILETYPE_IMAGE, "Cat.png" )..";"..RL.GuiIconText( RL.ICON_FILE_COPY, "Files" ),
guiTabBarActive
)