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

@@ -208,7 +208,7 @@ function RL.init()
"WindowBox",
{ -- Callbacks.
close = function( self ) self.visible = false end,
grab = function( self ) Gui:set2Top( self ) end,
grab = function( self ) Gui:setToTop( self ) end,
},
{ -- Styles.
properties = {
@@ -230,7 +230,7 @@ function RL.init()
Rect:new( 400, 64, 256, 128 ),
"Panel",
{ -- Callbacks.
grab = function( self ) Gui:set2Top( self ) end
grab = function( self ) Gui:setToTop( self ) end
},
{ -- Styles.
properties = {
@@ -255,7 +255,7 @@ function RL.init()
Vec2:new( 0, 0 ),
{ -- Callbacks.
scroll = function( self ) print( self.scroll ) end,
grab = function( self ) Gui:set2Top( self ) end
grab = function( self ) Gui:setToTop( self ) end
}
)
local listview = Gui:ListView(
@@ -300,7 +300,7 @@ function RL.init()
end
end
end,
grab = function( self ) Gui:set2Top( self ) end
grab = function( self ) Gui:setToTop( self ) end
}
)
local textinputbox = Gui:TextInputBox(
@@ -317,7 +317,7 @@ function RL.init()
print( "You pressed "..self:getItem( self.buttonIndex ) )
end
end,
grab = function( self ) Gui:set2Top( self ) end
grab = function( self ) Gui:setToTop( self ) end
}
)
local colorpicker = Gui:ColorPicker(