Quantcast
Removing party frames help! - WoWInterface
Thread Tools Display Modes
06-10-10, 01:45 AM   #1
Toomuchsugar
A Kobold Labourer
Join Date: Jun 2010
Posts: 1
Question Removing party frames help!

alright I'm vary new to Lua and add-on coding, Trying to create an add-on that removes my party frames on log in.

Code:
function MyAddon_OnLoad()

	HidePartyFrame:SetScript("OnEvent", nil);
	HidePartyFrame();
end
now either something wrong with it, or I'm missing a vital step in the add-on creating process, any help?

Last edited by Toomuchsugar : 06-10-10 at 01:49 AM.
  Reply With Quote
06-10-10, 02:12 AM   #2
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Code:
	for i = 1, 4 do
		local frame = _G["PartyMemberFrame"..i]
		frame:UnregisterAllEvents()
		frame:Hide()
		frame.Show = function() end

		_G["PartyMemberFrame"..i.."HealthBar"]:UnregisterAllEvents()
		_G["PartyMemberFrame"..i.."ManaBar"]:UnregisterAllEvents()
	end
is the most common way to be rid of default blizzard frames..

tip: if u want to begin learning wowlua u should:
1) Learn from others.
2) wowprogramming.com
3) wowwiki.com

---
u said very new, so im just asking out of reactive thinking - but .toc files etc.. are all in order right?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Removing party frames help!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off