ShowUIPanel()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in FrameXML/UIParent.lua.

Show a frame via Blizzard's "UI Panels" system.

ShowUIPanel(frame[, force]);

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

  • Battle for Azeroth 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

References

 
  1. ^ 2019-06-25, UIParent.lua, version 8.2.0.30920, near line 3185, archived at Townlong-Yak