unfinished window stuff

This commit is contained in:
nobody
2015-12-16 19:51:16 -05:00
parent 75ff950ff1
commit ee2415870a
6 changed files with 399 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ end
-- returns icon coordinates and rectangle with remaining space
function Renderer:positionIcon (widget, x1, y1, x2, y2)
if not widget.icon then
if not widget.attributes.icon then
return nil, nil, x1, y1, x2, y2
end
@@ -219,7 +219,7 @@ function Renderer:renderIconAndText (widget)
local font, textX, textY = self:positionText(
widget, x1, y1, x2, y2)
local icon = widget.icon and self:loadImage(widget.icon)
local icon = widget.attributes.icon and self:loadImage(widget.icon)
local text = widget.text
local align = widget.align or ''
local padding = widget.padding or 0