Merge pull request #6 from NoryiE/samkist-deprecate-isMoveable-and-setMoveable
deprecated isMoveable and setMoveable
This commit is contained in:
@@ -78,12 +78,15 @@ local function Frame(name, parent)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@class Frame
|
||||||
object = {
|
object = {
|
||||||
barActive = false,
|
barActive = false,
|
||||||
barBackground = colors.gray,
|
barBackground = colors.gray,
|
||||||
barTextcolor = colors.black,
|
barTextcolor = colors.black,
|
||||||
barText = "New Frame",
|
barText = "New Frame",
|
||||||
barTextAlign = "left",
|
barTextAlign = "left",
|
||||||
|
isMovable = false,
|
||||||
|
---@deprecated deprecated in favor of Frame#isMovable
|
||||||
isMoveable = false,
|
isMoveable = false,
|
||||||
|
|
||||||
getType = function(self)
|
getType = function(self)
|
||||||
@@ -149,13 +152,19 @@ local function Frame(name, parent)
|
|||||||
return self
|
return self
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
setMovable = function(self, movable)
|
||||||
|
self.isMovable = movable or not self.isMovable
|
||||||
|
self:setVisualChanged()
|
||||||
|
return self;
|
||||||
|
end;
|
||||||
|
|
||||||
|
---@deprecated deprecated in favor of @see Frame#setMovable
|
||||||
setMoveable = function(self, moveable)
|
setMoveable = function(self, moveable)
|
||||||
self.isMoveable = moveable or not self.isMoveable
|
self.isMoveable = moveable or not self.isMoveable
|
||||||
self:setVisualChanged()
|
self:setVisualChanged()
|
||||||
return self;
|
return self;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
showBar = function(self, showIt)
|
showBar = function(self, showIt)
|
||||||
self.barActive = showIt or not self.barActive
|
self.barActive = showIt or not self.barActive
|
||||||
self:setVisualChanged()
|
self:setVisualChanged()
|
||||||
|
|||||||
Reference in New Issue
Block a user