ShowPopup

From Dragon Age Toolset Wiki
Revision as of 23:39, 31 July 2009 by BryanDerksen (Talk | contribs) (merge update)

Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.

This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with errors}} tag once the page has been corrected.

Show a popup

void ShowPopup(
int nMessageStrRef,
int nPopupType,
object oOwner = OBJECT_INVALID,
int bShowInputField = FALSE,
int nDefaultInputStrRef = 0
);
Parameters:
nMessageStrRef
a string reference to the text of the message box.
nPopupType
a reference to the popup type, defined in popups.xls
oOwner
the owner of this popup
bShowInputField
a boolean which controls whether the pop-up will have a text-input field.
nDefaultInputStrRef
a string reference to the default text for the text-input. If 0, the input field will start empty.
Returns:

Nothing.

Source:

script.ldf


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).