Quantcast
WoWInterface: SVN - MovablePetBar - Path Comparison - / Rev 14 and / Rev 15

WoWInterface SVN MovablePetBar

Compare Revisions

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

Rev 14 → Rev 15

trunk/MovablePetBar/MovablePetBar.xml
50,11 → 50,11
<AbsDimension x="330" y="33"/>
</Size>
<Scripts>
<OnLoad>
MPB_LinkFrameToDragButton();
<OnLoad>
MPB_LinkFrameToDragButton();
MPB_ConstructPetBar();
</OnLoad>
</Scripts>
</OnLoad>
</Scripts>
</Frame>
</Frames>
</Button>
trunk/MovablePetBar/MovablePetBar.lua
23,14 → 23,17
 
function MovablePetBar_OnLoad(self)
if( DEFAULT_CHAT_FRAME ) then
DEFAULT_CHAT_FRAME:AddMessage("|cff00bfffMovable Pet Bar|r |cff00ff00- loaded.|r |cff00bfffType|r '|cffffd700/mpb|r' |cff00bffffor help menu.|r");
end
DEFAULT_CHAT_FRAME:AddMessage("|cff00bfffMovable Pet Bar|r |cff00ff00- loaded.|r |cff00bfffType|r '|cffffd700/mpb|r' |cff00bffffor help menu.|r");
end
MovablePetBar_INI();
 
SlashCmdList["MOVABLEPETBARCOMMAND"] = CustomHideBar_SlashHandler;
SLASH_MOVABLEPETBARCOMMAND1 = "/mpb";
 
self:RegisterEvent("VARIABLES_LOADED");
self:RegisterEvent("VARIABLES_LOADED");
self:RegisterEvent("PET_BATTLE_OPENING_START");
self:RegisterEvent("PET_BATTLE_OPENING_DONE");
self:RegisterEvent("PET_BATTLE_CLOSE");
 
end
 
52,7 → 55,17
end
if (MPB_IsOn == false) then
MPB_Off();
end
end
end
if (event == "PET_BATTLE_OPENING_START" or event == "PET_BATTLE_OPENING_DONE") then
if (MPB_PetBar == true and MPB_IsOn == true) then
MPB_HideBar("MPBPetBar");
end
end
if (event == "PET_BATTLE_CLOSE") then
if (MPB_PetBar == true and MPB_IsOn == true) then
MPB_ShowBar("MPBPetBar");
end
end
end
 
172,15 → 185,14
 
 
function MPB_HideBar(MPBPetBar)
 
getglobal(MPBPetBar):ClearAllPoints();
getglobal(MPBPetBar):SetPoint("LEFT", "PetActionBarFrame", "Top", 0, -150);
MPBPetBarDragButton:Hide();
 
MPBPetBarDragButton:Hide();
PetActionBarFrame:Hide();
end
 
function MPB_ShowBar(bar)
 
PetActionBarFrame:Show();
MPB_LinkFrameToDragButton(bar.."DragButton", bar, "RIGHT");
if (MPB_Locked == true) then
MPB_LockBars();
trunk/MovablePetBar/MovablePetBar.toc
1,9 → 1,9
## Title: Movable Pet Bar|cff00aa00 v5.3.0.0|r
## Version: 5.3.0.0
## Interface: 50300
## Title: Movable Pet Bar|cff00aa00 v5.4.0.0|r
## Version: 5.4.0.0
## Interface: 50400
## Author: Kernighan
## Author: Holycowchips
## Notes: A simple movable and adjustable pet bar replacement.
## SavedVariablesPerCharacter: MPB_PetBar, MPB_Locked, Axis_Hor, MPB_IsOn
## X-Date: 2013-08-05
## X-Date: 2013-09-11
MovablePetBar.xml