summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjussi2022-12-10 18:47:45 +0200
committerjussi2022-12-10 18:47:45 +0200
commit7e61bffe5f313599423ad3cf88b0e44329de7dd2 (patch)
treeb71e8682f1d2567a55bee6bd3a90dc1177ab092e /examples
parente1a85f898e0781c9dd69ced6cd6ccb4e304a7bd1 (diff)
downloadreilua-enhanced-7e61bffe5f313599423ad3cf88b0e44329de7dd2.tar.gz
reilua-enhanced-7e61bffe5f313599423ad3cf88b0e44329de7dd2.tar.bz2
reilua-enhanced-7e61bffe5f313599423ad3cf88b0e44329de7dd2.zip
RL_GetFileLength.
Diffstat (limited to 'examples')
-rw-r--r--examples/ReiLuaGui_examples/file_explorer.lua2
-rw-r--r--examples/instancing/main.lua1
-rw-r--r--examples/resources/lib/gui.lua4
3 files changed, 2 insertions, 5 deletions
diff --git a/examples/ReiLuaGui_examples/file_explorer.lua b/examples/ReiLuaGui_examples/file_explorer.lua
index 692093e..7ead361 100644
--- a/examples/ReiLuaGui_examples/file_explorer.lua
+++ b/examples/ReiLuaGui_examples/file_explorer.lua
@@ -201,7 +201,7 @@ function FileExplorer:fileSelect( file )
end
function FileExplorer:openFile()
- print( self.file )
+ print( self.file, RL_GetFileLength( self.file ) )
end
function FileExplorer:updateFiles()
diff --git a/examples/instancing/main.lua b/examples/instancing/main.lua
index bcd9575..17a2acb 100644
--- a/examples/instancing/main.lua
+++ b/examples/instancing/main.lua
@@ -23,7 +23,6 @@ function init()
local mPos = RL_GetMonitorPosition( monitor )
local mSize = RL_GetMonitorSize( monitor )
local winSize = RL_GetWindowSize()
- -- local winSize = { 1920, 1080 }
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
RL_SetWindowSize( winSize )
diff --git a/examples/resources/lib/gui.lua b/examples/resources/lib/gui.lua
index da46744..305fb47 100644
--- a/examples/resources/lib/gui.lua
+++ b/examples/resources/lib/gui.lua
@@ -51,7 +51,7 @@ Gui = {
_cells = {},
_mousePos = Vec2:new( 0, 0 ), -- Last mouse position that was passed to Gui.process.
- _inputElement = nil,
+ _inputElement = nil, -- Element that has the input text item.
_inputItem = nil, -- Must be type Text.
}
@@ -637,8 +637,6 @@ function Container:mouseScroll( v )
self:scroll( mousePos )
end
-
--- //TODO Add this
function Container:isMouseOver( mousePosition )
local over = RL_CheckCollisionPointRec( mousePosition, self.bounds )