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 0ce811fa97 - Show all commits

View file

@ -80,6 +80,8 @@ function TextWidget:drawCanvas()
w = self:getPadding()
elseif (complexLabel.position == "right") then
w = math.floor(self.width - self:getPadding())
else
error("Position " .. complexLabel.position .. " is unknown for label " .. complexLabel.label)
end
font:draw(complexLabel.label, w, h, -1, complexLabel.position)
end