WoWInterface SVN PetListPlus

Compare Revisions

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

Rev 7 → Rev 6

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