Mercurial > wow > buffalo2
diff Init.lua @ 44:756e8aeb040b
- Default.lua
- simplified the response to SuperTrackedQuestID changes
- tag icons work again
author | Nenue |
---|---|
date | Mon, 25 Apr 2016 19:37:13 -0400 |
parents | 1f8f9cc3d956 |
children |
line wrap: on
line diff
--- a/Init.lua Mon Apr 25 13:51:58 2016 -0400 +++ b/Init.lua Mon Apr 25 19:37:13 2016 -0400 @@ -410,20 +410,20 @@ end end - print(B.Conf.ConfigMode) + --print(B.Conf.ConfigMode) display.anchor:EnableMouse(B.Conf.ConfigMode) end for id, region in pairs(layers) do - print(id, region:GetName(), func) + --print(id, region:GetName(), func) region[func](region) end - print('['..func..'] updated', #layers, 'regions,', numAnchors, 'frames') + --print('['..func..'] updated', #layers, 'regions,', numAnchors, 'frames') end local XMLFrame_Enable = function(self, value) local name = self:GetName() - + local print = B.print('XML') if not B.Conf[name] then B.Conf[name] = { @@ -471,8 +471,9 @@ end end --- Generic handlers for keeping track of XML-defined frames - +local print = B.print('XML') local XMLFrame_OnDragStart = function(self) + local print = B.print('XML') self.xA = self:GetLeft() self.yA = self:GetBottom() self.anchorTo, self.relativeTo, self.relativePoint, self.x, self.y = self:GetPoint(1) @@ -482,6 +483,7 @@ end local XMLFrame_OnDragStop = function(self) + local print = B.print('XML') local name = self:GetName() print(name, 'stop moving ('..self:GetLeft()..', '..self:GetBottom()..')') local xB = self:GetLeft() - self.xA @@ -494,13 +496,15 @@ end B.RegisterModuleFrame = function(self, moduleName) + local print = B.print('XML') tinsert(checkForConfig, self) self.Enable = XMLFrame_Enable self.moduleName = moduleName - print('|cFF00FF00XML stuff related to '.. tostring(moduleName) .. ':', name) + print('|cFF00FF00XML stuff related to '.. tostring(moduleName) .. ':', self:GetName()) end B.UpdateXMLFrame = function(self) + local print = B.print('XML') local name = self:GetName() @@ -510,6 +514,7 @@ self:SetScript('OnDragStart', XMLFrame_OnDragStart) if self.OnDragStop then self:SetScript('OnDragStop', function(self, ...) + print('|cFFFF0088end of dragging') self:OnDragStop(self, ...) XMLFrame_OnDragStop(self, ...) end)