mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
castbar: Quartz-style tradeskill merge with per-craft spark
Hook DoTradeSkill to capture the requested count, then on the first SPELLCAST_START of an isTradeskill cast stretch endTime to span all crafts so the player bar fills continuously across the chain. Mid-chain SPELLCAST_START / SPELL_START_SELF events refresh the "(N)" remaining label and reset a per-craft spark that crosses the bar once per craft. SPELL_GO_SELF counts completions; SPELLCAST_STOP no-ops while merged. Gated by a new C.castbar.player.mergetradeskill knob (default on).
This commit is contained in:
@@ -714,6 +714,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("castbar", "player", "txtleftoffy", "0")
|
||||
pfUI:UpdateConfig("castbar", "player", "showlag", "0")
|
||||
pfUI:UpdateConfig("castbar", "player", "showrank", "0")
|
||||
pfUI:UpdateConfig("castbar", "player", "mergetradeskill", "1")
|
||||
pfUI:UpdateConfig("castbar", "player", "txtrightoffx", "0")
|
||||
pfUI:UpdateConfig("castbar", "player", "txtrightoffy", "0")
|
||||
pfUI:UpdateConfig("castbar", "target", "hide_pfui", "0")
|
||||
|
||||
Reference in New Issue
Block a user