Пример #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);
        }
Пример #2
0
        private static void CommonShowModal(string title, string message, bool textOnRight, bool centerTitle, bool allowFUEBackButton, bool alwaysOnTop, OnScreenModalResult onModalResult, object modalResultCookie, bool useCustomKoreanFont = false)
        {
            YesNoScreen yesNoScreen = new YesNoScreen(title, message, textOnRight, alwaysOnTop, useCustomKoreanFont);

            yesNoScreen.centerTitle        = centerTitle;
            yesNoScreen.OnModalResult      = onModalResult;
            yesNoScreen.ModalResultCookie  = modalResultCookie;
            yesNoScreen.AllowFUEBackButton = allowFUEBackButton;
            Service.Get <ScreenController>().AddScreen(yesNoScreen);
        }
Пример #3
0
        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);
        }
Пример #4
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();
            }
        }
Пример #5
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();
     }
 }
Пример #6
0
 public static void ShowModal(string title, string message, bool textOnRight, string confirmString, string gobackString, OnScreenModalResult onModalResult, object modalResultCookie, bool useCustomKoreanFont = false)
 {
     YesNoScreen.yesString = confirmString;
     YesNoScreen.noString  = gobackString;
     YesNoScreen.CommonShowModal(title, message, textOnRight, false, false, false, onModalResult, modalResultCookie, useCustomKoreanFont);
 }
Пример #7
0
 public static void ShowModal(string title, string message, bool textOnRight, bool centerTitle, bool allowFUEBackButton, bool alwaysOnTop, OnScreenModalResult onModalResult, object modalResultCookie, bool useCustomKoreanFont = false)
 {
     YesNoScreen.yesString = "";
     YesNoScreen.noString  = "";
     YesNoScreen.CommonShowModal(title, message, textOnRight, centerTitle, allowFUEBackButton, alwaysOnTop, onModalResult, modalResultCookie, useCustomKoreanFont);
 }
Пример #8
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);
 }
Пример #9
0
 public unsafe static long $Invoke8(long instance, long *args)
 {
     YesNoScreen.StaticReset();
     return(-1L);
 }
Пример #10
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);
 }
Пример #11
0
 public static void ShowModal(string title, string message, bool textOnRight, bool centerTitle, bool allowFUEBackButton, bool alwaysOnTop, OnScreenModalResult onModalResult, object modalResultCookie)
 {
     YesNoScreen.yesString = string.Empty;
     YesNoScreen.noString  = string.Empty;
     YesNoScreen.CommonShowModal(title, message, textOnRight, centerTitle, allowFUEBackButton, alwaysOnTop, onModalResult, modalResultCookie);
 }