feat(textwidget): label replacement

This commit is contained in:
Kazhnuz 2021-01-24 15:44:24 +01:00
parent af6ceef38d
commit f8910aefa4

View file

@ -45,6 +45,10 @@ function TextWidget:addLabel(label, position)
table.insert(self.labels, complexLabel) table.insert(self.labels, complexLabel)
end end
function TextWidget:replaceLabel(id, newLabel)
self.labels[id].label = newLabel
end
function TextWidget:setSelectedColor(r, g, b) function TextWidget:setSelectedColor(r, g, b)
self.selectedColor = {} self.selectedColor = {}
self.selectedColor.r = r self.selectedColor.r = r