Object libraries like Vector2 optimizations.

This commit is contained in:
jussi
2024-04-17 00:35:58 +03:00
parent 41b6739824
commit 70b40f6782
31 changed files with 527 additions and 370 deletions

View File

@@ -51,8 +51,8 @@ local function initGui()
calculator:setVisible( true )
fileExplorer:setVisible( true )
end,
onMouseOver = function( self ) self.color = Color:new( RL.LIGHTGRAY ) end,
notMouseOver = function( self ) self.color = Color:new( RL.GRAY ) end,
onMouseOver = function( self ) self.color = Color:newT( RL.LIGHTGRAY ) end,
notMouseOver = function( self ) self.color = Color:newT( RL.GRAY ) end,
} )
showButton:add( Gui.text:new( { text = "Show", VAling = Gui.ALING.CENTER, HAling = Gui.ALING.CENTER } ) )
@@ -77,7 +77,7 @@ function RL.init()
end
function RL.update( delta )
Gui.update( Vec2:new( RL.GetMousePosition() ) )
Gui.update( Vec2:newT( RL.GetMousePosition() ) )
end
function RL.draw()