View Single Post
10-21-14, 11:08 AM   #1
liquidbase
A Warpwood Thunder Caller
 
liquidbase's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 97
Nameplate coloring

Hi @all

I use for DuffedUI own nameplates and I had found two issues, where I can not find the solution for. The first one is the built-in Threat feature and the second is the icon background from the castbar if a mob or player channels a cast.

If the Threat feature is activated, it should once the background and the HP-bar colored according to the aggro value. Currently, only the background is colored accordingly, but what hurts the overview of the threat. In normal case both should be colored. What do I mean you see below in the screenshot.



The second problem is the background of the castbar icon, if a mob or player channels a cast. Normally, the background should appear on the icon, but each of these jumps again left below the castbar. In normal spells the background does not appear and is properly seated on the icon. Issue can be see below on the screenshot.



My question is now what I see and / or have done wrong, what these two issues caused.

Thanks in advance for all help.

Code:
Full script => nameplates2.lua

- Threat feature
@Line 164 - 195 function UpdateColor
@Line 460 - 506 function UpdateThreat
@Line 800 - 810 Nameplate Update

- Castbar
@Line 158 function UpdateCastbarColor
@Line 536 - 553 functions OnValue & OnShow
@Line 658 - 693 styling

greetz
Liquid

p.s.: If something is missing of information or I should post parts of the code here in the threat, then please tell me.
  Reply With Quote