Beispiel #1
0
        private void OnLanguageItemButtonClicked(UXButton button)
        {
            string text = (string)button.Tag;

            this.Close(null);
            YesNoScreen.ShowModal(this.lang.Get("SETTINGS_CHOOSELANGUAGE", new object[0]), this.lang.Get("SETTINGS_CONFIRMLANGUAGE", new object[]
            {
                this.lang.GetDisplayLanguage(text)
            }), false, new OnScreenModalResult(this.OnLanguageChangeConfirmed), text);
        }
        private void OnLanguageItemButtonClicked(UXButton button)
        {
            string text = (string)button.Tag;

            this.Close(null);
            bool useCustomKoreanFont = false;

            if (text.ToLower().StartsWith("ko"))
            {
                useCustomKoreanFont = true;
            }
            YesNoScreen.ShowModal(this.lang.Get("SETTINGS_CHOOSELANGUAGE", new object[0]), this.lang.Get("SETTINGS_CONFIRMLANGUAGE", new object[]
            {
                this.lang.GetDisplayLanguage(text)
            }), false, new OnScreenModalResult(this.OnLanguageChangeConfirmed), text, useCustomKoreanFont);
        }
Beispiel #3
0
        private void CreateSquad()
        {
            bool flag = this.CheckForValidInput(true);

            if (flag)
            {
                Squad currentSquad = Service.Get <SquadController>().StateManager.GetCurrentSquad();
                if (currentSquad != null)
                {
                    YesNoScreen.ShowModal(this.lang.Get("ALERT", new object[0]), this.lang.Get("CREATE_LEAVE_SQUAD_ALERT", new object[]
                    {
                        currentSquad.SquadName
                    }), false, this.lang.Get("CREATE_CTA", new object[0]), this.lang.Get("ACCOUNT_CONFLICT_CONFIRM_CANCEL", new object[0]), new OnScreenModalResult(this.OnLeaveAndCreateSquad), null, false);
                    Service.Get <EventManager>().SendEvent(EventId.UISquadLeaveConfirmation, currentSquad.SquadID + "|create|");
                    return;
                }
                this.ActualCreateSquad();
            }
        }
Beispiel #4
0
 private void OnSubmit()
 {
     if (!this.successfullySetUserName && this.hasTypedAnything && !string.IsNullOrEmpty(this.inputTextField.Text))
     {
         if (!this.ValidateFinalString(this.inputTextField.Text))
         {
             return;
         }
         Service.Get <AudioManager>().PlayAudio("sfx_button_next");
         if (GameConstants.SET_CALLSIGN_CONFIRM_SCREEN_ENABLED)
         {
             YesNoScreen.ShowModal(this.lang.Get("CALL_SIGN_CONFIRMATION_TITLE", new object[0]), this.lang.Get("CALL_SIGN_CONFIRMATION_DESCRIPTION", new object[]
             {
                 this.inputTextField.Text
             }), false, true, new OnScreenModalResult(this.OnCloseConfrimScreen), null, false);
             return;
         }
         this.SetNameFinalAndClose();
     }
 }
Beispiel #5
0
 public static void ShowModal(string title, string message, bool textOnRight, OnScreenModalResult onModalResult, object modalResultCookie, bool useCustomKoreanFont = false)
 {
     YesNoScreen.ShowModal(title, message, textOnRight, false, false, onModalResult, modalResultCookie, useCustomKoreanFont);
 }
Beispiel #6
0
 public unsafe static long $Invoke7(long instance, long *args)
 {
     YesNoScreen.ShowModal(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), *(sbyte *)(args + 2) != 0, *(sbyte *)(args + 3) != 0, *(sbyte *)(args + 4) != 0, *(sbyte *)(args + 5) != 0, (OnScreenModalResult)GCHandledObjects.GCHandleToObject(args[6]), GCHandledObjects.GCHandleToObject(args[7]), *(sbyte *)(args + 8) != 0);
     return(-1L);
 }