PartyMemberFrameX:Hide() - hides a specified party member (X=1/2/3/4) HidePartyFrame() - hides all party members All these can be hidden at once by the function HidePartyFrame(), provided by the default party frame lua code. The windows that are shown for group members are PartyMemberFrameX, where X = 1.4. The Player window in the upper left that is always shown for yourself is PlayerFrame.
In the following there are listed some frames you might want to hide: Unit Frames Player Window You will have to go through the code for each frame to get the exact functions, and with some (like target or pet) do some checks before actually showing it, i.e. PlayerFrame:SetScript("OnEvent", PlayerFrame_OnEvent) When hidding the frame you can make the OnEvent function point to nil so no function gets called:Īnd then restore the original function when you want to show the frame again: Most Blizzard's frames (if not all) use a single function to handle all events, which makes it easier for us. To avoid this you need to prevent the frame from getting these events or from executing the code that makes the frame show. NOTE: Most frames have event handlers so even if you hide it, it can pop back up as a result of an event handler calling it's Show function. If you use this in a Macro (not in an Addon), you have to add a /script-tag before: To hide a frame, you have to enter the frame name, followed by the command :Hide()
Guidelines for Content Creators Weekly Threads Un-flaired posts will be removed by our AutoMod. See the detailed rules for details.įlair your posts correctly.
Reposts Intentional Misinformation Troll Posts Google-able questions Reaction gifs Polls etc.
Encouraging or condoning these behaviours is also not permitted. No Guild/Player drama/ĭo not share or encourage the use of exploits, cheats, existing private servers, or other illicit game behaviour. Names must be blurred if people are portrayed in a negative light. Don’t encourage others to harass individuals or organizations either within or beyond this community. Breaking this rule will result in an instant ban!! Do not attack or harass other users, engage in hate-speech, or attempt to gate-keep discussion. This is not a community for private servers, current World of Warcraft, streamer drama, etc.īe civil and respectful. Have a great idea for the sub? Let us know! RulesĬontent must relate to World of Warcraft: Classic. ChatĬlassic Census/Demographic Survey Survey Results This is a subreddit for the discussion of anything related to World of Warcraft: Classic.