Narci:HideButtonTooltip();
Narci.UserIsInputing = true;
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);
self:OnLoad();
self.isRight = true;
NarciTooltip:FadeOut();
if self.Pushed and self.Icon then
self.Pushed:SetTexCoord(self.Icon:GetTexCoord())
end
self.enableSFX = true;
self.Icon:SetTexCoord(0.5, 1, 0, 1);
self.Pushed:SetTexCoord(0.5, 1, 0, 1);
NarciTooltip:ShowTooltip(self);
if not self.IsOn then
self.Icon:SetTexCoord(0, 0.5, 0, 1);
self.Pushed:SetTexCoord(0, 0.5, 0, 1);
end
NarciTooltip:FadeOut();
return;
self.enableSFX = false;
UIFrameFadeIn(self, 0.2, self:GetAlpha(), 1)
UIFrameFadeOut(self, 0.2, self:GetAlpha(), 0)
self.EscapeKey = "ESCAPE";
if (key == self.EscapeKey or key == "F5") and (not Narci.UserIsInputing) then --ConsolePort "Back"
Narci_KeyListener_OnEscapePressed();
end
self.Icon:SetTexCoord(0.25, 0.5, 0.75, 1);
if not CameraZoomController_DraggingFrame:IsShown() then
NarciTooltip:ShowTooltip(self);
end
if not self.IsOn then
self.Icon:SetTexCoord(0, 0.25, 0.75, 1);
end
NarciTooltip:FadeOut();
self.Icon:SetSize(74, 74);
self.Icon:SetSize(80, 80);
MoveViewRightStop();
MoveViewLeftStop();
Narci_VirtualLineCenter:Show();
Narci_VirtualLineCenter:Hide();
SetCursor("Interface/CURSOR/openhand.blp")
ResetCursor();
CameraControlBar_DraggingFrame:Show()
CameraControlBar_DraggingFrame:Hide()
self.isPressed = false;
self.cx, self.cy= self:GetParent().Thumb:GetCenter()
self:SetScript("OnEvent", function(self, event, ...)
if event == "MODIFIER_STATE_CHANGED" then
local key, isPressed = ...;
if key == "LSHIFT" then
if isPressed == 1 then
self.isPressed = true;
else
self.isPressed = false;
end
end
end
end)
self.cx, self.cy= self:GetParent().Thumb:GetCenter()
self:RegisterForClicks("RightButtonUp")
self:RegisterForDrag("LeftButton")
SetCursor("Interface/CURSOR/openhand.blp")
CameraZoomController_DraggingFrame:Show()
CameraZoomController_DraggingFrame:Hide()
self.OppoDirection = false;
self.TimeSinceLastUpdate = 0;
self.duration = 0.5;
self.TimeSinceLastUpdate = 0;
self.PosRadian = 0;
self.PosOffset = 0;
self.Range = 120;
CameraZoomController_DraggingFrame:RegisterEvent("MODIFIER_STATE_CHANGED");
CameraZoomController_DraggingFrame:UnregisterEvent("MODIFIER_STATE_CHANGED");
self.enableSFX = true;
self.Icon:SetTexCoord(0.5, 1, 0, 1);
self.Pushed:SetTexCoord(0.5, 1, 0, 1);
local frame = Narci_XmogButtonPopUp.AnimFrame;
if not self.IsOn then
NarciTooltip:ShowTooltip(self);
elseif not Narci_XmogButtonPopUp:IsShown() then
Narci_XmogButtonPopUp:Show();
frame:Hide();
frame.OppoDirection = false
frame:Show();
frame.toY = 8;
if Narci_EmoteButtonPopUp:IsShown() then
Narci_EmoteButtonPopUp.AnimFrame.OppoDirection = true
Narci_EmoteButtonPopUp.AnimFrame:Show();
Narci_EmoteButtonPopUp.AnimFrame.toY = -20;
end
end
self.enableSFX = true;
self.Icon:SetTexCoord(0.5, 1, 0, 1);
self.Pushed:SetTexCoord(0.5, 1, 0, 1);
local frame = Narci_EmoteButtonPopUp.AnimFrame;
if not self.IsOn then
NarciTooltip:ShowTooltip(self);
elseif not Narci_EmoteButtonPopUp:IsShown() then
Narci_EmoteButtonPopUp:Show();
frame:Hide();
frame.OppoDirection = false
frame:Show();
frame.toY = 8;
local xmogPopUp = Narci_XmogButtonPopUp;
if xmogPopUp:IsShown() then
xmogPopUp.AnimFrame:Hide();
xmogPopUp.AnimFrame.OppoDirection = true
xmogPopUp.AnimFrame:Show();
xmogPopUp.AnimFrame.toY = -20;
end
end
self:Hide();
self:SetAlpha(0);
self.enableSFX = false;
self.Label:SetText(MULTISAMPLE_ANTI_ALIASING);
local level = GetCVar("MSAAQuality") or 0;
local value0 = tonumber(string.sub(level, 1,1));
self:SetValue(value0);
self.KeyLabel:Hide();
self.Label:Hide();
self.KeyLabel2:Show();
TopQualityButton_MSAASlider_OnValueChanged(self, value0, false)
self.Background:SetColorTexture(0.06, 0.06, 0.06, 0.8);
self.IsOn = false;
self.Label:SetText(Narci.L["Auto Capture"]);
self.isOn = false;
self.ShowModel = false;
self.IsOn = false;
self.showItemID = false;
self.HeaderText:SetText(NARCI_CLIPBOARD)
self.Background:SetColorTexture(0.06, 0.06, 0.06, 0.8)
self.IsOn = false;
self.Label:SetText(NARCI_ITEM_ID)
self.HeaderText:SetText(Narci.L["Export Includes"])
self.HeaderText:SetText(Narci.L["Syntax"]);
self:SetFocus()
self:HighlightText()
local LetterNum = self:GetNumLetters()
local w = math.max(LetterNum*10, 180)
--self:GetParent().Background:SetWidth(w)
self:SetAutoFocus(false)
self:HighlightText(0,0)
self:ClearFocus();
--SetCursor("Interface/CURSOR/Point.blp")
self.CopyButton.IsOn = false;
self.CopyButton.GearTexts:Hide();
self.CopyButton.GearTexts:SetAlpha(0);
self.tooltipHeadline = "Name Your Set -PH"
self.tooltipLine1 = "Left-click to modify this text."
if self:GetParent():GetAlpha() ~= 1 then
return;
end
Narci_ShowButtonTooltip(self);
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:ClearFocus();
self:ClearFocus();
Narci:HideButtonTooltip();
SetCursor("Interface/CURSOR/Point.blp")
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():Hide();
DoEmote("Stand", "none");
self:Play();
self:RegisterEvent("PLAYER_REGEN_DISABLED");
self:Hide();
self:SetAlpha(0);
self:StopAnimating();
self:UnregisterEvent("PLAYER_REGEN_DISABLED");
self:Hide();
local LetterNum = self:GetNumLetters()
local w = math.max(LetterNum*16, 180)
self:SetWidth(w);
if self:GetParent():GetAlpha() ~= 1 then
return;
end
if self:IsEnabled() then
SetCursor("Interface/CURSOR/Cast.blp")
end
NarciAPI.SmartFontType(self)
local LetterNum = self:GetNumLetters()
local w = math.max(LetterNum*16, 160)
self:SetWidth(w);
self:ClearFocus();
self:HighlightText(0,0);
local text = strtrim(self:GetText());
self:SetText(text);
NarcissusDB_PC.PlayerAlias = text;
self:ClearFocus();
self:HighlightText(0,0);
local text = strtrim(self:GetText());
self:SetText(text);
NarcissusDB_PC.PlayerAlias = text;
Narci:HideButtonTooltip();
SetCursor("Interface/CURSOR/Point.blp")
self:ClearFocus();
self:HighlightText(0,0);
self:SetWidth(self.Label:GetWidth()+12)
self.Label:SetTextColor(0, 0, 0);
self.Label:SetShadowColor(1, 1, 1);
self.Highlight:Show();
self.Label:SetTextColor(0.25, 0.78, 0.92);
self.Label:SetShadowColor(0, 0, 0);
self.Highlight:Hide();
self:SetAlpha(0)
self.Label:SetTextColor(0.25, 0.78, 0.92);
self.Label:SetShadowColor(0, 0, 0);
self.Highlight:Hide();
local TooltipFrame = self:GetParent().PlayerName.TooltipFrame;
UIFrameFadeIn(TooltipFrame, 0.15, TooltipFrame:GetAlpha(), 1);
Narci:HideButtonTooltip();
SetCursor("Interface/CURSOR/Point.blp")
local TooltipFrame = self:GetParent().PlayerName.TooltipFrame;
--print("leave")
if not self:IsMouseOver() then
UIFrameFadeOut(TooltipFrame, 0.15, TooltipFrame:GetAlpha(), 0);
Narci_PlayerInfoFrame.PlayerName:HighlightText(0,0)
if NarcissusDB_PC.UseAlias then
local editBox = Narci_PlayerInfoFrame.PlayerName;
local text = strtrim(editBox:GetText());
editBox:SetText(text);
NarcissusDB_PC.PlayerAlias = text;
end
Narci_PlayerInfoFrame.PlayerName:ClearFocus()
end
PlaySound(54133);
self:GetParent():Show();
self:GetParent():Hide();
self.tooltipFormat = Narci.L["Equipped Item Level Format"];
self.tooltipLine1 = STAT_AVERAGE_ITEM_LEVEL_TOOLTIP;
Narci:HideButtonTooltip();
UIFrameFadeOut(self.Highlight, 0.25, self.Highlight:GetAlpha(), 0);
self.Highlight:SetAlpha(0);
self.tooltipHeadline = LANDING_PAGE_RENOWN_LABEL;
Narci_ShowButtonTooltip(self);
UIFrameFadeIn(self.Highlight, 0.15, self.Highlight:GetAlpha(), 1);
Narci:HideButtonTooltip();
UIFrameFadeOut(self.Highlight, 0.25, self.Highlight:GetAlpha(), 0);
self.Highlight:SetAlpha(0);
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();
self:SetAlpha(0.5);
Minimap:HookScript("OnHide", function() self:Hide() end);
Minimap:HookScript("OnShow", function() self:Show() end);
self:GetParent():Hide();
self:SetAlpha(0);
self:SetFrameLevel(self:GetParent():GetFrameLevel() - 1);
local tex = "Interface/AddOns/Narcissus/Art/Minimap/Panel";
local sampling = "TRILINEAR";
self.Top:SetTexture(tex, nil, nil, sampling);
self.Middle:SetTexture(tex, nil, nil, sampling);
self.Bottom:SetTexture(tex, nil, nil, sampling);
self:SetAlpha(0);