From c3352b8ed7becfef5a175f763241d77afdf24b02 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 11 Oct 2023 15:19:54 +0300 Subject: isValidRenderTexture fix. --- examples/gui/main.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/gui/main.lua') 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 -- cgit v1.2.3