ShowUIPanel()
Jump to navigation
Jump to search
- This function is implemented in
FrameXML/UIParent.lua
.
- This function is implemented in
Show a frame via Blizzard's "UI Panels" system.
ShowUIPanel(frame[, force]);
This function is protected, and cannot be called from insecure code while in in combat. |
Arguments
- frame
- Frame - The UIPanel-capable frame that you want to show.
- force
- boolean - If true, the call will allow non-"full"/non-"center" area frames to replace existing "full"/"center" frames (by forcibly closing those "blocking" frames); otherwise those would prevent all "ShowUIPanel" calls for "lesser" frames" until such high-priority frames are manually closed. This flag isn't necessary if you want to replace a "full" area frame with another "full" frame, or likewise with "center" frames. It's only necessary if you want to forcibly replace such high-priority frames with things like "left"/"doublewide"-area frames instead (which have lower priorities).
Patch changes
- Patch 8.2.0 (2019-06-25): Protected during combat, displaying an "action blocked" chat message but not throwing an error.[1]
See also
External links
- GitHub FrameXML, Gethe
- Globe "wut?" Tool, Townlong-Yak
References
- ^ 2019-06-25, UIParent.lua, version 8.2.0.30920, near line 3185, archived at Townlong-Yak
Categories:
- FrameXML functions
- API functions/Protected