Verified Commit a8d89c91 authored by Repooc's avatar Repooc
Browse files

move talking head frame to be in a better spot. should fix lucky's issue

parent 065f9dfe
......@@ -311,6 +311,20 @@ local function CompatibilityChecks()
if SLE._Compatibility['Mapster'] then B.Frames['WorldMapFrame'] = false end
end
function B:SLETalkingHead()
if E.db.sle.skins.talkinghead.hide then
E:DisableMover(_G.TalkingHeadFrame.mover:GetName())
else
E:EnableMover(_G.TalkingHeadFrame.mover:GetName())
end
end
function B:UpdateAll()
B.db = E.db.sle.blizzard
B:ErrorFrameSize()
B:SLETalkingHead()
end
function B:Initialize()
B.db = E.db.sle.blizzard
if not SLE.initialized then return end
......@@ -345,10 +359,14 @@ function B:Initialize()
end
B:ErrorFrameSize()
function B:ForUpdateAll()
B.db = E.db.sle.blizzard
B:ErrorFrameSize()
end
SLE.UpdateFunctions["Blizzard"] = B.UpdateAll
B:SLETalkingHead()
hooksecurefunc('TalkingHeadFrame_PlayCurrent', function()
if E.db.sle.skins.talkinghead.hide then
_G.TalkingHeadFrame:Hide()
end
end)
end
SLE:RegisterModule(B:GetName())
......@@ -4,5 +4,4 @@
<Script file='objectiveTracker.lua'/>
<Script file='merchant.lua'/>
<Script file='merchantList.lua'/>
<Script file='talkinghead.lua'/>
</Ui>
\ No newline at end of file
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local B = E:GetModule('Blizzard')
local _G = _G
function B:SLETalkingHead()
if E.db.sle.skins.talkinghead.hide then
E:DisableMover(TalkingHeadFrame.mover:GetName())
else
E:EnableMover(_G.TalkingHeadFrame.mover:GetName())
end
end
local function LoadHooks()
hooksecurefunc('TalkingHeadFrame_PlayCurrent', function()
if E.db.sle.skins.talkinghead.hide then
_G.TalkingHeadFrame:Hide()
end
end)
B:SLETalkingHead()
end
hooksecurefunc(B, 'ScaleTalkingHeadFrame', LoadHooks)
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