It's for Guild Crafting Helper.
I add that segment, however it does not seem to work for me. The text still truncates on the single line... Here is the code I have so far
Code:
--- This segment reads from the fields from a datafile
--- If you notice ... I added a second 'null' line to make sure I could see any new text on the next line
if t[i].mType == (value1) and t[i].slot == (value2) then
pid = pid.."\n".."\n"..t[i].id
pmaker = pmaker.."\n".."\n"..t[i].maker
pname = pname.."\n".."\n"..t[i].name
pskill = pskill.."\n".."\n"..t[i].skill
pslot = pslot.."\n".."\n"..(string.sub(t[i].slot, 5))
pstatname = pstatname.."\n".."\n"..t[i].statname
pmType = pmType.."\n".."\n"..t[i].mType
i = i + 1
end
end
-- return
window.item1:SetText(pname)
wordwrap = window.item1:GetWordwrap()
window.item1:SetWordwrap(wordwrap)
window.item2:SetText(pskill)
wordwrap = window.item2:GetWordwrap()
window.item2:SetWordwrap(wordwrap)
window.item3:SetText(pslot)
wordwrap = window.item3:GetWordwrap()
window.item3:SetWordwrap(wordwrap)
-------- Get the wordwrap status and use it for multiple makers
window.item4:SetText(pstatname)
wordwrap = window.item4:GetWordwrap()
window.item4:SetWordwrap(wordwrap)
------- Is there another way to use this? I tried to use it window.item4:SetWordwrap(pstatname)...that crated an error
window.item5:SetText(pmaker)
wordwrap = window.item5:GetWordwrap()
window.item5:SetWordwrap(wordwrap)
I have a feeling that I am just not calling it to set the flag correctly.