XSSFilter could not parse (X)HTML:
<p>Hey everyone. I have written an addon that listens for the guild achievement event and gchats a random "Congrats" message. It works great, except I wanted to add a UI to the addon to let people add their own messages to the table. </p>
<p>My problems is very simple though, I dont know how to make the contents of the table when added to the FontString on the frame, to stay in the frame. I have tried follow the wowwiki anchoring info (http://www.wowwiki.com/UIOBJECT_FontString) however, I'm just not able to comprehend it very well and really need to learn by example. </p>
<p>I've tried use setAllPoints and setHeight attributes with no luck. below is an example of my XML for my FontString</p>
<p>``<FontString name="$parent_Text1" inherits="GameFontNormal" text="" justifyH="LEFT" setAllPoints="true" setHeight="250"></p>
<pre><code> <Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0.8" g="0.5" b="0" a="1"/>
</code></pre>
<p> </FontString> ``</p>
<p>and the lua populating this frames FontString is :</p>
<p>``local function sag_LoadTable()
local text = ""
local oldtext = ""
local pName = UnitName("player")</p>
<p> for index,txt in pairs(gratsMsg) do</p>
<pre><code> oldtext = sagFrame_Text1:GetText();
if (oldtext) then
txt = string.gsub(txt,"<playername>",pName)
newtext = index ..": ".. txt
-- newtext = strCrop(newtext);
text = oldtext .."\n".. newtext
sagFrame_Text1:SetText(text, 1.0, 1.0, 0, 1, 10);
else
txt = string.gsub(txt,"<playername>",pName)
text = index ..": ".. txt
-- text = strCrop(text);
sagFrame_Text1:SetText(text, 1.0, 1.0, 0, 1, 10);
end
</code></pre>
<p> end <br/>
end``</p>
<p>You can see i'm using the for loop to cycle through the array of possible messages to display whats already being used. </p>
<p>So if someone can show me any example of how to make the text not go outside of the frame and actually make a functional scroll frame that would be spiffy</p>