Refonte pour utiliser le systeme de GUI #112
1 changed files with 2 additions and 1 deletions
|
@ -40,8 +40,9 @@ end
|
||||||
|
|
||||||
function TextWidget:addLabel(label, position)
|
function TextWidget:addLabel(label, position)
|
||||||
local complexLabel = {}
|
local complexLabel = {}
|
||||||
|
assert(label ~= nil, "Label can't be nil")
|
||||||
complexLabel.label = label
|
complexLabel.label = label
|
||||||
complexLabel.position = position
|
complexLabel.position = position or "left"
|
||||||
table.insert(self.labels, complexLabel)
|
table.insert(self.labels, complexLabel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue