WoW:API Region Show: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API Region Show to API Region Show without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod|toc=0}}
 
 
This function makes a frame visible.  
This function makes a frame visible.  


  object:Show()
  object:Show()


----
== Parameters ==
;''Arguments''
=== Arguments ===
 
:''none''
:''none''


----
=== Returns ===
;''Returns''
 
:''none''
:''none''


----
== Description ==
;''Description''
Makes a frame visible. Note that if a frame's parent is hidden, the frame displayed will not appear until its parent is shown as well.
 
: Makes a frame visible. Note that if a frame's parent is hidden, the frame displayed will not appear until its parent is shown as well.


----
== Notes ==
;''Performance note''
* '''Performance note''' - If a lot of frames are shown for the first time at once (like in action bar mods), then the interface may hang for a few seconds, I found no way to fix this.
: If a lot of frames are shown for the first time at once (like in action bar mods), then the interface may hang for a few seconds, I found no way to fix this.
* '''Protected function''' - I found that Frames of type Button can't call this method if the player is in combat. ¿Any one else seen the same behavior?
* If the frame is not visible, then the [[UIHANDLER_OnHide|OnHide]] event will be called before [[UIHANDLER_OnShow|OnShow]].

Latest revision as of 04:47, 15 August 2023

Widget API ← Region < Show

This function makes a frame visible.

object:Show()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

none

Description[edit]

Makes a frame visible. Note that if a frame's parent is hidden, the frame displayed will not appear until its parent is shown as well.

Notes[edit]

  • Performance note - If a lot of frames are shown for the first time at once (like in action bar mods), then the interface may hang for a few seconds, I found no way to fix this.
  • Protected function - I found that Frames of type Button can't call this method if the player is in combat. ¿Any one else seen the same behavior?
  • If the frame is not visible, then the OnHide event will be called before OnShow.