im not sure i fully understand what you mean with first parameter. do i need to set the first value like in this example?
Code:
MyModData = {}
function MyMod_OnLoad()
MyModData[1] = "first parameter?"
for i=2,50 do
MyModData[i] = "Test "..math.random(100)
end
MyModScrollBar:Show()
end
function MyModScrollBar_Update()
local line; -- 1 through 5 of our window to scroll
local lineplusoffset; -- an index into our data calculated from the scroll offset
FauxScrollFrame_Update(MyModScrollBar,50,5,16);
for line=1,5 do
lineplusoffset = line + FauxScrollFrame_GetOffset(MyModScrollBar);
if lineplusoffset <= 50 then
getglobal("MyModEntry"..line):SetText(MyModData[lineplusoffset]);
getglobal("MyModEntry"..line):Show();
else
getglobal("MyModEntry"..line):Hide();
end
end
end
here is what it looks like, you can see the highlight texture in the scrollframe but no text like in the chat output below.
i also searched
http://wowcompares.com/3089506 for the FauxScrollFrame but could only find a HybridScrollFrame, is that a new version of the FauxScrollFrame or is it for something else? and in case it has something to do with the FauxScrollFrame, is there some documentation on that?