From 70b40f67824b3d612235c382aa83821c054fa51e Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 17 Apr 2024 00:35:58 +0300 Subject: Object libraries like Vector2 optimizations. --- examples/ReiLuaGui_examples/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/ReiLuaGui_examples/main.lua') diff --git a/examples/ReiLuaGui_examples/main.lua b/examples/ReiLuaGui_examples/main.lua index bc9b94e..c994dfa 100644 --- a/examples/ReiLuaGui_examples/main.lua +++ b/examples/ReiLuaGui_examples/main.lua @@ -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() -- cgit v1.2.3