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/resources/lib/gui.lua | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'examples/resources/lib/gui.lua') diff --git a/examples/resources/lib/gui.lua b/examples/resources/lib/gui.lua index 2bae0eb..de40dd0 100644 --- a/examples/resources/lib/gui.lua +++ b/examples/resources/lib/gui.lua @@ -95,11 +95,11 @@ function Gui.delete( cell ) end end -function Gui.set2Top( cell ) +function Gui.setToTop( cell ) Util.tableMove( Gui._cells, Gui.getId( cell ), 1, #Gui._cells ) end -function Gui.set2Back( cell ) +function Gui.setToBack( cell ) Util.tableMove( Gui._cells, Gui.getId( cell ), 1, 1 ) end @@ -518,12 +518,12 @@ function Element:delete() Gui.delete( self ) end -function Element:set2Top() - Gui.set2Top( self ) +function Element:setToTop() + Gui.setToTop( self ) end -function Element:set2Back() - Gui.set2Back( self ) +function Element:setToBack() + Gui.setToBack( self ) end -- Container. @@ -820,34 +820,34 @@ function Container:clear() self.cells = {} end -function Container:set2Top() - Gui.set2Top( self ) +function Container:setToTop() + Gui.setToTop( self ) for _, cell in ipairs( self.cells ) do - cell:set2Top() + cell:setToTop() end if self._VScrollbar ~= nil then - Gui.set2Top( self._VScrollbar ) + Gui.setToTop( self._VScrollbar ) end if self._HScrollbar ~= nil then - Gui.set2Top( self._HScrollbar ) + Gui.setToTop( self._HScrollbar ) end end -function Container:set2Back() +function Container:setToBack() if self._VScrollbar ~= nil then - Gui.set2Back( self._VScrollbar ) + Gui.setToBack( self._VScrollbar ) end if self._HScrollbar ~= nil then - Gui.set2Back( self._HScrollbar ) + Gui.setToBack( self._HScrollbar ) end for _, cell in ipairs( self.cells ) do - cell:set2Back() + cell:setToBack() end - Gui.set2Back( self ) + Gui.setToBack( self ) end function Container:draw() -- cgit v1.2.3