Go to Page... |
Compatibility: | Classic (1.13.2) |
Updated: | 08-30-19 11:02 PM |
Created: | 12-17-08 03:01 PM |
Downloads: | 10,626 |
Favorites: | 24 |
MD5: | |
Categories: | Action Bar Mods, Classic - General, Hunter, Mage, Warlock, Mounts & Pets |
Description:
For WoW Classic
A simple addon that lets you hide the original Blizzard pet bar with an adjustable and movable pet bar. You can have the pet bar run horizontally or vertically and is movable over the entire playing screen.
Please use the issue tracker for problem reports.
* The individual item frames are locked/unlocked with the Blizzard action bar lock in the Interface > ActionBars > Lock ActionBars.
Slash Commands:
/mpb ------ help menu
/mpb on / off ------ enables or disables the addon
/mpb horz / vert --- aligns bar horizontally or vertically
/mpb lock / unlock -- locks or unlocks petbar movement
/mpb show / hide --- shows or hides the petbar
Installation:
Place this file into your World of Warcraft > Interface > Addons folder.
Comment Options |
Squiddy0 |
View Public Profile |
Send a private message to Squiddy0 |
Find More Posts by Squiddy0 |
Add Squiddy0 to Your Buddy List |
Nightness |
View Public Profile |
Send a private message to Nightness |
Find More Posts by Nightness |
Add Nightness to Your Buddy List |
rubyslipprz |
View Public Profile |
Send a private message to rubyslipprz |
Find More Posts by rubyslipprz |
Add rubyslipprz to Your Buddy List |
kernighan |
View Public Profile |
Send a private message to kernighan |
Find More Posts by kernighan |
Add kernighan to Your Buddy List |
11-08-10, 05:52 PM | ||
|
Re: Re: Patch killed it! :(
|
|
|
kernighan |
View Public Profile |
Send a private message to kernighan |
Find More Posts by kernighan |
Add kernighan to Your Buddy List |
11-09-10, 08:11 PM | ||
|
Re: Re: Re: Patch killed it! :(
|
|
|
kernighan |
View Public Profile |
Send a private message to kernighan |
Find More Posts by kernighan |
Add kernighan to Your Buddy List |
11-11-10, 05:57 PM | |
An Aku'mai Servant
Forum posts: 32
File comments: 1
Uploads: 0
|
Is there a scaleing feature?
I used to use action pet bar b/c it enabled me to make the pet bar bigger as well as movable. I like bigger buttons.
|
|
mbernarr |
View Public Profile |
Send a private message to mbernarr |
Find More Posts by mbernarr |
Add mbernarr to Your Buddy List |
11-15-10, 03:39 PM | ||
|
Re: Is there a scaleing feature?
I'll see what I can do. --Kernighan |
|
|
kernighan |
View Public Profile |
Send a private message to kernighan |
Find More Posts by kernighan |
Add kernighan to Your Buddy List |
08-31-12, 06:59 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
Re: Re: Is there a scaleing feature?
Last edited by Scendera : 08-31-12 at 07:00 AM.
|
|
|
Scendera |
View Public Profile |
Send a private message to Scendera |
Find More Posts by Scendera |
Add Scendera to Your Buddy List |
05-10-13, 02:06 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
I change your addon
I change your addon for StanceBar
I copy functions with Stance and change common functions thank you for this addon, semistancepetbar was broken and I missed it Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> <Script file="MovablePetBar.lua"/> <Frame name="MovablePetBarFrame"> <Scripts> <OnLoad> MovablePetBar_OnLoad(self); </OnLoad> <OnEvent> MovablePetBar_OnEvent(self, event, ...); </OnEvent> </Scripts> </Frame> <Button name="MPBDragButtonTemplate" virtual="true" movable="true" frameStrata="DIALOG" toplevel="true"> <Scripts> <OnMouseDown> self:StartMoving(); </OnMouseDown> <OnMouseUp> self:StopMovingOrSizing(); </OnMouseUp> </Scripts> <Size> <AbsDimension x="15" y="15"/> </Size> <NormalTexture file="Interface\AddOns\MovablePetBar\DragButton"/> </Button> <Button name="MPBPetBarDragButton" inherits="MPBDragButtonTemplate" parent="PetActionBarFrame"> <Anchors> <Anchor point="BOTTOM" relativeTo="UIParent"> <Offset> <AbsDimension x="-180" y="294"/> </Offset> </Anchor> </Anchors> <Frames> <Frame name="MPBPetBar" frameStrata="BACKGROUND" parent="PetActionBarFrame"> <Size> <AbsDimension x="330" y="33"/> </Size> <Scripts> <OnLoad> MPB_LinkFrameToDragButton(); MPB_ConstructPetBar(); </OnLoad> </Scripts> </Frame> </Frames> </Button> <!-- --> <Button name="MPBDragButtonTemplate2" virtual="true" movable="true" frameStrata="DIALOG" toplevel="true"> <Scripts> <OnMouseDown> self:StartMoving(); </OnMouseDown> <OnMouseUp> self:StopMovingOrSizing(); </OnMouseUp> </Scripts> <Size> <AbsDimension x="15" y="15"/> </Size> <NormalTexture file="Interface\AddOns\MovablePetBar\DragButton"/> </Button> <Button name="MPBStanceBarDragButton" inherits="MPBDragButtonTemplate2" parent="StanceBarFrame"> <Anchors> <Anchor point="BOTTOM" relativeTo="UIParent"> <Offset> <AbsDimension x="-180" y="294"/> </Offset> </Anchor> </Anchors> <Frames> <Frame name="MPBStanceBar" frameStrata="BACKGROUND" parent="StanceBarFrame"> <Size> <AbsDimension x="330" y="33"/> </Size> <Scripts> <OnLoad> MPB_LinkFrameToDragButton2(); MPB_ConstructStanceBar(); </OnLoad> </Scripts> </Frame> </Frames> </Button> </Ui> Code:
----------------------------------------------------------------------------------------------------------------- -- Constants ----------------------------------------------------------------------------------------------------------------- local Temped_PetAktionBarFrame_Update local Temped_StanceBarFrame_Update MPB_PetBar = true; MPB_Locked = true; Axis_Hor = true; MPB_Locked = false; MPB_IsOn = true; -- Changes the PetActionBarFrame parent to UIParent function ReleasePetBar() if (PetActionBarFrame:GetParent() ~= UIParent) then PetActionBarFrame:SetParent(UIParent); PetActionBarFrame:Show(); end end -- Changes the StanceBarFrame parent to UIParent function ReleaseStanceBar() if (StanceBarFrame:GetParent() ~= UIParent) then StanceBarFrame:SetParent(UIParent); StanceBarFrame:Show(); end end ----------------------------------------------------------------------------------------------------------------- -- On_Load ----------------------------------------------------------------------------------------------------------------- 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 MovablePetBar_INI(); MovableStanceBar_INI(); SlashCmdList["MOVABLEPETBARCOMMAND"] = CustomHideBar_SlashHandler; SLASH_MOVABLEPETBARCOMMAND1 = "/mpb"; self:RegisterEvent("VARIABLES_LOADED"); end ----------------------------------------------------------------------------------------------------------------- -- On_Event ----------------------------------------------------------------------------------------------------------------- function MovablePetBar_OnEvent(self, event, ...) ReleasePetBar(); ReleaseStanceBar(); if (event == "VARIABLES_LOADED") then if (MPB_PetBar == false) then MPB_HideBar("MPBPetBar"); MPB_HideBar("MPBStanceBar"); end if (MPB_Locked == true) then MPB_LockBars(); end if (Axis_Hor == false) then MPB_ConstructPetBar_Vert(); MPB_ConstructStanceBar_Vert(); end if (MPB_IsOn == false) then MPB_Off(); end end end function MovablePetBar_INI() Temped_PetActionBarFrame_Update = PetActionBarFrame_Update MPB_HidePetArt(); end function MovableStanceBar_INI() Temped_StanceBarFrame_Update = StanceBarFrame_Update MPB_HideStanceArt(); end function MPB_HidePetArt() PetActionBarFrame:EnableMouse("false") SlidingActionBarTexture0:SetAlpha(0) SlidingActionBarTexture1:SetAlpha(0) end function MPB_HideStanceArt() StanceBarFrame:EnableMouse("false") SlidingActionBarTexture0:SetAlpha(0) SlidingActionBarTexture1:SetAlpha(0) end function MPB_On() MPB_HidePetArt(); MPB_ConstructPetBar(); MPB_ShowBar("MPBPetBar"); MPB_HideStanceArt(); MPB_ConstructStanceBar(); MPB_ShowBar2("MPBStanceBar"); end function MPB_Off() SlidingActionBarTexture0:SetAlpha(1) SlidingActionBarTexture1:SetAlpha(1) PetActionBarFrame:EnableMouse("true") for i=1, 12 do pet_button = getglobal("PetActionButton"..i); if (pet_button ~= nil) then pet_button:ClearAllPoints(); x_coord = 65 + ((i - 1) * 38); y_coord = 0; pet_button:SetPoint("BottomRIGHT", PetActionBarFrame, "BottomLEFT", x_coord, y_coord); end end MPBPetBarDragButton:Hide(); StanceBarFrame:EnableMouse("true") for i=1, 12 do stance_button = getglobal("StanceButton"..i); if (stance_button ~= nil) then stance_button:ClearAllPoints(); x_coord = 65 + ((i - 1) * 38); y_coord = 0; stance_button:SetPoint("BottomRIGHT", StanceBarFrame, "BottomLEFT", x_coord, y_coord); end end MPBStanceBarDragButton:Hide(); end function MPB_ConstructPetBar() for i=1, 12 do pet_button = getglobal("PetActionButton"..i); if (pet_button ~= nil) then pet_button:ClearAllPoints(); x_coord = 2 + ((i - 1) * 33); y_coord = -1; pet_button:SetPoint("BOTTOMLEFT", MPBPetBar, "TOPLEFT", x_coord, y_coord); end end end function MPB_ConstructStanceBar() for i=1, 12 do stance_button = getglobal("StanceButton"..i); if (stance_button ~= nil) then stance_button:ClearAllPoints(); x_coord = 2 + ((i - 1) * 33); y_coord = -1; stance_button:SetPoint("BOTTOMLEFT", MPBStanceBar, "TOPLEFT", x_coord, y_coord); end end end function MPB_ConstructPetBar_Vert() for i=1, 12 do pet_button = getglobal("PetActionButton"..i); if (pet_button ~= nil) then pet_button:ClearAllPoints(); x_coord = -1; y_coord = -(2 + ((i - 1) * 33)); pet_button:SetPoint("TOPRIGHT", MPBPetBar, "TOPLEFT", x_coord, y_coord); end end end function MPB_ConstructStanceBar_Vert() for i=1, 12 do stance_button = getglobal("StanceButton"..i); if (stance_button ~= nil) then stance_button:ClearAllPoints(); x_coord = -1; y_coord = -(2 + ((i - 1) * 33)); stance_button:SetPoint("TOPRIGHT", MPBStanceBar, "TOPLEFT", x_coord, y_coord); end end end function MPB_LinkFrameToDragButton() MPBPetBar:ClearAllPoints(); MPBPetBar:SetPoint("TOPLEFT", MPBPetBarDragButton, "TOPLEFT"); end function MPB_LinkFrameToDragButton2() MPBStanceBar:ClearAllPoints(); MPBStanceBar:SetPoint("TOPLEFT", MPBStanceBarDragButton, "TOPLEFT"); end function MPB_ChatMessage(message) if( DEFAULT_CHAT_FRAME ) then DEFAULT_CHAT_FRAME:AddMessage(message); end end ----------------------------------------------------------------------------------------------------------------- -- Slash Commands ----------------------------------------------------------------------------------------------------------------- function CustomHideBar_SlashHandler(msg) if (msg == "hide") then MPB_HideBar("MPBPetBar"); MPB_HideBar("MPBStanceBar"); MPB_PetBar = false; elseif (msg == "show") then MPB_ShowBar("MPBPetBar"); MPB_ShowBar2("MPBStanceBar"); MPB_PetBar = true; elseif (msg == "lock") then MPB_LockBars(); MPB_Locked = true; elseif (msg == "unlock") then MPB_UnLockBars(); MPB_Locked = false; elseif (msg == "on") then MPB_On(); MPB_IsOn = true; elseif (msg == "off") then MPB_Off(); MPB_IsOn = false; elseif (msg == "vert") then MPB_ConstructPetBar_Vert(); MPB_ConstructStanceBar_Vert(); Axis_Hor = false; elseif (msg == "horz") then MPB_ConstructPetBar(); MPB_ConstructStanceBar(); Axis_Hor = true; else mpb_PrintHelp(); end end function MPB_HideBar(MPBPetBar) getglobal(MPBPetBar):ClearAllPoints(); getglobal(MPBPetBar):SetPoint("LEFT", "PetActionBarFrame", "Top", 0, -150); MPBPetBarDragButton:Hide(); end function MPB_HideBar(MPBStanceBar) getglobal(MPBStanceBar):ClearAllPoints(); getglobal(MPBStanceBar):SetPoint("LEFT", "StanceBarFrame", "Top", 0, -150); MPBStanceBarDragButton:Hide(); end function MPB_ShowBar(bar) MPB_LinkFrameToDragButton(bar.."DragButton", bar, "RIGHT"); if (MPB_Locked == true) then MPB_LockBars(); else MPB_UnLockBars(); end end function MPB_ShowBar2(bar) MPB_LinkFrameToDragButton(bar.."DragButton", bar, "RIGHT"); if (MPB_Locked == true) then MPB_LockBars(); else MPB_UnLockBars(); end end function MPB_LockBars() MPBPetBarDragButton:Hide(); MPBStanceBarDragButton:Hide(); MPB_Locked = true; end function MPB_UnLockBars() MPBPetBarDragButton:Show(); MPBStanceBarDragButton:Show(); MPB_Locked = false; end ----------------------------------------------------------------------------------------------------------------- -- Help Menu ----------------------------------------------------------------------------------------------------------------- function mpb_PrintHelp() MPB_ChatMessage(" /mpb |cff00ff00on|r / |cffff0000off|r -------- enables or disables this addon."); MPB_ChatMessage(" /mpb |cffffd700horz|r / |cff00BFFFvert|r ---- aligns petbar horizontally or vertically."); MPB_ChatMessage(" /mpb |cff00BFFFshow|r / |cffffd700hide|r -- shows or hides the petbar."); MPB_ChatMessage(" /mpb |cffff0000lock|r / |cff00ff00unlock|r - locks or unlocks petbar"); MPB_ChatMessage(" ***|cffFFD700Individual frames are locked/unlocked with the interface actionbar lock.|r***") end |
|
wowinterfacemich |
View Public Profile |
Send a private message to wowinterfacemich |
Find More Posts by wowinterfacemich |
Add wowinterfacemich to Your Buddy List |