Thread Tools Display Modes
07-27-17, 06:27 AM   #1
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
Can I put IMG on X nameplate? [SOLVED]

Hello to all,

Somebody have a code for put an image on a X nameplate?

For example, Im loading this table:
Lua Code:
  1. BangCharHateds = {
  2.     ["Demotatz-Quel'Thalas"] = true,
  3.     ["Evies"] = true,
  4. }
Is possible assign X image on their nameplate? Actually I check fine if is a range and fires a frame:Show()...
Lua Code:
  1. inInstance, instanceType = IsInInstance() --print(BangCharHateds[destName])
  2.     timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, prefixParam1, prefixParam2, dummyparam, suffixParam1, suffixParam2 = ...
  3.     if not inInstance then
  4.         if SpellEvents[event] and BangCharHateds[sourceName] and bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) > 0 then
  5. frame:Show()
  6. ........

Last edited by Mortimerlol : 08-05-17 at 11:21 PM. Reason: [SOLVED]
  Reply With Quote
07-27-17, 12:05 PM   #2
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
An explanation that the keys in BangCharHateds are character names would have been beneficial.
Also, it might be good to have a picture of how you see it should work.
I sense two connected bugs, unrelated to this issue:
a) if you change realm, the character name of your previous realm is no longer "Evies" but "Evies-SomeRealm";
b) if you change realm to a realm where the character of the database is, the name no longer "Demotatz-Quel'Thalas" but "Demotatz".
  Reply With Quote
08-05-17, 11:21 PM   #3
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
Originally Posted by Kakjens View Post
An explanation that the keys in BangCharHateds are character names would have been beneficial.
Also, it might be good to have a picture of how you see it should work.
I sense two connected bugs, unrelated to this issue:
a) if you change realm, the character name of your previous realm is no longer "Evies" but "Evies-SomeRealm";
b) if you change realm to a realm where the character of the database is, the name no longer "Demotatz-Quel'Thalas" but "Demotatz".
Yes, have reason. Now is fixed and works fine. THANKS
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Can I put IMG on X nameplate?

Thread Tools
Display Modes

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