mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +00:00
Tint swing timer bars while the target is out of range
C_SwingTimer checks the range for each shown bar, and PLAYER_SWING_RANGE_UPDATE turns a bar the new Out Of Range Color (grey by default, since the main-hand bar and the hunter dead zone are red) while its swing can't reach the current target. The melee check is the server's 2D reach; the ranged one covers the hunter's minimum range too. No check (no target, nothing to attack, no weapon) keeps the normal color.
This commit is contained in:
@@ -2073,6 +2073,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(nil, T["Offhand Bar Color"], C.unitframes, "swingtimerohcolor", "color")
|
||||
CreateConfig(nil, T["Ranged Bar Color"], C.unitframes, "swingtimerrangedcolor", "color")
|
||||
CreateConfig(nil, T["Ranged Warn Color (Hunter)"], C.unitframes, "swingtimerrangedwarncolor", "color")
|
||||
CreateConfig(nil, T["Out Of Range Color"], C.unitframes, "swingtimeroutrangecolor", "color")
|
||||
CreateConfig(nil, T["Show On Next Attack Queue Color"], C.unitframes, "swingtimerhsqueue", "checkbox")
|
||||
CreateConfig(nil, T["Show Attack Speed"], C.unitframes, "swingtimerattackspeed", "checkbox")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user