RL_GetFileLength.

This commit is contained in:
jussi
2022-12-10 18:47:45 +02:00
parent e1a85f898e
commit 7e61bffe5f
9 changed files with 34 additions and 5 deletions

View File

@@ -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()

View File

@@ -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 )

View File

@@ -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 )