diff options
| author | jussi | 2023-10-11 15:19:54 +0300 |
|---|---|---|
| committer | jussi | 2023-10-11 15:19:54 +0300 |
| commit | c3352b8ed7becfef5a175f763241d77afdf24b02 (patch) | |
| tree | a1755b6b513c165361dbf7cd5ccfffffd62fa2f1 /examples/gui/main.lua | |
| parent | 8311dfd354f136333a6fc5084ef2f7a637339959 (diff) | |
| download | reilua-enhanced-c3352b8ed7becfef5a175f763241d77afdf24b02.tar.gz reilua-enhanced-c3352b8ed7becfef5a175f763241d77afdf24b02.tar.bz2 reilua-enhanced-c3352b8ed7becfef5a175f763241d77afdf24b02.zip | |
isValidRenderTexture fix.
Diffstat (limited to 'examples/gui/main.lua')
| -rw-r--r-- | examples/gui/main.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
