feat(textwidget): label replacement

This commit is contained in:
Kazhnuz Klappsthul 2021-01-24 15:44:24 +01:00
parent af6ceef38d
commit f8910aefa4
1 changed files with 4 additions and 0 deletions

View File

@ -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