Commit 99115f31 authored by Merathilis's avatar Merathilis

Comment out QuestNPCModel thing

parent 096143b4
......@@ -155,43 +155,6 @@ local function styleQuestFrame()
_G.QuestDetailScrollFrame:SetWidth(302) -- else these buttons get cut off
-- Quest NPC model
_G.QuestNPCModelShadowOverlay:Hide()
_G.QuestNPCModelBg:Hide()
_G.QuestNPCModel:DisableDrawLayer("OVERLAY")
_G.QuestNPCModelNameText:SetDrawLayer("ARTWORK")
_G.QuestNPCModelTextFrameBg:Hide()
_G.QuestNPCModelTextFrame:DisableDrawLayer("OVERLAY")
-- Hide ElvUI's backdrop
if _G.QuestNPCModel.backdrop then _G.QuestNPCModel.backdrop:Hide() end
if _G.QuestNPCModelTextFrame.backdrop then _G.QuestNPCModelTextFrame.backdrop:Hide() end
local npcbd = CreateFrame("Frame", nil, _G.QuestNPCModel)
npcbd:SetPoint("TOPLEFT", -1, 1)
npcbd:SetPoint("RIGHT", 2, 0)
npcbd:SetPoint("BOTTOM", _G.QuestNPCModelTextScrollFrame)
npcbd:SetFrameLevel(0)
MERS:CreateBD(npcbd)
npcbd:Styling()
local npcLine = CreateFrame("Frame", nil, _G.QuestNPCModel)
npcLine:SetPoint("BOTTOMLEFT", 0, -1)
npcLine:SetPoint("BOTTOMRIGHT", 1, -1)
npcLine:SetHeight(1)
npcLine:SetFrameLevel(0)
MERS:CreateBD(npcLine, 0)
-- Text Color
_G.QuestNPCModelNameText:SetTextColor(1, 1, 1)
_G.QuestNPCModelText:SetTextColor(1, 1, 1)
hooksecurefunc("QuestFrame_ShowQuestPortrait", function(parentFrame, _, _, _, _, x, y)
if parentFrame == _G.QuestLogPopupDetailFrame or parentFrame == _G.QuestFrame then
x = x + 3
end
_G.QuestNPCModel:SetPoint("TOPLEFT", parentFrame, "TOPRIGHT", x, y)
end)
end
S:AddCallback("mUIQuestFrame", styleQuestFrame)
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