Skip to content

Commit

Permalink
added AtlasQuest skin #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Loaal committed Mar 1, 2017
1 parent 9704368 commit 3af0af9
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 0 deletions.
107 changes: 107 additions & 0 deletions ElvUI_AddOnSkins/addons/atlasQuest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule("Skins")

-- AtlasQuest 4.4.3

local function LoadSkin()
if(not E.private.addOnSkins.AtlasQuest) then return end

local buttons = {
STORYbutton,
OPTIONbutton,
CLOSEbutton3,
AQOptionCloseButton,
}

local checkBoxes = {
AQACB,
AQHCB,
AQFinishedQuest,
AQAutoshowOption,
AQLEFTOption,
AQRIGHTOption,
AQColourOption,
AQCheckQuestlogButton,
AQAutoQueryOption,
AQNoQuerySpamOption,
AQCompareTooltipOption,
}

local closeButtons = {
CLOSEbutton,
CLOSEbutton2,
}

for _, button in ipairs(buttons) do
S:HandleButton(button)
end
for _, checkBox in ipairs(checkBoxes) do
S:HandleCheckBox(checkBox)
end
for _, closeButton in ipairs(closeButtons) do
S:HandleCloseButton(closeButton)
end

AtlasQuestFrame:StripTextures()
AtlasQuestFrame:SetTemplate("Transparent")
AtlasQuestFrame:ClearAllPoints()
AtlasQuestFrame:Point("BOTTOMRIGHT", AtlasFrame, "BOTTOMLEFT", 1, 0)

AQ_HordeTexture:SetTexture("Interface\\TargetingFrame\\UI-PVP-HORDE")
AQ_AllianceTexture:SetTexture("Interface\\TargetingFrame\\UI-PVP-ALLIANCE")

if AtlasMap then
AtlasQuestInsideFrame:Size(AtlasMap:GetSize())
end

AtlasQuestOptionFrame:StripTextures()
AtlasQuestOptionFrame:SetTemplate("Transparent")

CLOSEbutton:ClearAllPoints()
CLOSEbutton:Point("TOPLEFT", AtlasQuestFrame, "TOPLEFT", 4, -4)
CLOSEbutton:Size(32)

CLOSEbutton2:Size(32)

AtlasQuestTooltip:SetTemplate("Transparent")

for i = 1, 6 do
_G["AtlasQuestItemframe"..i.."_Icon"]:SetTexCoord(unpack(E.TexCoords));
end

function AQ_AtlasOrAlphamap()
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasORAlphaMap = "Atlas"
AtlasQuestFrame:SetParent(AtlasFrame)

if AQ_ShownSide == "Right" then
AtlasQuestFrame:ClearAllPoints()
AtlasQuestFrame:Point("BOTTOMLEFT", AtlasFrame, "BOTTOMRIGHT", -1, 0)
else
AtlasQuestFrame:ClearAllPoints()
AtlasQuestFrame:Point("BOTTOMRIGHT", AtlasFrame, "BOTTOMLEFT", 1, 0)
end

AtlasQuestInsideFrame:SetParent(AtlasFrame)
AtlasQuestInsideFrame:ClearAllPoints()
AtlasQuestInsideFrame:Point("TOPLEFT", "AtlasFrame", 18, -84)
elseif AlphaMapFrame and AlphaMapFrame:IsVisible() then
AtlasORAlphaMap = "AlphaMap"
AtlasQuestFrame:SetParent(AlphaMapFrame)

if AQ_ShownSide == "Right" then
AtlasQuestFrame:ClearAllPoints()
AtlasQuestFrame:Point("TOP", "AlphaMapFrame", 400, -107)
else
AtlasQuestFrame:ClearAllPoints()
AtlasQuestFrame:Point("TOPLEFT", "AlphaMapFrame", -195, -107)
end

AtlasQuestInsideFrame:SetParent(AlphaMapFrame)
AtlasQuestInsideFrame:ClearAllPoints()
AtlasQuestInsideFrame:Point("TOPLEFT", "AlphaMapFrame", 1, -108)
end
end
end

S:AddCallbackForAddon("AtlasQuest", "AtlasQuest", LoadSkin)
1 change: 1 addition & 0 deletions ElvUI_AddOnSkins/addons/load_addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@
<Script file="mageNuggets.lua"/>
<Script file="inspectEquip.lua"/>
<Script file="advancedTradeSkillWindow.lua"/>
<Script file="atlasQuest.lua"/>
</Ui>
6 changes: 6 additions & 0 deletions ElvUI_AddOnSkins/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ local function getOptions()
desc = L["TOGGLESKIN_DESC"],
hidden = function() return not addon:CheckAddOn("AdvancedTradeSkillWindow"); end
},
AtlasQuest = {
type = "toggle",
name = "AtlasQuest",
desc = L["TOGGLESKIN_DESC"],
hidden = function() return not addon:CheckAddOn("AtlasQuest"); end
},
}
},
blizzard = {
Expand Down
1 change: 1 addition & 0 deletions ElvUI_AddOnSkins/profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ V.addOnSkins = {
MageNuggets = true,
InspectEquip = true,
AdvancedTradeSkillWindow = true,
AtlasQuest = true,

Blizzard_WorldStateFrame = true,
};

0 comments on commit 3af0af9

Please sign in to comment.