Mercurial > wow > buffalo2
diff Modules/TalkingHead.lua @ 123:b3c0258b419d v7.3.0-1
ArtifactPower:
- XP progress bar fixes
Currency:
- More argus stuff
- Block dimensions are calculated more consistently
TalkingHead
- Aesthetic changes
- Default right-click behaviour restored (hides the text box)
author | Nenue |
---|---|
date | Tue, 05 Sep 2017 02:56:33 -0400 |
parents | ea2c616a3b4f |
children |
line wrap: on
line diff
--- a/Modules/TalkingHead.lua Mon Aug 21 22:15:46 2017 -0400 +++ b/Modules/TalkingHead.lua Tue Sep 05 02:56:33 2017 -0400 @@ -7,7 +7,7 @@ local FRAME_PADDING = 2 local print = DEVIAN_WORKSPACE and function(...) print('VnTalkingHead', ...) end or nop -local thf = TalkingHeadFrame +local thf local m = { anchorPoint = 'TOPLEFT', @@ -24,7 +24,6 @@ function m:OnLoad() Veneer:AddHandler(self, self.anchorPoint) - -- force this so we can implant LoadAddOn('Blizzard_TalkingHeadUI') thf = TalkingHeadFrame end @@ -32,17 +31,16 @@ function m:Setup() print('|cFF00AAFF'..self:GetName()..'|r:Setup()', thf:IsShown(), self:IsShown()) - self:SetSize(thf:GetSize()) --hooksecurefunc(thf, 'SetPoint', function(...) -- print('SetPoint', ...) -- print(debugstack()) --end) - self.Name:SetAllPoints(thf.NameFrame.Name) self.Text:SetAllPoints(thf.TextFrame.Text) self.Portrait:SetAllPoints(thf.PortraitFrame.Portrait) + self:SetSize(thf:GetSize()) self:ApplySettings() @@ -51,6 +49,9 @@ end function m:ApplySettings() + if not thf then + return + end thf.NameFrame.Name:ClearAllPoints() thf.TextFrame.Text:ClearAllPoints() @@ -78,6 +79,9 @@ end function m:ClearAnchor() + if not thf then + return + end UIPARENT_MANAGED_FRAME_POSITIONS["TalkingHeadFrame"] = nil for i, alertSubSystem in pairs(AlertFrame.alertFrameSubSystems) do @@ -111,6 +115,9 @@ end function m:Update() + if not thf then + return + end Veneer:InternalReanchor(self) end