diff options
| author | jussi | 2024-06-26 22:28:13 +0300 |
|---|---|---|
| committer | jussi | 2024-06-26 22:28:13 +0300 |
| commit | e45564ea3f0f27c32264f98da80c6d3556256de0 (patch) | |
| tree | dd9fb36032fcd2aa791226c75826c9cec4a7c3ff /examples/raygui_examples/calculator.lua | |
| parent | c96306bcc3bc685297b8553d01d2eff163754afc (diff) | |
| download | reilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.tar.gz reilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.tar.bz2 reilua-enhanced-e45564ea3f0f27c32264f98da80c6d3556256de0.zip | |
Changed naming of gui functions set2Top and set2Back to setToTop and setToBack.
Diffstat (limited to 'examples/raygui_examples/calculator.lua')
| -rw-r--r-- | examples/raygui_examples/calculator.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/raygui_examples/calculator.lua b/examples/raygui_examples/calculator.lua index 6274a0b..6faf11d 100644 --- a/examples/raygui_examples/calculator.lua +++ b/examples/raygui_examples/calculator.lua @@ -18,7 +18,7 @@ function Calculator:new( pos ) "Calculator", { -- Callbacks. close = function() object:setVisible( false ) end, - grab = function() object:set2Top() end, + grab = function() object:setToTop() end, drag = function( this ) object:setPosition( Vec2:new( this.bounds.x, this.bounds.y ) ) end } ) @@ -137,12 +137,12 @@ function Calculator:setPosition( pos ) end end -function Calculator:set2Top() - Gui:set2Top( self.window ) - Gui:set2Top( self.display ) +function Calculator:setToTop() + Gui:setToTop( self.window ) + Gui:setToTop( self.display ) for _, button in ipairs( self.buttons ) do - Gui:set2Top( button ) + Gui:setToTop( button ) end end |
