1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-17 16:57:39 +00:00

alignment update

This commit is contained in:
kepler155c@gmail.com
2019-03-06 11:48:09 -05:00
parent 7a57d74e68
commit ce9ffa6c3a
4 changed files with 53 additions and 35 deletions

View File

@@ -16,10 +16,5 @@ function UI.Text:setParent()
end
function UI.Text:draw()
if self.align and self.align == 'center' then
self:clear()
self:centeredWrite(1, self.value or '')
else
self:write(1, 1, Util.widthify(self.value or '', self.width))
end
self:write(1, 1, Util.widthify(self.value, self.width, self.align))
end