Thread Tools Display Modes
05-11-08, 10:44 PM   #1
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
Displaying text in option dialog

Can anyone help with this? I would like to display some text in my option window, but it doesn't want to appear. I have this in my xml:

Code:
 
<Layer level="OVERLAY">
   <FontString inherits="GameFontNormal" text="Save Views">
       <Anchors>
          <Anchor point="TOP" relativeTo="$parent">
             <Offset><AbsDimension x="0" y="-2"/></Offset>
          </Anchor>
       </Anchors>
   </FontString>
   <FontString name="CombatCamInfoText" inherits="GameFontNormal" justifyH="LEFT" outline="THIN">
       <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent">
             <Offset><AbsDimension x="25" y="-85"/></Offset>
          </Anchor>
      </Anchors>
      <Color r="0.0" g="0.9" b="1.0"/>
   </FontString>
</Layer>
And I set the text like this in my OnLoad handler:
Code:
CombatCamInfoText.SetWidth("175")
CombatCamInfoText.SetText( 
  "Instructions:\n"..
  "blah blah blah...."..
  "Slash commands:\n"..
  "blah blah blah...")
The Title ("Save Views") shows, but not the InfoText. Any help will be appreciated. I would prefer insight on why it isn't working over suggestions for completely different ways of doing it. Thanks
__________________
Everglow - Sisters of Elune/US
  Reply With Quote
05-11-08, 10:49 PM   #2
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
Red face

Nevermind... I figured out what was wrong

I used:
CombatCamInfoText.SetWidth("175")
and
CombatCamInfoText.SetText(

which should have been:
CombatCamInfoText:SetWidth("175")
and
CombatCamInfoText:SetText(

doh!
__________________
Everglow - Sisters of Elune/US
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Displaying text in option dialog


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off