WoWInterface SVN pRogue

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 10 to Rev 11
    Reverse comparison

Rev 10 → Rev 11

pRogue/pRogue.lua
2,7 → 2,7
local addon = CreateFrame('Button', 'pRogue', TradeFrame, 'SecureActionButtonTemplate, UIPanelButtonTemplate')
 
local function GetChannel()
local channel = GetNumRaidMembers() > 0 and 'RAID' or GetNumPartyMembers() > 0 and 'PARTY' or 'SAY'
local channel = GetNumRaidMembers() > 0 and 'RAID' or GetNumPartyMembers() > 0 and 'PARTY'
return channel
end
 
15,7 → 15,7
return false
end
 
function addon.PLAYER_LOGIN(self)
function addon:PLAYER_LOGIN()
self:SetHeight(22)
self:SetWidth(85)
self:RegisterForClicks('AnyUp')
23,10 → 23,12
self:SetAttribute('spell', 'Pick Lock')
self:SetPoint('RIGHT', TradeFrameTradeButton, 'LEFT', -2, 1)
self:SetText('Unlock')
 
self:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED')
end
 
function addon.COMBAT_LOG_EVENT_UNFILTERED(self, stamp, event, sGUID, sName, sFlags, dGUID, dName, dFlags, spellId)
if(not InBattleGround()) then
function addon:COMBAT_LOG_EVENT_UNFILTERED(stamp, event, sGUID, sName, sFlags, dGUID, dName, dFlags, spellId)
if(not InBattleGround() and (GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0)) then
if(event == 'SPELL_CAST_SUCCESS') then
if(sGUID == UnitGUID('player')) then
if(spellId == 11297) then
40,5 → 42,4
end
 
addon:SetScript('OnEvent', function(self, event, ...) self[event](self, ...) end)
addon:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED')
addon:RegisterEvent('PLAYER_LOGIN')
\ No newline at end of file