WoWInterface SVN PetListPlus

Compare Revisions

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

Rev 14 → Rev 13

trunk/PetListPlus.toc
2,7 → 2,7
## Title: PetList+
## Author: Syzgyn
## Notes: Improved Companion Frame
## Version 0.4.1.wowi:revision
## Version 0.4.wowi:revision
## SavedVariables: PLPSV
## SavedVariablesPerCharacter: PLPSVPC
 
trunk/Main.lua
19,11 → 19,6
["isPanning"] = false,
}
 
local localeText = {
["MOUNT"] = "Mounts",
["CRITTER"] = "Pets",
}
 
self:RegisterEvent("ADDON_LOADED")
 
self:SetScript("OnEvent", function(...) self:OnEvent(...) end)
65,13 → 60,6
self.close:SetPoint("CENTER", self, "TOPLEFT", 305, -422)
self.close:SetScript("OnClick", function() HideUIPanel(CharacterFrame) end)
 
--Companion count text
self.countText = self:CreateFontString("$parentCountText", "ARTWORK", "GameFontNormal")
self.countText:SetTextColor(1,1,1)
self.countText:SetJustifyH("RIGHT")
self.countText:SetPoint("TOPRIGHT", self.close, "TOPLEFT", -5, -2)
self.countText:SetText("54 Pets")
 
self.model = CreateFrame("DressUpModel", "$parentModel", self)
self.model:SetWidth(315)
self.model:SetHeight(110)
217,8 → 205,6
for i = count, #self.buttons do
self.buttons[i]:Hide()
end
 
self.countText:SetText(string.format("%d %s", numComp, localeText[mode]))
end
 
function self:OnButtonClick()