Difference between revisions of "ShowPopup"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(imported from extranet)
 
m (category)
Line 10: Line 10:
  
 
Text is filtered as it’s typed using the same filter that’s applied to the player’s name; thus, you cannot enter spaces nor many forms of punctuation. The text-field is currently limited to 20 characters (same as the player name).
 
Text is filtered as it’s typed using the same filter that’s applied to the player’s name; thus, you cannot enter spaces nor many forms of punctuation. The text-field is currently limited to 20 characters (same as the player name).
 +
 +
[[Category:Scripts]]

Revision as of 13:01, 2 July 2009

void ShowPopup (int nMessageStrRef, int nPopupType, object oOwner = OBJECT_INVALID, int bShowInputField = FALSE, int nDefaultInputStrRef = 0)

  • nMessageStrRef is a string reference to the text of the message box.
  • nPopupType is a reference to the popup type, defined in popups.xls
  • oOwner is the owner of this popup
  • bShowInputField is a boolean which controls whether the pop-up will have a text-input field.
  • nDefaultInputStrRef is a string reference to the default text for the text-input. If 0, the input field will start empty.

When a button is pressed and the pop-up is closed, the contents of the text-entry field will be returned as the 0th string argument to the EVENT_TYPE_POPUP_RESULT event to the MODULE.

Text is filtered as it’s typed using the same filter that’s applied to the player’s name; thus, you cannot enter spaces nor many forms of punctuation. The text-field is currently limited to 20 characters (same as the player name).