Mercurial > wow > buffalo2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 71:6f8661094643 | 72:d80db9a9b7e4 |
|---|---|
| 10 local otvn | 10 local otvn |
| 11 | 11 |
| 12 local ResetObjectiveTrackerAnchor = function() | 12 local ResetObjectiveTrackerAnchor = function() |
| 13 | 13 |
| 14 print('|cFFFF4400ObjectiveTracker_Initialize|r') | 14 print('|cFFFF4400ObjectiveTracker_Initialize|r') |
| 15 otvn = vn.GetVeneer(ot.BlocksFrame) | 15 otvn = vn.GetVeneer(ot) |
| 16 print(otvn:GetHeight()) | 16 print(otvn:GetHeight()) |
| 17 vn:print(ot:GetHeight(), ot:GetWidth()) | |
| 18 | 17 |
| 19 | 18 |
| 20 for i = 1, #ot.MODULES do | 19 for i = 1, #ot.MODULES do |
| 21 print(i, ot.MODULES[i]) | 20 print(i, ot.MODULES[i]) |
| 22 end | 21 end |
| 22 ot:ClearAllPoints() | |
| 23 ot:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', -5, -140) | |
| 24 print(ot:GetHeight(), ot:GetWidth()) | |
| 25 local width, height = ot:GetSize() | |
| 26 ot:SetSize(width, height) | |
| 27 | |
| 28 print(ot:GetHeight(), ot:GetWidth()) | |
| 29 --vn.GetVeneer(ot):SetAllPoints(ot) | |
| 23 end | 30 end |
| 24 | 31 |
| 25 local UpdateVeneer = function() | 32 local UpdateVeneer = function() |
| 26 if not ot.initialized then | 33 if not ot.initialized or not otvn then |
| 27 return | 34 return |
| 28 end | 35 end |
| 29 | 36 |
| 30 ot:ClearAllPoints() | 37 |
| 31 ot:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', -5, -140) | 38 |
| 39 print(ot:GetPoint(1),ot:GetPoint(2), ot:GetSize()) | |
| 40 print(ot:GetTop(), ot:GetLeft()) | |
| 41 print(ot:GetBottom(), ot:GetRight()) | |
| 42 print(otvn:GetTop(), otvn:GetLeft()) | |
| 43 print(otvn:GetBottom(), otvn:GetRight()) | |
| 44 otvn:Show() | |
| 32 end | 45 end |
| 33 | 46 |
| 34 local CreateVeneer = function() | 47 local CreateVeneer = function() |
| 35 ot = ObjectiveTrackerFrame | 48 ot = ObjectiveTrackerFrame |
| 36 hooksecurefunc('ObjectiveTracker_Initialize', ResetObjectiveTrackerAnchor) | 49 hooksecurefunc('ObjectiveTracker_Initialize', ResetObjectiveTrackerAnchor) |
