StaticPopup :Show()
Jump to navigation
Jump to search
- This function is implemented in
.:Show FrameXML/StaticPopup.lua
- This function is implemented in
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? - Formats
StaticPopupDialogs[which].text
using FontString:SetFormattedText. - data
- table? - Data shared with the dialog, if applicable.
- insertedFrame
- Frame? - Subframe to display in the dialog window, if applicable.
Returns
- success
- Frame? - 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