예제 #1
0
        public void ShowSingleFieldPromptDialog(string _title, string _message, string _placeholder, bool _useSecureText, string[] _buttonsList, GUISkin _skin)
        {
            GUIPromptDialog.InputFieldElement[] _inputFields = new GUIPromptDialog.InputFieldElement[1];

            _inputFields[0] = new GUIPromptDialog.InputFieldElement();
            _inputFields[0].Set(_placeholder, _useSecureText, true);

            GUIPromptDialog _dialog = GUIPromptDialog.Create(_title, _message, _inputFields, _buttonsList, SingleFieldPromptCallback);

            _dialog.UISkin = _skin;

            _dialog.Show();
        }
예제 #2
0
        public void ShowLoginPromptDialog(string _title, string _message, string _placeholder1, string _placeholder2, string[] _buttonsList, GUISkin _skin)
        {
            GUIPromptDialog.InputFieldElement[] _inputFields = new GUIPromptDialog.InputFieldElement[2];

            _inputFields[0] = new GUIPromptDialog.InputFieldElement();
            _inputFields[0].Set(_placeholder1);

            _inputFields[1] = new GUIPromptDialog.InputFieldElement(); //Username
            _inputFields[1].Set(_placeholder2, true);                  //Password

            GUIPromptDialog _dialog = GUIPromptDialog.Create(_title, _message, _inputFields, _buttonsList, LoginPromptCallback);

            _dialog.UISkin = _skin;

            _dialog.Show();
        }