Quantcast Tags won't update timely when some offline - WoWInterface
Thread Tools Display Modes
04-18-19, 01:37 PM   #1
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 109
Tags won't update timely when some offline

Lua Code:
  1. oUF.Tags.Methods["color"] = function(unit)
  2.     local class = select(2, UnitClass(unit))
  3.     local reaction = UnitReaction(unit, "player")
  4.  
  5.     if UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) then
  6.         return "|cffA0A0A0"
  7.     elseif UnitIsTapDenied(unit) then
  8.         return hexRGB(oUF.colors.tapped)
  9.     elseif UnitIsPlayer(unit) then
  10.         return hexRGB(oUF.colors.class[class])
  11.     elseif reaction then
  12.         return hexRGB(oUF.colors.reaction[reaction])
  13.     else
  14.         return hexRGB(1, 1, 1)
  15.     end
  16. end
  17. oUF.Tags.Events["color"] = "UNIT_HEALTH_FREQUENT UNIT_CONNECTION PLAYER_FLAGS_CHANGED"

The code above is currently used to update name color for RaidFrame in my layout.
It is not update properly when someone goes offline. And the name color stay in class color.
Or someone goes online, and the name stuck in gray.
Am I missing any events?
  Reply With Quote
04-18-19, 05:15 PM   #2
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 989
PLAYER_DEAD perhaps? I think it only applies to you, not any other unit. If that's the case, it will make your raid frames grey for your player frame within the raid.
  Reply With Quote
04-20-19, 06:59 PM   #3
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 109
Originally Posted by myrroddin View Post
PLAYER_DEAD perhaps? I think it only applies to you, not any other unit. If that's the case, it will make your raid frames grey for your player frame within the raid.
Nope.
I wonder this maybe an issue about blizz itself.
The offline update is not functioning for few members, not all.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Tags won't update timely when some offline

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