self:SetUnit("player");
local frame = self:GetParent():GetParent();
if not frame.Pieces then
frame.Pieces = {};
end
tinsert(frame.Pieces, self);
Narci_AttributeFrame_OnLoad(self);
local delay = (self:GetID())/20;
self.animIn.A2:SetStartDelay(delay);
Narci_ShowStatTooltip(self);
Narci:HideButtonTooltip();
--self:GetParent():Show()
Narci_AttributeFrame_OnLoad(self);
local delay = (self:GetID())/20;
self.animIn.A2:SetStartDelay(delay);
Narci_ShowStatTooltip(self);
Narci:HideButtonTooltip();
Narci_AttributeFrame_OnLoad(self);
Narci_ShowStatTooltip(self);
self:GetParent():SetVerticeSize(self, 15);
Narci:HideButtonTooltip();
self:GetParent():SetVerticeSize(self, 12);
Narci_AttributeFrame_OnLoad(self);
Narci_ShowStatTooltip(self);
self:GetParent():SetVerticeSize(self, 15);
Narci:HideButtonTooltip();
self:GetParent():SetVerticeSize(self, 12);
--self:GetParent():Show()
Narci_AttributeFrame_OnLoad(self);
local delay = (self:GetID())/20;
self.animIn.A2:SetStartDelay(delay);
Narci_ShowStatTooltip(self);
Narci:HideButtonTooltip();
self.isRight = true;
self.GemBorder:SetTexCoord(1, 0, 0, 1);
self.GemBorderShadow:SetTexCoord(1, 0, 0, 1);
SetPortraitTexture(self.PortraitTexture, "player", true);
if self:GetParent():GetAlpha() ~= 1 then
return;
end
SetCursor("Interface/CURSOR/Cast.blp")
NarciAPI.SmartFontType(self)
local LetterNum = self:GetNumLetters()
local w = math.max(LetterNum*16, 180);
self:GetParent().Background:SetWidth(w)
self:OnEnter();
if self.isAzeriteItem then
AnimationSequenceContainer_Heart:Hide();
AnimationSequenceContainer_Heart:Show();
AnimationSequenceContainer_Heart.OppoDirection = false;
end
self:OnLeave();
AnimationSequenceContainer_Heart:Hide();
AnimationSequenceContainer_Heart:Show();
AnimationSequenceContainer_Heart.OppoDirection = true
self:GetParent():UnregisterEvent("PLAYER_REGEN_ENABLED");
self:GetParent():Hide();
DoEmote("Stand", "none");
self:Play();
self:RegisterEvent("PLAYER_REGEN_DISABLED");
self:Hide();
self:SetAlpha(0);
self:StopAnimating();
self:UnregisterEvent("PLAYER_REGEN_DISABLED");
if event == "PLAYER_REGEN_DISABLED" then
self:Hide();
self:RegisterEvent("PLAYER_REGEN_ENABLED");
elseif event == "PLAYER_REGEN_ENABLED" then
self:UnregisterEvent(event);
if Narci_Attribute:IsVisible() and Narci.isActive then
self:Show();
self:SetAlpha(1);
end
end
local AliasButton = self:GetParent().PlayerName.AliasButton;
AliasButton:FadeIn(0.15);
Narci:HideButtonTooltip();
SetCursor("Interface/CURSOR/Point.blp")
local PlayerNameFrame = self:GetParent().PlayerName;
if not self:IsMouseOver() or (Narci_TitleFrame:IsMouseOver()) then
PlayerNameFrame.AliasButton:FadeOut(0.15);
PlayerNameFrame:SaveAndExit();
end
PlaySound(54133);
self:GetParent():Show();
self:GetParent():Hide();
local parent = self:GetParent();
parent:SetAlpha(0);
C_Timer.After(0.7, function()
parent:AnimateValue();
end)
self:GetParent():SetAlpha(1);
self.A1:SetFromAlpha(self:GetParent():GetAlpha());
self:GetParent():Hide();
self.animOut:Stop();
self:GetParent():Show();
Narci_Character:SetAlpha(0);
self:GetParent():Show()
self:GetParent():Show()
self.VignetteRight.animIn:Play();