From 7665cf4bc16a423d4cd98174853dcc36de08787e Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 1 Apr 2022 20:35:43 +0300 Subject: GuiIconText. --- examples/gui/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/gui/main.lua') diff --git a/examples/gui/main.lua b/examples/gui/main.lua index 82dd192..4c84af8 100644 --- a/examples/gui/main.lua +++ b/examples/gui/main.lua @@ -37,7 +37,8 @@ end function draw() RL_ClearBackground( { 50, 20, 75 } ) - if RL_GuiButton( { 112, 16, 96, 32 }, "Exit" ) then + -- if RL_GuiButton( { 112, 16, 96, 32 }, "Exit" ) then + if RL_GuiButton( { 112, 16, 96, 32 }, RL_GuiIconText( 113, "Exit" ) ) then RL_CloseWindow() end -- cgit v1.2.3