Originally Posted by benots4
What you’re telling me is that there is no way to change the text; I can only use the set text function to write text over the existing text.
|
No, phanx is telling you to stop creating new font strings on top of the old ones every time you want to update the text.
She gave you an example and you put the entire thing inside of a function which is overwriting the table that's tracking what rows have already been created every time it's run.
Every time you call "
ShowGroupMemberList", which I'm guessing is being called every time you scroll, you're wiping out the table that's supposed to be tracking which rows have already been created.
The ONLY part that should be inside of that function is this:
Lua Code:
function ShowGroupMemberList(v)
if v < 1 then v = 1 end
for i = 1, displayRows do
local name = pInfoArray[v].Name;
if pInfoArray[v].Class and pInfoArray[v].Class:upper() ~= "UNKNOWN" then
name = "\124cFF"..(pInfoArray[v].Online and GuildRole_Class_Colors[pInfoArray[v].Class:upper()] or "808080")..pInfoArray[v].Name.."\124r";
end
local row = rowFrames[i] or CreateRow(i)
row:SetText(name)
v=v+1
end
end
Everything else that you put in that function should be outside of, and above it.