WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Tags won't update timely when some offline (https://www.wowinterface.com/forums/showthread.php?t=57112)

siweia 04-18-19 01:37 PM

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?

myrroddin 04-18-19 05:15 PM

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.

siweia 04-20-19 06:59 PM

Quote:

Originally Posted by myrroddin (Post 331954)
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.


All times are GMT -6. The time now is 02:53 AM.

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