• 1 page(s)
How To Make an Add-on that hides the blizzard party frame.

I know about hideblizzard, i just dont like it because it messes up my action bars and gets really ugly.

All I really NEED is something that hides the blizzard party frame as I already have Xperl and Grid. I've searched the event that i should fire, but for some reason i can't get my addon to work.

the event SHOULD be "PARTY_MEMBERS_CHANGED", and i've tried everything, but i dont even get the "Addon loaded" message i programmed in. any help is appreciated

Report this thread post

Xperl should just have a default option to hide the default party frames, just look in the options there I guess. I use PitBull and for as far as I remember the default unitframes were disabled from the moment I installed it.

Report this thread post

i could never find one, which is a mood point anyway because i dont use the Xperl or pitbull party frames, i just use grid. unfortunately if you dont install the party frames, the default blizzard ones show up. i dont want them there. i had a macro setup, but it gets annoying everytime i want to close it to have to hit that button

 

Report this thread post

Look up the addon Party's Over, it hides default party frames.

Report this thread post

Type in this:

file partyhide.toc

 

## Interface: 30200
## Title: Party Hide
## Author: efindel
## Notes: Hides Blizzard's party unit frames
partyhide.lua

 

partyhide.lua

local i
for i = 1, 4 do
  local frame = getglobal("PartyMemberFrame"..i)
  frame:Hide()
  frame:SetScript("OnShow", frame.Hide)
end

Put those in a folder named "PartyHide" under your Addons folder. Congratulations! You have an addon that hides your party member unit frames and does nothing else.  No need to handle any events -- this just sets the frames to hide whenever they're shown.

 

Report this thread post

LUA:

local f = CreateFrame("FRAME")

    f:RegisterEvent("PLAYER_ENTERING_WORLD")

    f:SetScript("OnEvent", onEvent)

    f:Show()

 

local onEvent()

    if event == "PLAYER_ENTERING_WORLD" then

        PartyFrame:SetScript("OnUpdate", nil)

        PartyFrame:Hide()

    end

end

 

This will nuke the party frames as soon as you login/reload and keep it that way by niling out the OnUpdate scripts, thus preventing them from automatically showing again for whatever reason.


[edited by: ChaosInc at 11:28 AM (GMT -6) on 13 Sep 2009]
Ick, our code format is horrible...


 

Report this thread post
  • 1 page(s)
Subscribe to this thread: (you will receive emails when new posts are made)