Пример #1
0
        /// <summary>
        /// Display an info message dialog in the center of the screen
        /// </summary>
        ///
        /// <param name="title">Dialog title.</param>
        /// <param name="message">Dialog body text.</param>
        private static void MessageBoxPanel(string title, string message)
        {
            Action prompt = () => {
                MessageBoxPanel messageBoxPanel = UIView.library
                                                  .ShowModal <MessageBoxPanel>("MessageBoxPanel");
                messageBoxPanel.Find <UILabel>("Message").text = message;
                messageBoxPanel.Find <UILabel>("Caption").text = title;
                UIButton uiButton = messageBoxPanel.Find <UIButton>("Close");
                if (!uiButton)
                {
                    return;
                }
                uiButton.isVisible = false;
            };

            try {
                if (TMPELifecycle.InGameOrEditor())
                {
                    Singleton <SimulationManager> .instance.m_ThreadingWrapper.QueueMainThread(prompt);
                }
                else
                {
                    prompt();
                }
            } catch (Exception e) {
                Log.ErrorFormat(
                    "Error displaying a Prompt:\n{0}",
                    e.ToString());
            }
        }
Пример #2
0
 public void ShowMessage(string context, MessageBoxEnum.Style style, MessageBoxEnum.OnReceiveMessageBoxResult callback)
 {
     if (messageBoxPanel == null)
     {
         messageBoxPanel = GameObject.FindObjectOfType <MessageBoxPanel>();
         if (messageBoxPanel == null)
         {
             messageBoxPanel = ResManager.Instance.LoadResComponent <MessageBoxPanel>("Lobby/Prefab/UI/MessageUI");
         }
         messageBoxPanel.transform.SetParent(canvas);
         messageBoxPanel.transform.localPosition = Vector3.zero;
     }
     messageBoxPanel.ShowMessageBox(context, style, callback);
 }
    // Token: 0x06012993 RID: 76179 RVA: 0x0067A5F4 File Offset: 0x006787F4
    public void JEHLDDMGBFB(string BNJFKKGOACF)
    {
        Debug.Log("achievements.21.completed.workshop." + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.DOOMEMNGMEB(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, true);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "skin.hit_normal";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.FHOAAADFONG((string)ResourcesManager.OPIGIBCFLHE(BNJFKKGOACF)), false));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "CameraFilterPack/Lut_TestMode" + text;
        string          mldackjmkmn = "_Value4";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.COHOKAEMADK);
        }
        instance.JCHNDBKFGFP(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, false, true, 1336f);
    }
    // Token: 0x06012991 RID: 76177 RVA: 0x0067A54C File Offset: 0x0067874C
    public void FPDIHMHNAIE(string BNJFKKGOACF)
    {
        Debug.Log("CameraFilterPack/Drawing_NewCellShading" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.DOOMEMNGMEB(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, false, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "player.crystal";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.EHJKPAKGJNA((string)ResourcesManager.HIILLNPNNOB(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "CameraFilterPack/Blend2Camera_Lighten" + text;
        string          mldackjmkmn = "R:";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.DLNNBPAEFID);
        }
        instance.ANCIONGLJAC(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, false, false, 685f);
    }
    // Token: 0x0601298E RID: 76174 RVA: 0x0067A498 File Offset: 0x00678698
    public void HJGNOPFNGCG(string BNJFKKGOACF)
    {
        Debug.Log(". Using max value: 255." + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.PHOHPPPOMPE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, false, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "[Left]";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.JNPEKFHDAIG((string)ResourcesManager.KLNILBOBLIL(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = " not exist" + text;
        string          mldackjmkmn = "_Value2";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.JIAMFPAHBKB);
        }
        instance.CHBFDGFOLLL(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, true, 703f);
    }
    // Token: 0x060129B5 RID: 76213 RVA: 0x0067AB3C File Offset: 0x00678D3C
    public void NGKJFIFEFDM(string BNJFKKGOACF)
    {
        Debug.Log("_Level" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.OFAELGIDIDE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "_Parasite";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.Decrypt((string)ResourcesManager.KLNILBOBLIL(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "CameraFilterPack_OldFilm1" + text;
        string          mldackjmkmn = "InfoText";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.BBHLIOCPEPE);
        }
        instance.JCHNDBKFGFP(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, false, 1194f);
    }
    // Token: 0x060129AB RID: 76203 RVA: 0x0067AA78 File Offset: 0x00678C78
    public void GJKPMMPFLEJ(string BNJFKKGOACF)
    {
        Debug.Log("/../" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.OFAELGIDIDE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, true);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "_Value";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.JJNLMGPCNAA((string)ResourcesManager.HIILLNPNNOB(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "AudioSampler" + text;
        string          mldackjmkmn = "action";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.MHPEDEPFEAK);
        }
        instance.ALHLMBCOILP(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, false, true, 590f);
    }
    // Token: 0x060129A8 RID: 76200 RVA: 0x0067A9C4 File Offset: 0x00678BC4
    public void CLGNKEAIPPC(string BNJFKKGOACF)
    {
        Debug.Log("_Jitter" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.BJIDLJJJCJB(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, true);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "_Value";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.BLNJDEEDEDJ((string)ResourcesManager.KLNILBOBLIL(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "_TimeX" + text;
        string          mldackjmkmn = "CameraFilterPack/Blend2Camera_LighterColor";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.JIAMFPAHBKB);
        }
        instance.ANCIONGLJAC(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, true, 1106f);
    }
    // Token: 0x060129A7 RID: 76199 RVA: 0x0067A91C File Offset: 0x00678B1C
    public void AFGGEGMMKLI(string BNJFKKGOACF)
    {
        Debug.Log("Horizontal" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.OFAELGIDIDE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "_ScreenResolution";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.JNPEKFHDAIG((string)ResourcesManager.PJALIBGIPPH(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "_Value2" + text;
        string          mldackjmkmn = "CameraFilterPack/FX_Funk";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.CKMNMKNMOKP);
        }
        instance.AGMKJJLMOHG(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, false, 967f);
    }
    // Token: 0x060129A1 RID: 76193 RVA: 0x0067A858 File Offset: 0x00678A58
    public void HPLAMMJKIDH(string BNJFKKGOACF)
    {
        Debug.Log("Hidden/Image Effects/Cinematic/MotionBlur/Reconstruction" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.PHOHPPPOMPE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "bad";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.JNPEKFHDAIG((string)ResourcesManager.GetLoadedResource(BNJFKKGOACF)), false));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "SetSpeed" + text;
        string          mldackjmkmn = "LetterSpacing: Missing Text component";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.DINOJLNEILI);
        }
        instance.AGMKJJLMOHG(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, false, 182f);
    }
    // Token: 0x06012999 RID: 76185 RVA: 0x0067A750 File Offset: 0x00678950
    public void OpenReplayFile(string BNJFKKGOACF)
    {
        Debug.Log("[ReplayScene] Loading replay: " + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.LoadText(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, false);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "_dec.json";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.Decrypt((string)ResourcesManager.GetLoadedResource(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "Saved as: " + text;
        string          mldackjmkmn = "ok";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.INAJPJFLILM);
        }
        instance.DisplayMessage(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, false, 0f);
    }
    // Token: 0x0601298C RID: 76172 RVA: 0x0067A3F0 File Offset: 0x006785F0
    public void CMNEEBEFBMC(string BNJFKKGOACF)
    {
        Debug.Log("float,0" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.PHOHPPPOMPE(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, true, true);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "/../";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.BLNJDEEDEDJ((string)ResourcesManager.GetLoadedResource(BNJFKKGOACF)), false));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "_Colored" + text;
        string          mldackjmkmn = "Set sun emission (glow)";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.EDFLOIENIJN);
        }
        instance.ALHLMBCOILP(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, false, false, 278f);
    }
    // Token: 0x06012996 RID: 76182 RVA: 0x0067A6A8 File Offset: 0x006788A8
    public void EDDOMNPDHAA(string BNJFKKGOACF)
    {
        Debug.Log("#" + BNJFKKGOACF);
        Singleton <ResourcesManager> .Instance.KKFGHHCDOBO(BNJFKKGOACF, UnityEngine.Object.FindObjectOfType <FileSelector>().result, false, true);

        string text = UnityEngine.Object.FindObjectOfType <FileSelector>().result + "PossibleMapMaxScoreText";

        base.StartCoroutine(Helpers.SaveFile(text, GameManager.EHJKPAKGJNA((string)ResourcesManager.PJALIBGIPPH(BNJFKKGOACF)), true));
        MessageBoxPanel instance    = Singleton <MessageBoxPanel> .Instance;
        string          dagalcailln = "<command>" + text;
        string          mldackjmkmn = "_TimeX";

        if (ReplayScene.LNIJKGECNME == null)
        {
            ReplayScene.LNIJKGECNME = new UnityAction(ReplayScene.BBHLIOCPEPE);
        }
        instance.DisplayMessage(dagalcailln, mldackjmkmn, ReplayScene.LNIJKGECNME, true, true, 1842f);
    }