/trunk
["isPanning"] = false, |
} |
local localeText = { |
["MOUNT"] = "Mounts", |
["CRITTER"] = "Pets", |
} |
self:RegisterEvent("ADDON_LOADED") |
self:SetScript("OnEvent", function(...) self:OnEvent(...) end) |
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) |
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() |
## Title: PetList+ |
## Author: Syzgyn |
## Notes: Improved Companion Frame |
## Version 0.4.wowi:revision |
## Version 0.4.1.wowi:revision |
## SavedVariables: PLPSV |
## SavedVariablesPerCharacter: PLPSVPC |