mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
default skin changed to support extra info in columnlist row
This commit is contained in:
parent
839db5491d
commit
c3cda0bff2
@ -1677,9 +1677,7 @@ function skin.DrawColumnListRow(object)
|
||||
love.graphics.rectangle("fill", x, y, width, height)
|
||||
end
|
||||
|
||||
for k, v in ipairs(columndata) do
|
||||
love.graphics.setFont(font)
|
||||
local text = ParseRowText(v, x, parent.parent:GetColumnWidth(k), x, textx)
|
||||
if selected then
|
||||
love.graphics.setColor(textselectedcolor)
|
||||
elseif hover then
|
||||
@ -1687,8 +1685,15 @@ function skin.DrawColumnListRow(object)
|
||||
else
|
||||
love.graphics.setColor(textcolor)
|
||||
end
|
||||
for k, v in ipairs(columndata) do
|
||||
local rwidth = parent.parent:GetColumnWidth(k)
|
||||
if rwidth then
|
||||
local text = ParseRowText(v, x, rwidth, x, textx)
|
||||
love.graphics.print(text, x + textx, y + texty)
|
||||
x = x + parent.parent.children[k]:GetWidth()
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user