wiki.sine.space | sinespace

Difference between revisions of "Scripting/SDialogues"

From wiki.sine.space
Jump to: navigation, search
(Created page with "The SDialogue class allows you to initial dialogue messages to the player to confirm various actions. ==Members== {{ScriptFunction|void|YesNoInput|(string title, string okbut...")
 
Line 4: Line 4:
 
{{ScriptFunction|void|YesNoInput|(string title, string okbutton, string cancelButton, Action<bool> result);|Shows a yes/no dialogue box to the user, and returns the result via the result callback}}
 
{{ScriptFunction|void|YesNoInput|(string title, string okbutton, string cancelButton, Action<bool> result);|Shows a yes/no dialogue box to the user, and returns the result via the result callback}}
 
{{ScriptFunction|void|TextInput|(string title, string okbutton, Action<string> result);|Shows a text input dialogue box to the user, and returns the result via the result callback}}
 
{{ScriptFunction|void|TextInput|(string title, string okbutton, Action<string> result);|Shows a text input dialogue box to the user, and returns the result via the result callback}}
 +
{{ScriptFunction|void|OpenURL|(string url);|Opens a URL in a web browser}}
 +
{{ScriptFunction|void|SendLocalChat|(string text, string from);|Sends local chat to the client window}}
  
 
{{Scripting Navbox}}
 
{{Scripting Navbox}}

Revision as of 16:55, 19 January 2017

The SDialogue class allows you to initial dialogue messages to the player to confirm various actions.

Members

YesNoInput

void YesNoInput (string title, string okbutton, string cancelButton, Action<bool> result);

Shows a yes/no dialogue box to the user, and returns the result via the result callback

No example provided yet

TextInput

void TextInput (string title, string okbutton, Action<string> result);

Shows a text input dialogue box to the user, and returns the result via the result callback

No example provided yet

OpenURL

void OpenURL (string url);

Opens a URL in a web browser

No example provided yet

SendLocalChat

void SendLocalChat (string text, string from);

Sends local chat to the client window

No example provided yet