mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
swing timer fixes and additions
* fixed offhand timer incorrectly showing for 2H weapon users * fixed sw_texture resolving pfUI.media key correctly instead of passing raw file path * added proper offhand weapon detection via GetEquippedItem + GetItemStatsField (Nampower), with vanilla API fallback * added UNIT_DIED event to reset timer when target dies * added ACTIONBAR_SLOT_CHANGED event to keep HS/Cleave slot cache up to date * added immediate offhand bar hide when OH weapon is unequipped mid-combat * added player GUID caching for UNIT_DIED comparison * added GUI options: texture, font size, show/hide timer text, MH/OH labels, offhand bar, HS/Cleave queue color * added HS/Cleave queue color coding for Warriors (green = Cleave, yellow = Heroic Strike) * added unit frame text options: attack speed, min/max damage, unit string, HP/mana display variants, pet name * removed unreliable dual-wield heuristic guard (mhAge < 0.1) Co-authored-by: Zedris
This commit is contained in:
@@ -230,6 +230,12 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", nil, "comboheight", "6")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimerwidth", "200")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimerheight", "12")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimerlabel", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimeroh", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimerhsqueue","1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimertexture","img:bar")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimertext", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "swingtimerfontsize","12")
|
||||
pfUI:UpdateConfig("unitframes", nil, "abbrevnum", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "castbardecimals", "2")
|
||||
pfUI:UpdateConfig("unitframes", nil, "abbrevname", "1")
|
||||
|
||||
Reference in New Issue
Block a user