View Single Post
07-20-12, 09:26 AM   #106
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Interesting, comparing builds 15851 and 15882 there are quite a lot of changes.

specID = GetArenaOpponentSpec(arenaId) -- arenaId = 1..4

Hyperlinks now handle battlepet (and are yellow for default pets, but pets with a quality then the color is that quality, i.e. rare is blue), the link looks like
Code:
battlepet:speciesID:level:breedQuality:maxHealth:power:speed
and are shown by triggering
Code:
FloatingBattlePet_Show(tonumber(speciesID), tonumber(level), tonumber(breedQuality), tonumber(maxHealth), tonumber(power), tonumber(speed), string.gsub(string.gsub(text, "^(.*)%[", ""), "%](.*)$", ""))
Notice the variable "text" is the whole string, seems they use the name inside the [] tags and pass it onto the function.

There is a ton of small tweaks and pet battle fixes. I've added a report with changes only (left is newest build, right is just for file size comparison I guess):
Code:
Left base: 5.0.1.15852
Right base: 5.0.1.15851

Name                          Size         Name                          Size
----------------------------------------------------------------------------------
AddOns                        2*817*820    AddOns                        2*811*283
+Blizzard_ArenaUI             33*063       +Blizzard_ArenaUI             32*813
|\Blizzard_ArenaUI.lua        15*591    >> |\Blizzard_ArenaUI.lua        15*341
+Blizzard_BlackMarketUI       41*712       +Blizzard_BlackMarketUI       41*667
|\Blizzard_BlackMarketUI.lua  8*148     >> |\Blizzard_BlackMarketUI.lua  8*103
+Blizzard_CombatText          26*796       +Blizzard_CombatText          26*749
|\Blizzard_CombatText.lua     24*223    >> |\Blizzard_CombatText.lua     24*176
+Blizzard_GlyphUI             33*392       +Blizzard_GlyphUI             33*216
|\Blizzard_GlyphUI.lua        15*754    >> |\Blizzard_GlyphUI.lua        15*578
+Blizzard_InspectUI           65*863       +Blizzard_InspectUI           66*898
|\InspectPVPFrame.xml         5*823     >> |\InspectPVPFrame.xml         6*858
+Blizzard_ItemUpgradeUI       22*074       +Blizzard_ItemUpgradeUI       22*049
|\Blizzard_ItemUpgradeUI.lua  8*770     >> |\Blizzard_ItemUpgradeUI.lua  8*745
+Blizzard_PetBattleUI         130*885      +Blizzard_PetBattleUI         127*309
|\Blizzard_PetBattleUI.lua    58*891    >> |\Blizzard_PetBattleUI.lua    55*315
+Blizzard_PetJournal          145*363      +Blizzard_PetJournal          141*978
|+Blizzard_PetJournal.lua     58*022    >> |+Blizzard_PetJournal.lua     53*798
|\Blizzard_PetJournal.xml     87*079    >> |\Blizzard_PetJournal.xml     87*918
\Blizzard_TalentUI            92*982       \Blizzard_TalentUI            92*914
 \Blizzard_TalentUI.lua       53*321    >>  \Blizzard_TalentUI.lua       53*253
FrameXML                      6*223*532    FrameXML                      6*216*586
+ActionBarController.lua      5*646     >> +ActionBarController.lua      5*568
+ActionButton.lua             21*848    >> +ActionButton.lua             21*764
+Bindings.xml                 35*302    >> +Bindings.xml                 38*192
+ChatFrame.lua                148*321   >> +ChatFrame.lua                148*136
+Constants.lua                20*202    >> +Constants.lua                19*953
+FloatingPetBattleTooltip.lua 4*201     >> +FloatingPetBattleTooltip.lua 1*736
+FloatingPetBattleTooltip.xml 6*230     >> +FloatingPetBattleTooltip.xml 1*104
+FrameLocks.lua               4*222     >> +FrameLocks.lua               4*166
+GlobalStrings.lua            690*646   >> +GlobalStrings.lua            688*899
+InterfaceOptionsFrame.lua    25*108    >> +InterfaceOptionsFrame.lua    25*038
+ItemRef.lua                  10*737    >> +ItemRef.lua                  10*406
+LevelUpDisplay.lua           31*427    >> +LevelUpDisplay.lua           31*261
+LevelUpDisplay.xml           21*819    >> +LevelUpDisplay.xml           21*793
+LootHistory.lua              16*231    >> +LootHistory.lua              16*179
+MacOptionsFrame.lua          15*832    >> +MacOptionsFrame.lua          15*637
+MacOptionsFrame.xml          29*565    >> +MacOptionsFrame.xml          29*221
+MonkHarmonyBar.lua           2*629     >> +MonkHarmonyBar.lua           2*611
+PVPFrame.lua                 68*779    >> +PVPFrame.lua                 68*650
+PVPFrame.xml                 56*495    >> +PVPFrame.xml                 63*409
+SharedPetBattleTemplates.lua 19*540    >> +SharedPetBattleTemplates.lua 14*385
+SpellBookFrame.lua           51*198    >> +SpellBookFrame.lua           51*142
+StaticPopup.lua              100*405   >> +StaticPopup.lua              100*354
+WatchFrame.lua               70*768    >> +WatchFrame.lua               70*601
\WatchFrame.xml               23*464    >> \WatchFrame.xml               23*464
GlueXML                       938*476      GlueXML                       932*623
+CharacterCreate.lua          46*712    >> +CharacterCreate.lua          42*443
+CharacterCreate.xml          76*068    >> +CharacterCreate.xml          74*510
\GlueStrings.lua              93*165    >> \GlueStrings.lua              93*139
----------------------------------------------------------------------------------

Last edited by Vlad : 07-20-12 at 12:07 PM.