summaryrefslogtreecommitdiff
path: root/examples/raygui_lib
diff options
context:
space:
mode:
Diffstat (limited to 'examples/raygui_lib')
-rw-r--r--examples/raygui_lib/main.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/raygui_lib/main.lua b/examples/raygui_lib/main.lua
index bd8e63d..5bd187a 100644
--- a/examples/raygui_lib/main.lua
+++ b/examples/raygui_lib/main.lua
@@ -101,6 +101,13 @@ function RL.init()
false,
function( self ) print( "Set text "..self.text ) end
)
+ local textbox2 = Raygui.TextBox:new(
+ Rect:new( 32, 380, 256, 32 ),
+ "Name",
+ 32,
+ false,
+ function( self ) print( "Set text "..self.text ) end
+ )
local slider = Raygui.Slider:new(
Rect:new( 50, 500, 256, 32 ),
"min",
@@ -255,14 +262,6 @@ function RL.init()
end
function RL.process( delta )
- if RL.IsKeyPressed( RL.KEY_R ) then
- Raygui.set2Top( windowbox )
- end
-
- if RL.IsKeyPressed( RL.KEY_F ) then
- Raygui.set2Back( windowbox )
- end
-
Raygui.process()
end