feat(textwidget): label replacement
This commit is contained in:
parent
af6ceef38d
commit
f8910aefa4
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ function TextWidget:addLabel(label, position)
|
|||
table.insert(self.labels, complexLabel)
|
||||
end
|
||||
|
||||
function TextWidget:replaceLabel(id, newLabel)
|
||||
self.labels[id].label = newLabel
|
||||
end
|
||||
|
||||
function TextWidget:setSelectedColor(r, g, b)
|
||||
self.selectedColor = {}
|
||||
self.selectedColor.r = r
|
||||
|
|
Loading…
Reference in a new issue