View Single Post
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