Update Slider
This commit is contained in:
@@ -46,6 +46,10 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getSymbol = function(self)
|
||||||
|
return symbol
|
||||||
|
end,
|
||||||
|
|
||||||
setIndex = function(self, _index)
|
setIndex = function(self, _index)
|
||||||
index = _index
|
index = _index
|
||||||
if (index < 1) then
|
if (index < 1) then
|
||||||
@@ -67,18 +71,30 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getMaxValue = function(self)
|
||||||
|
return maxValue
|
||||||
|
end,
|
||||||
|
|
||||||
setSymbolColor = function(self, col)
|
setSymbolColor = function(self, col)
|
||||||
symbolColor = col
|
symbolColor = col
|
||||||
self:updateDraw()
|
self:updateDraw()
|
||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getSymbolColor = function(self)
|
||||||
|
return symbolColor
|
||||||
|
end,
|
||||||
|
|
||||||
setBarType = function(self, _typ)
|
setBarType = function(self, _typ)
|
||||||
barType = _typ:lower()
|
barType = _typ:lower()
|
||||||
self:updateDraw()
|
self:updateDraw()
|
||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getBarType = function(self)
|
||||||
|
return barType
|
||||||
|
end,
|
||||||
|
|
||||||
mouseHandler = function(self, button, x, y)
|
mouseHandler = function(self, button, x, y)
|
||||||
if (base.mouseHandler(self, button, x, y)) then
|
if (base.mouseHandler(self, button, x, y)) then
|
||||||
mouseEvent(self, button, x, y)
|
mouseEvent(self, button, x, y)
|
||||||
|
|||||||
Reference in New Issue
Block a user