diff options
| author | jussi | 2024-12-11 00:21:28 +0200 |
|---|---|---|
| committer | jussi | 2024-12-11 00:21:28 +0200 |
| commit | b4b81f68c4274a6b4d0b5039b83459a1345ca6da (patch) | |
| tree | 9f4f82d979c075b4be939107e725eb4f0e398549 /examples/gui | |
| parent | 14fbd73660b14fb5af3f8973ec09896c80b63ab2 (diff) | |
| download | reilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.tar.gz reilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.tar.bz2 reilua-enhanced-b4b81f68c4274a6b4d0b5039b83459a1345ca6da.zip | |
Gui Icons enumeration.
Diffstat (limited to 'examples/gui')
| -rw-r--r-- | examples/gui/main.lua | 6 |
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 ) |
