Wowpedia
Advertisement
Wowpedia
240,501
pages
This function is implemented by FrameXML in :Show FrameXML/StaticPopup.lua.

Shows a StaticPopup dialog.

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

Arguments

which 
string - Member of StaticPopupDialogs to show.
text_arg1, text_arg2 
string?Optional. Could be nil. - Formats StaticPopupDialogs[which].text using FontString:SetFormattedText.
data 
table?Optional. Could be nil. - Data shared with the dialog, if applicable.
insertedFrame 
Frame?Optional. Could be nil. - Subframe to display in the dialog window, if applicable.

Returns

success 
Frame?Optional. Could be nil. - The frame that has popped up, or nil if unsuccessful.

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

Advertisement