WoWInterface SVN pStats

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

pStats/pStatsConfig.lua
34,7 → 34,7
):SetPoint('TOPLEFT', sub, 'BOTTOMLEFT', 0, -76)
end
 
function MiniMapTracking:PLAYER_ENTERING_WORLD(event)
local function OnEvent(self, event)
local db = pStatsDB or {colors = {0, 1, 1}, sorted = true}
 
LibStub('LibSimpleOptions-1.0').AddOptionsPanel('pStats', function(self) CreateOptions(self, db) end)
43,4 → 43,8
self:UnregisterEvent(event)
 
pStatsDB = db
end
\ No newline at end of file +end + +local addon = CreateFrame('Frame') +addon:RegisterEvent('PLAYER_ENTERING_WORLD') +addon:SetScript('OnEvent', OnEvent) \ No newline at end of file
pStats/pStats.lua
72,8 → 72,6
if(select(4, GetBuildInfo()) >= 3e4) then
MiniMapTrackingButton:EnableMouseWheel(true)
MiniMapTrackingButton:RegisterForClicks('AnyUp')
MiniMapTrackingButton:RegisterEvent('PLAYER_ENTERING_WORLD')
MiniMapTrackingButton:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end)
MiniMapTrackingButton:SetScript('OnMouseWheel', OnMouseWheel)
MiniMapTrackingButton:SetScript('OnClick', OnClick)
MiniMapTrackingButton:SetScript('OnEnter', OnEnter)
83,8 → 81,6
end)
else
MiniMapTracking:EnableMouseWheel(true)
MiniMapTracking:RegisterEvent('PLAYER_ENTERING_WORLD')
MiniMapTracking:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end)
MiniMapTracking:SetScript('OnMouseWheel', OnMouseWheel)
MiniMapTracking:SetScript('OnMouseUp', OnClick)
MiniMapTracking:SetScript('OnEnter', OnEnter)