Commit fdaebe16 authored by Merathilis's avatar Merathilis

Updated QuestHeaders on the QuestMapFrame skin.

parent 07ba52d2
......@@ -34,29 +34,37 @@ local function styleQuestMapFrame()
QuestScrollFrame.DetailFrame.BottomDetail:SetAlpha(0)
QuestScrollFrame.Contents.Separator:SetAlpha(0)
for _, header in next, {campaignHeader, storyHeader} do
header.Background:SetAlpha(0)
header.HighlightTexture:Hide()
header.Text:SetPoint("TOPLEFT", 15, -20)
local bg = MERS:CreateBDFrame(header, .25)
bg:SetPoint("TOPLEFT", 6, -2)
bg:SetPoint("BOTTOMRIGHT", -6, 2)
if header == campaignHeader then
local newTex = bg:CreateTexture(nil, "OVERLAY")
newTex:SetPoint("TOPRIGHT", -15, -3)
newTex:SetSize(50, 50)
local questHeader = {
QuestScrollFrame.Contents.WarCampaignHeader,
QuestScrollFrame.Contents.StoryHeader
}
for i = 1, #questHeader do
local frame = questHeader[i]
frame.HighlightTexture:Hide()
frame.Background:Hide()
frame.Text:SetPoint("TOPLEFT", 15, -20)
frame:CreateBackdrop("Transparent")
if i == 1 then -- WarCampaignHeader
local newTex = frame:CreateTexture(nil, "OVERLAY")
newTex:SetPoint("TOPRIGHT", -15, -7)
newTex:SetSize(40, 40)
newTex:SetBlendMode("ADD")
newTex:SetAlpha(0)
header.newTex = newTex
frame.newTex = newTex
frame.backdrop:SetPoint("TOPLEFT", 6, -5)
else -- StoryHeader
frame.backdrop:SetPoint("TOPLEFT", 6, -9)
end
frame.backdrop:SetPoint("BOTTOMRIGHT", -6, 11)
header:HookScript("OnEnter", function()
bg:SetBackdropColor(r, g, b, .25)
frame:HookScript("OnEnter", function()
frame.backdrop:SetBackdropColor(r, g, b, .25)
end)
header:HookScript("OnLeave", function()
bg:SetBackdropColor(0, 0, 0, .25)
frame:HookScript("OnLeave", function()
frame.backdrop:SetBackdropColor(0, 0, 0, .25)
end)
end
......@@ -77,7 +85,6 @@ local function styleQuestMapFrame()
end
end
-- Scroll frame
hooksecurefunc("QuestLogQuests_Update", function()
UpdateCampaignHeader()
end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment