Mercurial > wow > buffalo2
diff Modules/ObjectiveTracker.lua @ 73:95ed343c3a42
- VeneerBuffTemplate and members
author | Nenue |
---|---|
date | Tue, 23 Aug 2016 16:15:09 -0400 |
parents | d80db9a9b7e4 |
children |
line wrap: on
line diff
--- a/Modules/ObjectiveTracker.lua Tue Aug 23 14:53:38 2016 -0400 +++ b/Modules/ObjectiveTracker.lua Tue Aug 23 16:15:09 2016 -0400 @@ -9,7 +9,9 @@ local ot local otvn -local ResetObjectiveTrackerAnchor = function() +local INSET_V = -20 + +local GetVeneer = function() print('|cFFFF4400ObjectiveTracker_Initialize|r') otvn = vn.GetVeneer(ot) @@ -21,11 +23,7 @@ end ot:ClearAllPoints() ot:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', -5, -140) - print(ot:GetHeight(), ot:GetWidth()) - local width, height = ot:GetSize() - ot:SetSize(width, height) - print(ot:GetHeight(), ot:GetWidth()) --vn.GetVeneer(ot):SetAllPoints(ot) end @@ -36,17 +34,14 @@ - print(ot:GetPoint(1),ot:GetPoint(2), ot:GetSize()) - print(ot:GetTop(), ot:GetLeft()) - print(ot:GetBottom(), ot:GetRight()) - print(otvn:GetTop(), otvn:GetLeft()) - print(otvn:GetBottom(), otvn:GetRight()) - otvn:Show() + ot:ClearAllPoints() + ot:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', -5, -140) + end local CreateVeneer = function() ot = ObjectiveTrackerFrame - hooksecurefunc('ObjectiveTracker_Initialize', ResetObjectiveTrackerAnchor) + hooksecurefunc('ObjectiveTracker_Initialize', GetVeneer) hooksecurefunc('ObjectiveTracker_Update', UpdateVeneer) end