mirror of
https://github.com/kepler155c/opus
synced 2025-10-17 16:57:39 +00:00
cleanup
This commit is contained in:
@@ -16,5 +16,10 @@ function UI.Text:setParent()
|
||||
end
|
||||
|
||||
function UI.Text:draw()
|
||||
self:write(1, 1, Util.widthify(self.value or '', self.width), self.backgroundColor)
|
||||
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
|
||||
end
|
||||
|
Reference in New Issue
Block a user