summaryrefslogtreecommitdiff
path: root/examples/resources/lib/raygui.lua
diff options
context:
space:
mode:
authorjussi2024-06-26 22:28:13 +0300
committerjussi2024-06-26 22:28:13 +0300
commite45564ea3f0f27c32264f98da80c6d3556256de0 (patch)
treedd9fb36032fcd2aa791226c75826c9cec4a7c3ff /examples/resources/lib/raygui.lua
parentc96306bcc3bc685297b8553d01d2eff163754afc (diff)
downloadreilua-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/resources/lib/raygui.lua')
-rw-r--r--examples/resources/lib/raygui.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/resources/lib/raygui.lua b/examples/resources/lib/raygui.lua
index 1cd0269..437bc96 100644
--- a/examples/resources/lib/raygui.lua
+++ b/examples/resources/lib/raygui.lua
@@ -1922,11 +1922,10 @@ function Raygui:checkScrolling()
end
function Raygui:clickedInBounds( bounds )
- print( self._mousePressPos, bounds )
return RL.CheckCollisionPointRec( self._mousePressPos, bounds )
end
-function Raygui:set2Top( control )
+function Raygui:setToTop( control )
for i, curControl in ipairs( self.controls ) do
if control == curControl then
Util.tableMove( self.controls, i, 1, #self.controls )
@@ -1936,7 +1935,7 @@ function Raygui:set2Top( control )
end
end
-function Raygui:set2Back( control )
+function Raygui:setToBack( control )
for i, curControl in ipairs( self.controls ) do
if control == curControl then
Util.tableMove( self.controls, i, 1, 1 )