mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
hide instead of setting alpha to 0
This commit is contained in:
@@ -66,7 +66,7 @@ pfUI:RegisterModule("energytick", "vanilla:tbc", function()
|
|||||||
elseif this.mode == "MANA" and diff > 0 then
|
elseif this.mode == "MANA" and diff > 0 then
|
||||||
if UnitMana("player") >= UnitManaMax("player") then
|
if UnitMana("player") >= UnitManaMax("player") then
|
||||||
this.start = nil
|
this.start = nil
|
||||||
this.spark:SetAlpha(0)
|
this:Hide()
|
||||||
elseif this.max ~= 5 and diff > (this.badtick and this.badtick * 1.2 or 5) then
|
elseif this.max ~= 5 and diff > (this.badtick and this.badtick * 1.2 or 5) then
|
||||||
this.target = 2
|
this.target = 2
|
||||||
else
|
else
|
||||||
@@ -93,6 +93,7 @@ pfUI:RegisterModule("energytick", "vanilla:tbc", function()
|
|||||||
this.start, this.max = GetTime(), this.target
|
this.start, this.max = GetTime(), this.target
|
||||||
this.target = nil
|
this.target = nil
|
||||||
this.spark:SetAlpha(1)
|
this.spark:SetAlpha(1)
|
||||||
|
this:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
if not this.start then
|
if not this.start then
|
||||||
|
|||||||
Reference in New Issue
Block a user