diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/gui/main.lua | 6 | ||||
| -rw-r--r-- | examples/raygui_examples/file_browser.lua | 4 | ||||
| -rw-r--r-- | examples/raygui_extensions/main.lua | 14 | ||||
| -rw-r--r-- | examples/raygui_extensions/property_list.lua | 4 | ||||
| -rw-r--r-- | examples/raygui_extensions/tree_item.lua | 4 |
5 files changed, 16 insertions, 16 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 ) diff --git a/examples/raygui_examples/file_browser.lua b/examples/raygui_examples/file_browser.lua index e4705a6..04d59d7 100644 --- a/examples/raygui_examples/file_browser.lua +++ b/examples/raygui_examples/file_browser.lua @@ -81,7 +81,7 @@ function FileBrowser:new( pos ) -- Back button. object.backButton = Gui:Button( Rect:new( 0, 0, iconButtonSize.x, iconButtonSize.y ), - RL.GuiIconText( 118, "" ), + RL.GuiIconText( RL.ICON_ARROW_LEFT_FILL, "" ), { -- callbacks. pressed = function() object:back() end } @@ -94,7 +94,7 @@ function FileBrowser:new( pos ) -- Search button. object.searchToggle = Gui:Toggle( Rect:new( 0, 0, iconButtonSize.x, iconButtonSize.y ), - RL.GuiIconText( 42, "" ), + RL.GuiIconText( RL.ICON_LENS, "" ), false, -- active. { -- callbacks. pressed = function( this ) object:searchPressed( this.active ) end diff --git a/examples/raygui_extensions/main.lua b/examples/raygui_extensions/main.lua index 50b3103..7647032 100644 --- a/examples/raygui_extensions/main.lua +++ b/examples/raygui_extensions/main.lua @@ -286,15 +286,15 @@ local function addTreeView() ) -- Items. - local folder = TreeView:addItem( RL.GuiIconText( 1, "Images" ) ) - local folderEmpty = TreeView:addItem( RL.GuiIconText( 1, "Empty Folder" ) ) - local folder2 = TreeView:addItem( RL.GuiIconText( 1, "More images" ), folder ) - TreeView:addItem( RL.GuiIconText( 12, "Cat.png" ), folder ) - TreeView:addItem( RL.GuiIconText( 12, "Dog.png" ), folder2 ) - TreeView:addItem( RL.GuiIconText( 12, "Horse.png" ), folder2 ) + local folder = TreeView:addItem( RL.GuiIconText( RL.ICON_FOLDER_FILE_OPEN, "Images" ) ) + local folderEmpty = TreeView:addItem( RL.GuiIconText( RL.ICON_FOLDER_FILE_OPEN, "Empty Folder" ) ) + local folder2 = TreeView:addItem( RL.GuiIconText( RL.ICON_FOLDER_FILE_OPEN, "More images" ), folder ) + TreeView:addItem( RL.GuiIconText( RL.ICON_FILETYPE_IMAGE, "Cat.png" ), folder ) + TreeView:addItem( RL.GuiIconText( RL.ICON_FILETYPE_IMAGE, "Dog.png" ), folder2 ) + TreeView:addItem( RL.GuiIconText( RL.ICON_FILETYPE_IMAGE, "Horse.png" ), folder2 ) for i = 0, 10 do - TreeView:addItem( RL.GuiIconText( 12, "Duck"..i..".png" ), folder2 ) + TreeView:addItem( RL.GuiIconText( RL.ICON_FILETYPE_IMAGE, "Duck"..i..".png" ), folder2 ) end end diff --git a/examples/raygui_extensions/property_list.lua b/examples/raygui_extensions/property_list.lua index d4c5126..72e58f7 100644 --- a/examples/raygui_extensions/property_list.lua +++ b/examples/raygui_extensions/property_list.lua @@ -48,9 +48,9 @@ end local function setGroupText( text, active ) if active then - return RL.GuiIconText( 120, text ) + return RL.GuiIconText( RL.ICON_ARROW_DOWN_FILL, text ) else - return RL.GuiIconText( 119, text ) + return RL.GuiIconText( RL.ICON_ARROW_RIGHT_FILL, text ) end end diff --git a/examples/raygui_extensions/tree_item.lua b/examples/raygui_extensions/tree_item.lua index 7abaf4c..7e67cb3 100644 --- a/examples/raygui_extensions/tree_item.lua +++ b/examples/raygui_extensions/tree_item.lua @@ -35,9 +35,9 @@ end function TreeItem:setOpenIcon() if self.open then - return RL.GuiIconText( 120, "" ) + return RL.GuiIconText( RL.ICON_ARROW_DOWN_FILL, "" ) else - return RL.GuiIconText( 119, "" ) + return RL.GuiIconText( RL.ICON_ARROW_RIGHT_FILL, "" ) end end |
