Refonte pour utiliser le systeme de GUI #112
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ function TextWidget:drawCanvas()
|
||||||
w = self:getPadding()
|
w = self:getPadding()
|
||||||
elseif (complexLabel.position == "right") then
|
elseif (complexLabel.position == "right") then
|
||||||
w = math.floor(self.width - self:getPadding())
|
w = math.floor(self.width - self:getPadding())
|
||||||
|
else
|
||||||
|
error("Position " .. complexLabel.position .. " is unknown for label " .. complexLabel.label)
|
||||||
end
|
end
|
||||||
font:draw(complexLabel.label, w, h, -1, complexLabel.position)
|
font:draw(complexLabel.label, w, h, -1, complexLabel.position)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue