From e45564ea3f0f27c32264f98da80c6d3556256de0 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 26 Jun 2024 22:28:13 +0300 Subject: Changed naming of gui functions set2Top and set2Back to setToTop and setToBack. --- examples/ReiLuaGui_examples/file_explorer.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/ReiLuaGui_examples/file_explorer.lua') diff --git a/examples/ReiLuaGui_examples/file_explorer.lua b/examples/ReiLuaGui_examples/file_explorer.lua index 398adef..89fc173 100644 --- a/examples/ReiLuaGui_examples/file_explorer.lua +++ b/examples/ReiLuaGui_examples/file_explorer.lua @@ -19,7 +19,7 @@ function FileExplorer:new( pos ) bounds = Rect:new( 0, 0, object.windowRect.width, object.HANDLE_HIGHT ), padding = 10, onClicked = function() - object:set2Top() + object:setToTop() object.dragPos = Vec2:newT( RL.GetMousePosition() ) - Vec2:new( object.handle.bounds.x, object.handle.bounds.y ) Gui.heldCallback = function() object:drag() end end, @@ -305,15 +305,15 @@ function FileExplorer:setVisible( visible ) self.files:update() end -function FileExplorer:set2Top() - self.panel:set2Top() - self.handle:set2Top() - self.closeButton:set2Top() - self.pathBox:set2Top() - self.backButton:set2Top() - self.files:set2Top() - self.fileName:set2Top() - self.openButton:set2Top() +function FileExplorer:setToTop() + self.panel:setToTop() + self.handle:setToTop() + self.closeButton:setToTop() + self.pathBox:setToTop() + self.backButton:setToTop() + self.files:setToTop() + self.fileName:setToTop() + self.openButton:setToTop() end return FileExplorer -- cgit v1.2.3