Changed naming of gui functions set2Top and set2Back to setToTop and setToBack.

This commit is contained in:
jussi
2024-06-26 22:28:13 +03:00
parent c96306bcc3
commit e45564ea3f
15 changed files with 94 additions and 77 deletions

View File

@@ -75,7 +75,7 @@ local function addPropertyList()
Rect:new( 20, 20, 256, 328 ),
"Property List",
{ -- Callbacks.
grab = function( self ) Gui:set2Top( self ) end,
grab = function( self ) Gui:setToTop( self ) end,
},
{ -- Styles.
properties = {
@@ -272,7 +272,7 @@ local function addTreeView()
"Tree View",
{ -- Callbacks.
select = function( controls ) selected( controls ) end,
grab = function( self ) Gui:set2Top( self ) end,
grab = function( self ) Gui:setToTop( self ) end,
},
{ -- Styles.
properties = {

View File

@@ -87,7 +87,7 @@ function PropertyList:updateControl( control )
control.text = setGroupText( control.text:sub( 6 ), control.active ) -- Sub skips icon.
end
self.gui:set2Back( control )
self.gui:setToBack( control )
end
function PropertyList:updateContent()