/
-- Occurs when player enters 'combat' |
function RuneWatch:PLAYER_REGEN_DISABLED(event, ...) |
-- Always make sure our opacity is at full when we enter combat. |
self.State.FadeOut.active = false; |
self.State.FadeOut.elapsed = 0; |
self.Gui.Anchor:SetAlpha(1); |
end |
local bord = frame:CreateTexture("$parent_BarBorder", "ARTWORK"); |
bord:SetTexture(artTextures.Border); |
bar:SetPoint("LEFT", self.Gui.Art.Base, "LEFT", 0, 0); |
bar:SetWidth(300); |
bar:SetHeight(150); |
bar:Show(); |
bord:SetPoint("LEFT", self.Gui.Art.Base, "LEFT", 0, 0); |
bord:SetWidth(300); |
bord:SetHeight(150); |
bord:Show(); |
self.Gui.Art.Bar = bar; |
self.Gui.Art.BarBorder = bord; |