mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Ability to change the font of the columnlist rows.
This commit is contained in:
parent
36995a68c7
commit
4e71c7ce84
@ -980,5 +980,26 @@ function newobject:SetColumnOrder(curid, newid)
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: SetRowsFont(font)
|
||||||
|
- desc: sets the font of the rows.
|
||||||
|
--]]---------------------------------------------------------
|
||||||
|
function newobject:SetAllRowsFont(font)
|
||||||
|
local list = self.internals[1]
|
||||||
|
for k, v in ipairs(list.children) do
|
||||||
|
v:SetFont(font)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--[[---------------------------------------------------------
|
||||||
|
- func: SetRowFont(font, id)
|
||||||
|
- desc: sets the font of the row with the provided id.
|
||||||
|
--]]---------------------------------------------------------
|
||||||
|
function newobject:SetRowFont(font, id)
|
||||||
|
local list = self.internals[1]
|
||||||
|
assert( id >= 1, "The id must be >= 1")
|
||||||
|
list.children[id]:SetFont(font)
|
||||||
|
end
|
||||||
|
|
||||||
---------- module end ----------
|
---------- module end ----------
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user