if not IsMouseButtonDown() then
self.VirtualThumb:SetTexCoord(0.9375, 1, 0, 0.25);
end
if not IsMouseButtonDown() then
self.VirtualThumb:SetTexCoord(0.875, 0.9375, 0, 0.25);
end
self.VirtualThumb:SetTexCoord(0.9375, 1, 0, 0.25);
if self:IsMouseOver() then
self.VirtualThumb:SetTexCoord(0.9375, 1, 0, 0.25);
else
self.VirtualThumb:SetTexCoord(0.875, 0.9375, 0, 0.25);
end
self.Shadow:SetVertexColor(0, 0, 0);
self.RadialShadow:SetVertexColor(0, 0, 0);
self.Icon:SetTexCoord(0, 0.25, 0.5, 1);
self.Icon:SetTexCoord(0.25, 0.5, 0.5, 1);
local backdropInfo = {
edgeFile = "Interface\\AddOns\\Narcissus\\Art\\Tooltip\\Tooltip-Border-White",
tile = true,
tileEdge = true,
tileSize = 12,
edgeSize = 12,
}
self:SetBackdrop(backdropInfo);
self:SetAlpha(0);
self.offsetTop = 0;
self:RegisterForDrag("LeftButton");
self:StartMoving();
self:StopMovingOrSizing();
UIFrameFadeIn(self.Option, 0.25, self.Option:GetAlpha(), 1);
if (not self:IsMouseOver(self.offsetTop)) and (not IsMouseButtonDown() ) then
UIFrameFadeOut(self.Option, 0.25, self.Option:GetAlpha(), 0);
end
SetCursor("Interface/CURSOR/UI-Cursor-Move.blp");
ResetCursor();
local width = Narci_VignetteLeft:GetWidth();
local height = Narci_VignetteLeft:GetHeight();
local alpha = Narci_VignetteLeft:GetAlpha();
self.VignetteRightSmall:SetSize(width, height);
self.VignetteRightSmall:SetAlpha(alpha)
self:Hide();
self.isOn = false;
self.Highlight:Show();
self.Highlight:Hide();
self.isOn = false;
self.Highlight:Show();
self.Highlight:Hide();
self:Initialize(20, self:GetParent():GetParent():GetID() == 2 );
self:GetParent().Highlight = self.Highlight;
UIFrameFadeIn(self.Highlight, 0.12, self.Highlight:GetAlpha(), 0.6);
if not self.isOn then
UIFrameFadeIn(self.Highlight, 0.25, self.Highlight:GetAlpha(), 0);
end
if self.isOn then
self.Highlight:SetAlpha(1);
else
self.Highlight:SetAlpha(0);
end
local _;
_, _, self.raceID = UnitRace("player");
self.gender = UnitSex("player");
self.isOn = false;
self.tooltip = Narci.L["Race Change Tooltip"];
self.PortaitAnchor:SetSize(50, 50);
self.PortaitAnchor:SetSize(54, 54);
NarciTooltip:ShowTooltip(self);
NarciTooltip:FadeOut();
self:UnlockHighlight();
SetPortraitTexture(self.Portrait1, "player");
local backdropInfo = {
edgeFile = "Interface\\AddOns\\Narcissus\\Art\\Tooltip\\Tooltip-RoundedGrey-Border",
bgFile = "Interface\\AddOns\\Narcissus\\Art\\Tooltip\\Tooltip-RoundedGrey-Background",
tile = true,
tileEdge = true,
tileSize = 32,
edgeSize = 32,
insets = { left = 32, right = 32, top = 32, bottom = 32 },
}
self:SetBackdrop(backdropInfo);
self:Hide();
self:SetAlpha(0);
self.Highlight:SetSize(18, 18);
self.Highlight:SetSize(20, 20);
NarciTooltip:ShowTooltip(self, 0, 8);
NarciTooltip:FadeOut();
self.Highlight:Show()
if not self.isOn then
self.Highlight:Hide()
end
self.Label:SetText(Narci.L["Group Photo"]);
self.Label:SetTextColor(0.25, 0.78, 0.92);
self.Label:SetText(Narci.L["Virtual Actor"]);
self.isOn = false;
self.Highlight:SetAlpha(1);
self.Highlight:SetColorTexture(1, 1, 1, 0.25);
self.Icon:SetSize(16, 16);
self.Icon:SetSize(18, 18);
self.Highlight:Hide();
self.Icon:SetDesaturated(false);
self.Icon:SetDesaturated(true);
self.Icon:SetSize(16, 16);
self.Icon:SetSize(18, 18);
self.isOn = false;
self.Label:SetText(Narci.L["Link Model Scales"]);
self.isOn = true;
self.Label:SetText(Narci.L["Link Light Sources"]);
self.Highlight:Show();
self.Label:SetTextColor(0.88, 0.88, 0.88);
self.tooltip = Narci.L["Actor Index Tooltip"];
self:GetParent().Label:SetText(Narci.L["Actor Index"]);
if not IsMouseButtonDown() then
NarciTooltip:ShowTooltip(self);
end
NarciTooltip:FadeOut();
self.Label:SetText(Narci.L["Target"]);
self.Icon:SetTexCoord(0, 0.25, 0, 1);
self.Icon:Show();
local button = self:GetParent().parent;
if button then
button:Click();
end
self.Label:SetText(Narci.L["Self"]);
self.Text:SetText(Narci.L["Keep Current Form"]);
self.Border:SetTexCoord(0, 0.125, 0, 0.5);
self.Label:SetText(Narci.L["Virtual Actor"]);
self.Text:SetText(Narci.L["Virtual Actor Tooltip"]);
self.Border:SetTexCoord(0.25, 0.375, 0, 0.5);
self:SetKey("Alt", nil, nil, true);
self.isOn = false;
self:Disable();
self.Highlight:Show()
if not self.isOn then
self.Highlight:Hide()
end
self.tooltip = {Narci.L["Light Types"], Narci.L["Light Types Tooltip"]};
self.guideIndex = 7;
NarciPhotoModeButton_OnLoad(self);
self.Background:Show();
NarciTooltip:ShowTooltip(self, 0, 0);
self.Background:Hide();
NarciTooltip:FadeOut();
self.Icon:SetSize(18, 18);
self.Icon:SetSize(20, 20);
self.ShowSlider = false;
self.tooltip = Narci.L["Show Color Sliders"];
if not IsMouseButtonDown() then
self.Thumb:SetTexCoord(0.96875, 1, 0, 0.0625);
end
if not self.isActive then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0, 0.0625);
end
self.isActive = true;
self.isActive = false;
if not self:IsMouseOver() then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0, 0.0625);
end
self.isActive = false;
if not IsMouseButtonDown() then
self.Thumb:SetTexCoord(0.96875, 1, 0.0625, 0);
end
if not self.isActive then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0.0625, 0);
end
self.isActive = true;
self.isActive = false;
if not self:IsMouseOver() then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0.0625, 0);
end
self.isActive = false;
if not IsMouseButtonDown() then
self.Thumb:SetTexCoord(0.96875, 1, 0.0625, 0.125);
end
if not self.isActive then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0.0625, 0.125);
end
self.isActive = true;
self.isActive = false;
if not self:IsMouseOver() then
self.Thumb:SetTexCoord(0.9375, 0.96875, 0.0625, 0.125);
end
self.isActive = false;
self.isOn = false;
self.Highlight:Show();
self.Highlight:Hide();
self.Label:SetText(Narci.L["Animation"]);
self.tooltip = Narci.L["Animation Tooltip"];
self:SetFrameLevel(self:GetParent():GetFrameLevel() + 2);
UIFrameFadeIn(self.Highlight, 0.2, self.Highlight:GetAlpha(), 1);
NarciTooltip:ShowTooltip(self, 0, 2, 1);
UIFrameFadeOut(self.Highlight, 0.2, self.Highlight:GetAlpha(), 0);
NarciTooltip:FadeOut();
Narci_AnimationBrowser:Toggle();
self:GetParent():ClearFocus();
self:SetKey(nil, "MouseWheel", "Browse through IDs");
self:GetParent():Hide();
self.animIn:Play();
self:Hide();
self:StopAnimating();
self.isOn = false;
self.Highlight:Hide();
self.tooltip = Narci.L["Pause Button Tooltip"];
self.isOn = true;
self.Highlight:Show();
self.tooltip = Narci.L["Play Button Tooltip"];
self:Hide();
self.Icon:SetTexCoord(0.25, 0.5, 0, 0.5);
self:SetValue(NarcissusDB.VignetteStrength or 0.8)
self.Icon:SetTexCoord(0, 0.25, 0, 0.5);
self:SetValue(0);
self.isOn = false;
self.tooltip = Narci.L["Reset"];
self.Highlight:Show();
NarciTooltip:ShowTooltip(self);
NarciTooltip:FadeOut();
self.Highlight:Hide();
self.Icon:SetSize(26, 26);
self.Icon:SetSize(30, 30);
self.Label:SetText(Narci.L["Ground Shadow"])
self.isOn = false;
self.tooltip = {Narci.L["Ground Shadow"], Narci.L["Ground Shadow Tooltip"]};
self.guideIndex = 3;
NarciTooltip:ShowTooltip(self);
NarciTooltip:FadeOut();
self.Label:SetText(Narci.L["Hide Player"]);
self.tooltip = {Narci.L["Hide Player"], Narci.L["Hide Player Tooltip"]};
self.guideIndex = 4;
self.isOn = false;
self:UnlockHighlight();
self:RegisterEvent("PLAYER_LEAVING_WORLD");
if self.isOn then
--ConsoleExec( "showPlayer 1");
self:Click();
end
self:UnregisterEvent("PLAYER_LEAVING_WORLD");
if self.isOn then
ConsoleExec( "showPlayer 1");
end
self.Label:SetText(Narci.L["Transmog Layout3"])
self.tooltip = {Narci.L["Transmog Layout3"], Narci.L["Compact Mode Tooltip"]}
self.guideIndex = 5;
self:Enable();
self:GetParent():Hide();
self.InOut:Play();