Mercurial > wow > buffalo2
diff Modules/ObjectiveTracker.lua @ 72:d80db9a9b7e4
- created 'VeneerTemplate' xml
- implement drag drop parent re-anchoring
author | Nenue |
---|---|
date | Tue, 23 Aug 2016 14:53:38 -0400 |
parents | 6f8661094643 |
children | 95ed343c3a42 |
line wrap: on
line diff
--- a/Modules/ObjectiveTracker.lua Tue Aug 23 06:35:08 2016 -0400 +++ b/Modules/ObjectiveTracker.lua Tue Aug 23 14:53:38 2016 -0400 @@ -12,23 +12,36 @@ local ResetObjectiveTrackerAnchor = function() print('|cFFFF4400ObjectiveTracker_Initialize|r') - otvn = vn.GetVeneer(ot.BlocksFrame) + otvn = vn.GetVeneer(ot) print(otvn:GetHeight()) - vn:print(ot:GetHeight(), ot:GetWidth()) for i = 1, #ot.MODULES do print(i, ot.MODULES[i]) 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 local UpdateVeneer = function() - if not ot.initialized then + if not ot.initialized or not otvn then return end - ot:ClearAllPoints() - ot:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', -5, -140) + + + 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() end local CreateVeneer = function()