|
static MessageNodeDialog | Spawn (string headerText, string nodeText, string instructorPrefabName, string continueBtnText, Callback continueCallback=null, int textAreaSize=135, ActionDialogMessage.DialogMessageArea msgArea=ActionDialogMessage.DialogMessageArea.Center, bool autoClose=false, int autoCloseTimeout=20, bool autoGrowDialogHeight=false, string instructorName="") |
| Spawn a MessageNodeDialog More...
|
|
static MessageNodeDialog Expansions.Missions.Runtime.MessageNodeDialog.Spawn |
( |
string |
headerText, |
|
|
string |
nodeText, |
|
|
string |
instructorPrefabName, |
|
|
string |
continueBtnText, |
|
|
Callback |
continueCallback = null , |
|
|
int |
textAreaSize = 135 , |
|
|
ActionDialogMessage.DialogMessageArea |
msgArea = ActionDialogMessage.DialogMessageArea.Center , |
|
|
bool |
autoClose = false , |
|
|
int |
autoCloseTimeout = 20 , |
|
|
bool |
autoGrowDialogHeight = false , |
|
|
string |
instructorName = "" |
|
) |
| |
|
inlinestatic |
Spawn a MessageNodeDialog
- Parameters
-
headerText | The text that appears at the top of the dialog |
nodeText | The text that appears in the scroll box view of the dialog (the message for the player) |
instructorPrefabName | The Instructor prefab name to show in the left side of the dialog |
continueBtnText | The text to appear on the button at the bottom of the dialog |
continueCallback | A callback when the button on the dialog is pressed |
msgArea | The area the dialog is to be displayed on screen |
autoClose | Set to true to automatically close the dialog after the autoclose time period |
autoCloseTimeout | The time in seconds before automatically closing the dialog, if autoClose is true |
autoGrowDialogHeight | If set to true will set the dialog height to the preferred size for the nodeText, but won't exceed the screen height. |
instructorName | The name of the Instructor - If blank will use the name set in the prefab that is passed in. If set to not empty/null will override the name set in the prefab. |
- Returns
- The Spawned MessageNodeDialog object
bool Expansions.Missions.Runtime.MessageNodeDialog.modal = false |
The documentation for this class was generated from the following file: