WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Displaying text in option dialog (https://www.wowinterface.com/forums/showthread.php?t=16261)

Everglow 05-11-08 10:44 PM

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 05-11-08 10:49 PM

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!


All times are GMT -6. The time now is 02:03 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI