Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit c7c9e37c99 - Show all commits

View file

@ -40,8 +40,9 @@ end
function TextWidget:addLabel(label, position)
local complexLabel = {}
assert(label ~= nil, "Label can't be nil")
complexLabel.label = label
complexLabel.position = position
complexLabel.position = position or "left"
table.insert(self.labels, complexLabel)
end