API StaticPopup_Show

From Wowpedia
Jump to: navigation, search

Shows a StaticPopup dialog.

StaticPopup_Show(which, [text_arg1, [text_arg2, [data, [insertedFrame]]]])

Arguments

which 
String - name of the StaticPopup dialog to show.
text_arg1 
String - used for the text formatted by the string from StaticPopupDialogs[which].text
text_arg2 
String - can be used as a second part argument of the formatted text.
data 
table - data shared with the dialog.
insertedFrame 
frame - subframe to display in the dialog window.

Details

The data argument is used to display item info (data.useLinkForItemInfo must be set in this case) or to set up OnCancel options

See Also