letmor.blogg.se

Elvui personal resource display
Elvui personal resource display












MinimapZoomOut:Hide() - hides the zoom-out-button (-) Zoom Buttons MinimapZoomIn:Hide() - hides the zoom-in-button (+) The little button at the topleft of the minimap that toggles the worldmap 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:

elvui personal resource display

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.

elvui personal resource display

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()

  • 5.4 Shapeshift (Stance/Form/Stealth) Bar.
  • I'm not sure if this NamePlatePlayerResourceFrame identifier is even still current, the threads I saw it in were fairly old. So, what's the proper way to attach a frame to the personal resource display so it moves with it and fades in and out with it? I tried to dig through weakauras' code to see how they did it, but I really couldn't make heads or tails of it. print(NamePlatePlayerResourceFrame) just spits out nil, so I it just falls back on UIParent. I got "NamePlatePlayerResourceFrame" from another thread, it doesn't seem to be anywhere in the either wowprogramming or the wiki's documentation. Code: local frame = CreateFrame("Frame", "HitComboPopups_Frame", NamePlatePlayerResourceFrame)įrame:SetPoint("CENTER", NamePlatePlayerResourceFrame, "CENTER", 0, -150)














    Elvui personal resource display