getProperty() and setProperty() (#80)

* Fuck

* Add getProperty() and setProperty()

* Add getters and setters to VisualObject

* Update Frame and BaseFrame

* Update Flexbox

* Update Button and Label

* Update Input

* Update Image

* Update Checkbox

* Update Program

* Update Progressbar

* Update Slider

* Update Scrollbar

* Update Switch

* Update Textfield

* Update Timer

* Update List

* Update Dropdown

* Update Radio

* Update Menubar

* Update Graph

* Update Treeview
This commit is contained in:
Sabine Lim
2023-05-16 03:24:16 +10:00
committed by GitHub
parent 015666ad14
commit bdc241575b
24 changed files with 436 additions and 361 deletions

View File

@@ -46,6 +46,10 @@ return function(name, basalt)
return self
end,
getSymbol = function(self)
return symbol
end,
setIndex = function(self, _index)
index = _index
if (index < 1) then
@@ -67,18 +71,30 @@ return function(name, basalt)
return self
end,
getMaxValue = function(self)
return maxValue
end,
setSymbolColor = function(self, col)
symbolColor = col
self:updateDraw()
return self
end,
getSymbolColor = function(self)
return symbolColor
end,
setBarType = function(self, _typ)
barType = _typ:lower()
self:updateDraw()
return self
end,
getBarType = function(self)
return barType
end,
mouseHandler = function(self, button, x, y)
if (base.mouseHandler(self, button, x, y)) then
mouseEvent(self, button, x, y)