/
["MOUNT"] = 0, |
["CRITTER"] = 0, |
} |
self.currentModel = 0 |
self:RegisterEvent("ADDON_LOADED") |
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 |
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 |
self:UpdateButtons() |
end |
function self:OnButtonDrag() |
function self:OnButtonDrag(this) |
local button = this |
local mode = PetPaperDollFrameCompanionFrame.mode |