mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
castbar: make spell rank visible again
This commit is contained in:
+4
-2
@@ -98,11 +98,13 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function ()
|
|||||||
|
|
||||||
this:SetAlpha(1)
|
this:SetAlpha(1)
|
||||||
|
|
||||||
local rank = this.showrank and nameSubtext and nameSubtext ~= "" and string.format(" |cffaaffcc[%s]|r", nameSubtext) or ""
|
local spellname = this.showname and cast and cast .. " " or ""
|
||||||
|
local rank = this.showrank and nameSubtext and nameSubtext ~= "" and string.format("|cffaaffcc[%s]|r", nameSubtext) or ""
|
||||||
|
|
||||||
if this.endTime ~= endTime then
|
if this.endTime ~= endTime then
|
||||||
this.bar:SetStatusBarColor(strsplit(",", C.appearance.castbar[(channel and "channelcolor" or "castbarcolor")]))
|
this.bar:SetStatusBarColor(strsplit(",", C.appearance.castbar[(channel and "channelcolor" or "castbarcolor")]))
|
||||||
this.bar:SetMinMaxValues(0, duration / 1000)
|
this.bar:SetMinMaxValues(0, duration / 1000)
|
||||||
this.bar.left:SetText(this.showname and cast or "" .. rank)
|
this.bar.left:SetText(spellname .. rank)
|
||||||
this.fadeout = nil
|
this.fadeout = nil
|
||||||
this.endTime = endTime
|
this.endTime = endTime
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user