Mercurial > wow > buffalo2
diff Veneer.lua @ 55:dd9b5f59632c v1.0a-release
Core
- updated comment notes
Objectives
- force hide blocks when their tracker is hidden
Clock
- convert clock into its own module
- display zone coordinates alongside time
author | Nenue |
---|---|
date | Fri, 10 Jun 2016 20:52:27 -0400 |
parents | ed74c5cabe98 |
children | f253baf6022d |
line wrap: on
line diff
--- a/Veneer.lua Wed Jun 01 20:48:14 2016 -0400 +++ b/Veneer.lua Fri Jun 10 20:52:27 2016 -0400 @@ -507,7 +507,7 @@ self:SetScript('OnDragStart', prototypes.OnDragStart) if self.OnDragStop then self:SetScript('OnDragStop', function(self, ...) - print('|cFFFF0088end of dragging') + print('|cFFFF0088end of dragging'). self:OnDragStop(self, ...) prototypes.OnDragStop(self, ...) end) @@ -518,6 +518,7 @@ self:EnableMouse(false) end + -- establish internal storage if not V.Conf[name] then V.Conf[name] = { enabled = self.enabled, @@ -525,13 +526,15 @@ end local c = V.Conf[name] + -- establish position data; if undefined, round the API values if not c.position then local anchor, _, point, x, y = self:GetPoint(1) - print('seeding default position', anchor, point, x, y) + x = floor(x+.5) + y = floor(y+.5) + print('obtained frame position', name, anchor, point, x, y) c.position = {anchor, point, x, y} else - - print('restoring frame position', unpack(c.position)) + print('restoring frame position', name, unpack(c.position)) self:ClearAllPoints() local anchorTo, relativePoint, x, y = unpack(c.position) self:SetPoint(anchorTo, UIParent, relativePoint, x, y)