Commit 484ef960 authored by Merathilis's avatar Merathilis
Browse files

Update QuestMapFrame skin

parent 095dee17
...@@ -82,11 +82,14 @@ local function styleQuestMapFrame() ...@@ -82,11 +82,14 @@ local function styleQuestMapFrame()
local function UpdateCampaignHeader() local function UpdateCampaignHeader()
campaignHeader.newTex:SetAlpha(0) campaignHeader.newTex:SetAlpha(0)
if campaignHeader:IsShown() then if campaignHeader:IsShown() then
local warCampaignInfo = C_CampaignInfo_GetCampaignInfo(C_CampaignInfo_GetCurrentCampaignID()) local campaignID = C_CampaignInfo_GetCurrentCampaignID()
local textureID = warCampaignInfo.uiTextureKitID if campaignID then
if textureID and idToTexture[textureID] then local warCampaignInfo = C_CampaignInfo_GetCampaignInfo(campaignID)
campaignHeader.newTex:SetTexture(idToTexture[textureID]) local textureID = warCampaignInfo.uiTextureKitID
campaignHeader.newTex:SetAlpha(.7) if textureID and idToTexture[textureID] then
campaignHeader.newTex:SetTexture(idToTexture[textureID])
campaignHeader.newTex:SetAlpha(.7)
end
end end
end end
end 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