WoWInterface SVN PetListPlus

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 6 to Rev 7
    Reverse comparison

Rev 6 → Rev 7

trunk/Main.lua
10,6 → 10,7
["MOUNT"] = 0,
["CRITTER"] = 0,
}
self.currentModel = 0
 
self:RegisterEvent("ADDON_LOADED")
 
136,7 → 137,10
self.buttons[count].name:SetText(creatureName)
if i == self.selected[mode] then
self.buttons[count]:SetChecked(1)
self.model:SetCreature(creatureID)
if creatureID ~= self.currentModel then --So the model wont update every scroll change, making it twitch
self.model:SetCreature(creatureID)
self.currentModel = creatureID
end
else
self.buttons[count]:SetChecked(0)
end
181,7 → 185,7
ChatEdit_InsertLink(spellLink);
end
elseif ( IsModifiedClick("PICKUPACTION") ) then
-- CompanionButton_OnDrag(self);
self:OnButtonDrag(button)
end
else
if (click == "RightButton") or (self.selected[mode] == i) then
198,7 → 202,7
self:UpdateButtons()
end
 
function self:OnButtonDrag()
function self:OnButtonDrag(this)
local button = this
local mode = PetPaperDollFrameCompanionFrame.mode