public override void ShowLoginPromptDialog(string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, LoginPromptCompletion _onCompletion)
        {
            base.ShowLoginPromptDialog (_title, _message, _placeholder1, _placeholder2, _buttonsList, _onCompletion);

            // Show prompt
            Plugin.Call(NativeInfo.Methods.SHOW_LOGIN_PROMPT, _title, _message, _placeholder1, _placeholder2, _buttonsList.ToJSON());
        }
		public override void ShowLoginPromptDialog (string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, LoginPromptCompletion _onCompletion)
		{
			base.ShowLoginPromptDialog (_title, _message, _placeholder1, _placeholder2, _buttonsList, _onCompletion);
			
			// Show prompt
			showLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList.ToJSON());
		}
Example #3
0
 /// <summary>
 /// Shows a prompt dialog that allows the user to enter login details.
 /// </summary>
 /// <param name="_title">The string that appears in the title bar.</param>
 /// <param name="_message">Descriptive text that provides more details than the title.</param>
 /// <param name="_usernamePlaceHolder">The string that is displayed when there is no other text in the username textfield.</param>
 /// <param name="_passwordPlaceHolder">The string that is displayed when there is no other text in the password textfield.</param>
 /// <param name="_buttonsList">An array of string values, used as title of action buttons.</param>
 /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
 /// <example>
 /// The following code example demonstrates how to prompt user to enter login details.
 /// <code>
 /// using UnityEngine;
 /// using System.Collections;
 /// using VoxelBusters.NativePlugins;
 ///
 /// public class ExampleClass : MonoBehaviour
 /// {
 ///     public void ShowLoginDialog ()
 ///     {
 ///         string[]	_buttons	= new string[] {
 ///             "Ok",
 ///             "Cancel"
 ///         };
 ///
 ///         NPBinding.UI.ShowSingleFieldPromptDialogWithPlainText("Example Game", "Please enter login details.", "username", "password", _buttons, OnButtonPressed);
 ///     }
 ///
 ///     private void OnButtonPressed (string _buttonPressed, string _usernameText, string _passwordText)
 ///     {
 ///         Debug.Log("Button pressed: " + _buttonPressed);
 ///         Debug.Log("Input username is: " + _usernameText);
 ///         Debug.Log("Input password is: " + _passwordText);
 ///     }
 /// }
 /// </code>
 /// </example>
 public virtual void ShowLoginPromptDialog(string _title, string _message, string _usernamePlaceHolder, string _passwordPlaceHolder, string[] _buttons, LoginPromptCompletion _onCompletion)
 {
     // Cache callback
     OnLoginPromptClosed = _onCompletion;
 }
Example #4
0
        public override void ShowLoginPromptDialog(string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, LoginPromptCompletion _onCompletion)
        {
            base.ShowLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList, _onCompletion);

            // Show prompt
            Plugin.Call(Native.Methods.SHOW_LOGIN_PROMPT, _title, _message, _placeholder1, _placeholder2, _buttonsList.ToJSON());
        }
        public override void ShowLoginPromptDialog(string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, LoginPromptCompletion _onCompletion)
        {
            base.ShowLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList, _onCompletion);

            EditorUIHandler.Instance.ShowLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList, GetGUISkin());
        }
Example #6
0
        public override void ShowLoginPromptDialog(string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, LoginPromptCompletion _onCompletion)
        {
            base.ShowLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList, _onCompletion);

            // Show prompt
            showLoginPromptDialog(_title, _message, _placeholder1, _placeholder2, _buttonsList.ToJSON());
        }