From d72a165fc50f3848b692c4fa37453a2bd302b0c4 Mon Sep 17 00:00:00 2001 From: failcoder Date: Tue, 25 Oct 2016 21:56:30 -0500 Subject: [PATCH] quest popup skin fixed --- SVUI_!Core/system/api.lua | 5 +++++ SVUI_Skins/components/blizzard/quest.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SVUI_!Core/system/api.lua b/SVUI_!Core/system/api.lua index 426006f..56290ec 100644 --- a/SVUI_!Core/system/api.lua +++ b/SVUI_!Core/system/api.lua @@ -1542,6 +1542,11 @@ local CURRENT_OBJECT = CreateFrame("Frame"); AppendFrameMethods(CURRENT_OBJECT) AppendTextureMethods(CURRENT_OBJECT:CreateTexture()) AppendFontStringMethods(CURRENT_OBJECT:CreateFontString()) + +function SV:AppendAPI(obj) + AppendFrameMethods(obj) +end + CURRENT_OBJECT = EnumerateFrames() while CURRENT_OBJECT do AppendFrameMethods(CURRENT_OBJECT) diff --git a/SVUI_Skins/components/blizzard/quest.lua b/SVUI_Skins/components/blizzard/quest.lua index aa9617a..5ef3503 100644 --- a/SVUI_Skins/components/blizzard/quest.lua +++ b/SVUI_Skins/components/blizzard/quest.lua @@ -31,7 +31,7 @@ local QuestFrameList = { }; local function QuestScrollHelper(b, c, d, e) - b:SetStyle("Frame", "Inset") + SV.API:Set("Frame", b, "Inset") b.spellTex = b:CreateTexture(nil, 'ARTWORK') b.spellTex:SetTexture([[Interface\QuestFrame\QuestBG]]) if e then @@ -88,7 +88,7 @@ end local _hook_DetailScrollShow = function(self) if not self.Panel then - self:SetStyle("Frame", "Default") + SV.API:Set("Frame", self) QuestScrollHelper(self, 509, 630, false) end self.spellTex:SetHeight(self:GetHeight() + 217) -- 1.7.9.5