Thread Tools Display Modes
09-03-08, 02:27 AM   #1
ngollon
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 9
Raid Targets and FontStrings

Hi!

In an new project of mine I'd like to use the raidtarget symbols as button descriptions.
To get these in chats, you have just to type "{star}" and they are displayed, but randomfontstring:SetText("{star}") does not do the job. Is there a way?

If there is, is there a function to return the localized version? Using the german client I'd have to use "{stern}" =/

Related, does UnitName("star") or UnitName("rt1") work?

Thanks =)

Vaeyl of Nozdormu

Last edited by ngollon : 09-03-08 at 02:38 AM.
  Reply With Quote
10-11-08, 04:32 PM   #2
warcrazy
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 4
To put a texture in a fontstring, use the following escape code within your fontstring's text :

|T<path>:<width>[:<height>:<xOffset>:<yOffset>]|t

If you need the path for the raid icons, I believe they can be found in ChatFrame.lua's code (assuming you have the Blizz interface kit)

*Note, I've not tested this but it should work

Related, does UnitName("star") or UnitName("rt1") work?

No, UnitName will only accept UnitID's such as "target" or "focus".
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Raid Targets and FontStrings


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