Esempio n. 1
0
    private void OnGUI()
    {
        if (!this._showUI)
        {
            return;
        }
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        if (GUILayout.Button("Save", new GUILayoutOption[0]))
        {
            this.SaveFieldMap();
        }
        if (FieldMapEditor.useOriginalVersion)
        {
            if (GUILayout.Button("[Use Original          ]", new GUILayoutOption[0]))
            {
                FieldMapEditor.useOriginalVersion = !FieldMapEditor.useOriginalVersion;
            }
        }
        else if (GUILayout.Button("[Use Modified          ]", new GUILayoutOption[0]))
        {
            FieldMapEditor.useOriginalVersion = !FieldMapEditor.useOriginalVersion;
        }
        GUILayout.Button("Restore", new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        GUILayout.EndArea();
    }
Esempio n. 2
0
        private void BuildSoundSelector()
        {
            Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

            GUILayout.BeginVertical(new GUILayoutOption[0]);
            this.soundSelectorScrollPosition = GUILayout.BeginScrollView(this.soundSelectorScrollPosition, new GUILayoutOption[]
            {
                GUILayout.Width(fullscreenRect.width * 2f / 3f),
                GUILayout.Height(fullscreenRect.height * 0.45f)
            });
            List <SoundProfile> playlist = this.soundViewController.GetPlaylist();

            if (playlist != null)
            {
                foreach (SoundProfile soundProfile in playlist)
                {
                    GUILayout.BeginHorizontal(new GUILayoutOption[0]);
                    GUILayout.Label(soundProfile.Name, new GUILayoutOption[0]);
                    if (GUILayout.Button("Play", new GUILayoutOption[0]))
                    {
                        this.soundViewController.SelectSound(soundProfile);
                    }
                    GUILayout.EndHorizontal();
                }
            }
            GUILayout.EndScrollView();
            GUILayout.EndVertical();
        }
Esempio n. 3
0
    private void OnGUI()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        if (!this.isShowUI)
        {
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            if (GUILayout.Button("On/Off", new GUILayoutOption[0]))
            {
                this.isShowUI = !this.isShowUI;
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
        }
        else
        {
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            if (GUILayout.Button("Back", new GUILayoutOption[0]))
            {
                SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
            }
            if (GUILayout.Button("On/Off", new GUILayoutOption[0]))
            {
                this.isShowUI = !this.isShowUI;
            }
            GUILayout.FlexibleSpace();
            this.OnMobileAndWindowsGUI(fullscreenRect);
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
        }
        GUILayout.EndArea();
    }
Esempio n. 4
0
    private void OnGUI()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        if (QuadMistDebugGui.isShowPreGameDebugMenu)
        {
            GUILayout.BeginArea(fullscreenRect);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.BeginVertical("box", new GUILayoutOption[0]);
            if (GUILayout.Button("Play game with your NOOB cards", new GUILayoutOption[0]))
            {
                QuadMistGame.OnFinishSelectCardUI(null);
                QuadMistDebugGui.isShowPreGameDebugMenu = false;
            }
            GUILayout.EndVertical();
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
            GUILayout.EndArea();
        }
    }
Esempio n. 5
0
    private void OnGUI()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("Back", new GUILayoutOption[0]))
        {
            SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("Debug UI", new GUILayoutOption[0]))
        {
            FF9StateSystem.Field.isOpenFieldMapDebugPanel = !FF9StateSystem.Field.isOpenFieldMapDebugPanel;
        }
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        if (FF9StateSystem.Field.isOpenFieldMapDebugPanel)
        {
            this.BuildBattleMapDebugTopPanel();
        }
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        if (GUILayout.Button((!FF9StateSystem.Field.UseUpscalFM) ? "Original" : "Upscaled", new GUILayoutOption[0]))
        {
            FF9StateSystem.Field.UseUpscalFM = !FF9StateSystem.Field.UseUpscalFM;
            SceneDirector.Replace("FieldMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        if (!FF9StateSystem.Field.UseUpscalFM && GUILayout.Button((!this.isBilinear) ? "Point" : "Bilinear", new GUILayoutOption[0]))
        {
            this.isBilinear = !this.isBilinear;
            if (this.isBilinear)
            {
                this.bg.scene.atlas.filterMode = FilterMode.Bilinear;
            }
            else
            {
                this.bg.scene.atlas.filterMode = FilterMode.Point;
            }
        }
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        if (FF9StateSystem.Field.isOpenFieldMapDebugPanel)
        {
            this.BuildBattleMapDebugBottomPanel();
        }
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
        GUILayout.EndArea();
    }
Esempio n. 6
0
        private void BuildSfxSoundSelector()
        {
            Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

            GUILayout.BeginVertical(new GUILayoutOption[0]);
            this.soundSelectorScrollPosition = GUILayout.BeginScrollView(this.soundSelectorScrollPosition, new GUILayoutOption[]
            {
                GUILayout.Width(fullscreenRect.width * 2f / 3f),
                GUILayout.Height(fullscreenRect.height * 0.45f)
            });
            if (this.sfxSoundUIState == 0)
            {
                foreach (Int32 num in this.soundViewController.AllSfxGroupSongIndex)
                {
                    GUILayout.BeginHorizontal(new GUILayoutOption[0]);
                    GUILayout.Label("EFX ID: " + num, new GUILayoutOption[0]);
                    if (GUILayout.Button("Load", new GUILayoutOption[0]))
                    {
                        this.CurrentSpecialEffectID = num;
                        this.sfxSoundUIState        = 1;
                        this.soundViewController.LoadSfxSoundGroup(num);
                    }
                    GUILayout.EndHorizontal();
                }
            }
            else if (this.sfxSoundUIState == 1)
            {
                List <String> sfxSoundPlaylist = this.soundViewController.GetSfxSoundPlaylist(this.CurrentSpecialEffectID);
                GUILayout.BeginVertical(new GUILayoutOption[0]);
                if (GUILayout.Button("Back", new GUILayoutOption[0]))
                {
                    this.sfxSoundUIState = 0;
                }
                for (Int32 i = 0; i < sfxSoundPlaylist.Count; i++)
                {
                    if (i == SoundLib.GetResidentSfxSoundCount())
                    {
                        GUILayout.Label("---- ---- ---- ----", new GUILayoutOption[0]);
                    }
                    String text = sfxSoundPlaylist[i];
                    GUILayout.BeginHorizontal(new GUILayoutOption[0]);
                    GUILayout.Label(text, new GUILayoutOption[0]);
                    if (GUILayout.Button("Play", new GUILayoutOption[0]))
                    {
                        this.soundViewController.SelectSound(i);
                    }
                    GUILayout.EndHorizontal();
                }
                GUILayout.EndVertical();
            }
            else
            {
                SoundLib.LogError("sfxSoundUIState is invalid: " + this.sfxSoundUIState);
            }
            GUILayout.EndScrollView();
            GUILayout.EndVertical();
        }
Esempio n. 7
0
 private void OnGUI()
 {
     SFX.DebugOnGUI();
     DebugGuiSkin.ApplySkin();
     this.screenRect = DebugGuiSkin.GetFullscreenRect();
     this.OnUiTop();
     if (!this.isHideUI)
     {
         this.OnUiSpecialEffect();
     }
 }
Esempio n. 8
0
 private void OnGUI()
 {
     DebugGuiSkin.ApplySkin();
     this.screenRect = DebugGuiSkin.GetFullscreenRect();
     GUILayout.BeginVertical("box", new GUILayoutOption[0]);
     GUILayout.BeginHorizontal(new GUILayoutOption[0]);
     if (GUILayout.Button("back", new GUILayoutOption[0]))
     {
         global::Debug.Log("back");
         SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
     }
     GUILayout.FlexibleSpace();
     GUILayout.EndHorizontal();
     this.scrollPosition = GUILayout.BeginScrollView(this.scrollPosition, new GUILayoutOption[]
     {
         GUILayout.Width(this.screenRect.width)
     });
     GUI.skin.label.alignment = TextAnchor.UpperLeft;
     GUILayout.Label(this.SystemInfoString[0, 0] + " : " + SystemInfo.deviceModel, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[1, 0] + " : " + SystemInfo.deviceName, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[2, 0] + " : " + SystemInfo.deviceType, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[4, 0] + " : " + SystemInfo.graphicsDeviceID, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[5, 0] + " : " + SystemInfo.graphicsDeviceName, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[6, 0] + " : " + SystemInfo.graphicsDeviceVendor, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[7, 0] + " : " + SystemInfo.graphicsDeviceVendorID, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[8, 0] + " : " + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[9, 0] + " : " + SystemInfo.graphicsMemorySize, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[11, 0] + " : " + SystemInfo.graphicsShaderLevel, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[12, 0] + " : " + SystemInfo.npotSupport, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[13, 0] + " : " + SystemInfo.operatingSystem, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[14, 0] + " : " + SystemInfo.processorCount, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[15, 0] + " : " + SystemInfo.processorType, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[16, 0] + " : " + SystemInfo.supportedRenderTargetCount, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[17, 0] + " : " + SystemInfo.supports3DTextures, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[18, 0] + " : " + SystemInfo.supportsAccelerometer, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[19, 0] + " : " + SystemInfo.supportsComputeShaders, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[20, 0] + " : " + SystemInfo.supportsGyroscope, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[21, 0] + " : " + SystemInfo.supportsImageEffects, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[22, 0] + " : " + SystemInfo.supportsInstancing, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[23, 0] + " : " + SystemInfo.supportsLocationService, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[24, 0] + " : " + SystemInfo.supportsRenderTextures, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[25, 0] + " : " + SystemInfo.supportsRenderToCubemap, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[26, 0] + " : " + SystemInfo.supportsShadows, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[28, 0] + " : " + SystemInfo.supportsStencil, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[29, 0] + " : " + SystemInfo.supportsVibration, new GUILayoutOption[0]);
     GUILayout.Label(this.SystemInfoString[30, 0] + " : " + SystemInfo.systemMemorySize, new GUILayoutOption[0]);
     GUILayout.Label("------------------------", new GUILayoutOption[0]);
     GUILayout.Label(this.ApplicationInfoString[0, 0] + " : " + Application.dataPath, new GUILayoutOption[0]);
     GUILayout.Label(this.ApplicationInfoString[1, 0] + " : " + AssetManagerUtil.GetPersistentDataPath(), new GUILayoutOption[0]);
     GUILayout.Label(this.ApplicationInfoString[2, 0] + " : " + AssetManagerUtil.GetStreamingAssetsPath(), new GUILayoutOption[0]);
     GUILayout.Label(this.ApplicationInfoString[3, 0] + " : " + Application.temporaryCachePath, new GUILayoutOption[0]);
     GUILayout.EndScrollView();
     GUILayout.EndVertical();
 }
Esempio n. 9
0
        private void OnUiSpecialEffect()
        {
            Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

            fullscreenRect.height *= 0.5f;
            fullscreenRect.y       = fullscreenRect.height;
            GUILayout.BeginArea(fullscreenRect);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            this.OnUiSpecialEffectBottom1();
            this.OnUiSpecialEffectBottom0();
            GUILayout.EndVertical();
            GUILayout.EndArea();
        }
Esempio n. 10
0
    private void OnUiSpecialEffect()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();
        Rect screenRect     = fullscreenRect;

        screenRect.height *= 0.375f;
        screenRect.y       = fullscreenRect.height - screenRect.height;
        GUILayout.BeginArea(screenRect);
        this.scrollPosition = GUILayout.BeginScrollView(this.scrollPosition, GUILayout.Width(screenRect.width), GUILayout.Height(screenRect.height));
        GUILayout.BeginVertical();
        GUILayout.FlexibleSpace();
        this.OnUiSpecialEffectBottom1();
        this.OnUiSpecialEffectBottom0();
        GUILayout.EndVertical();
        GUILayout.EndScrollView();
        GUILayout.EndArea();
    }
Esempio n. 11
0
    private void OnGUI()
    {
        if (!EventEngineUtils.showDebugUI)
        {
            return;
        }
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        if (!FF9StateSystem.Battle.isDebug)
        {
            GUILayout.BeginArea(fullscreenRect);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.EndHorizontal();
            GUILayout.EndArea();
            return;
        }
    }
Esempio n. 12
0
    private void OnGUI()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("Back", new GUILayoutOption[0]))
        {
            SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.FlexibleSpace();
        if (GUILayout.Button("Debug", new GUILayoutOption[0]))
        {
            this.isEnableSoundController = !this.isEnableSoundController;
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        if (this.isEnableSoundController)
        {
            GUILayout.BeginHorizontal("box", new GUILayoutOption[0]);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.Label("File: " + MovieTestScript.MovieFiles[this.currMovieIndex], new GUILayoutOption[0]);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            this.DrawControlMenu();
            GUILayout.EndVertical();
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
        }
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
        GUILayout.EndArea();
    }
Esempio n. 13
0
    private void OnGUI()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        if (GUILayout.Button("Back", new GUILayoutOption[0]))
        {
            SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.FlexibleSpace();
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        this.scrollPosition = GUILayout.BeginScrollView(this.scrollPosition, new GUILayoutOption[]
        {
            GUILayout.Width(fullscreenRect.width * 2f / 3f),
            GUILayout.Height(fullscreenRect.height * 3f / 4f)
        });
        GUILayout.BeginVertical("Box", new GUILayoutOption[0]);
        GUILayout.Label("Please select game stage", new GUILayoutOption[0]);
        GUILayout.Label("( Valid stage are between 0 AND 127 )", new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("-10", new GUILayoutOption[0]))
        {
            Int32 num = Convert.ToInt32(this.stageStr);
            if (num >= 10)
            {
                num -= 10;
            }
            else
            {
                num = 0;
            }
            this.stageStr = String.Empty + num;
        }
        if (GUILayout.Button("-1", new GUILayoutOption[0]))
        {
            Int32 num2 = Convert.ToInt32(this.stageStr);
            if (num2 > 0)
            {
                num2--;
            }
            this.stageStr = String.Empty + num2;
        }
        this.stageStr = GUILayout.TextField(this.stageStr, new GUILayoutOption[0]);
        if (GUILayout.Button("+1", new GUILayoutOption[0]))
        {
            Int32 num3 = Convert.ToInt32(this.stageStr);
            if (num3 < 127)
            {
                num3++;
            }
            this.stageStr = String.Empty + num3;
        }
        if (GUILayout.Button("+10", new GUILayoutOption[0]))
        {
            Int32 num4 = Convert.ToInt32(this.stageStr);
            if (num4 < 118)
            {
                num4 += 10;
            }
            else
            {
                num4 = 127;
            }
            this.stageStr = String.Empty + num4;
        }
        GUILayout.EndHorizontal();
        if (GUILayout.Button("PLAY!", new GUILayoutOption[0]))
        {
            Int32 num5 = Convert.ToInt32(this.stageStr);
            FF9StateSystem.Common.FF9.miniGameArg = (UInt16)num5;
            SceneDirector.Replace("QuadMist", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.Label("----------------------------------------", new GUILayoutOption[0]);
        if (GUILayout.Button("Clear all cards", new GUILayoutOption[0]))
        {
            QuadMistDatabase.LoadData();
            List <QuadMistCard> cardList = QuadMistDatabase.GetCardList();
            cardList.Clear();
            QuadMistDatabase.SetCardList(cardList);
            QuadMistDatabase.SaveData();
        }
        if (GUILayout.Button("Reset all stat", new GUILayoutOption[0]))
        {
            QuadMistDatabase.LoadData();
            QuadMistDatabase.SetWinCount(0);
            QuadMistDatabase.SetLoseCount(0);
            QuadMistDatabase.SetDrawCount(0);
            QuadMistDatabase.SaveData();
        }
        GUILayout.Label("Game generates new 8 cards", new GUILayoutOption[0]);
        GUILayout.Label("----------------------------------------", new GUILayoutOption[0]);
        GUILayout.Label("Create/Remove card", new GUILayoutOption[0]);
        GUILayout.Label("Select card ID (Between 0-99)", new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("-10", new GUILayoutOption[0]))
        {
            Int32 num6 = Convert.ToInt32(this.cardStr);
            if (num6 >= 10)
            {
                num6 -= 10;
            }
            else
            {
                num6 = 0;
            }
            this.cardStr = String.Empty + num6;
        }
        if (GUILayout.Button("-1", new GUILayoutOption[0]))
        {
            Int32 num7 = Convert.ToInt32(this.cardStr);
            if (num7 > 0)
            {
                num7--;
            }
            this.cardStr = String.Empty + num7;
        }
        this.cardStr = GUILayout.TextField(this.cardStr, new GUILayoutOption[0]);
        if (GUILayout.Button("+1", new GUILayoutOption[0]))
        {
            Int32 num8 = Convert.ToInt32(this.cardStr);
            if (num8 < 99)
            {
                num8++;
            }
            this.cardStr = String.Empty + num8;
        }
        if (GUILayout.Button("+10", new GUILayoutOption[0]))
        {
            Int32 num9 = Convert.ToInt32(this.cardStr);
            if (num9 < 90)
            {
                num9 += 10;
            }
            else
            {
                num9 = 99;
            }
            this.cardStr = String.Empty + num9;
        }
        GUILayout.EndHorizontal();
        if (GUILayout.Button("Create card", new GUILayoutOption[0]))
        {
            QuadMistDatabase.LoadData();
            Int32 id = Convert.ToInt32(this.cardStr);
            List <QuadMistCard> cardList2 = QuadMistDatabase.GetCardList();
            QuadMistCard        item      = CardPool.CreateQuadMistCard(id);
            cardList2.Add(item);
            QuadMistDatabase.SetCardList(cardList2);
            QuadMistDatabase.SaveData();
        }
        if (GUILayout.Button("Remove card", new GUILayoutOption[0]))
        {
            QuadMistDatabase.LoadData();
            Int32 num10 = Convert.ToInt32(this.cardStr);
            List <QuadMistCard> cardList3 = QuadMistDatabase.GetCardList();
            List <QuadMistCard> list      = new List <QuadMistCard>();
            foreach (QuadMistCard quadMistCard in cardList3)
            {
                if ((Int32)quadMistCard.id == num10)
                {
                    list.Add(quadMistCard);
                }
            }
            foreach (QuadMistCard item2 in list)
            {
                cardList3.Remove(item2);
            }
            QuadMistDatabase.SetCardList(cardList3);
            QuadMistDatabase.SaveData();
        }
        GUILayout.Label("(Remove all All card at filled ID)", new GUILayoutOption[0]);
        GUILayout.Label("----------------------------------------", new GUILayoutOption[0]);
        GUILayout.Label("Templates", new GUILayoutOption[0]);
        if (GUILayout.Button("Create 100", new GUILayoutOption[0]))
        {
            QuadMistDatabase.LoadData();
            List <QuadMistCard> cardList4 = QuadMistDatabase.GetCardList();
            cardList4.Clear();
            for (Int32 i = 0; i < 100; i++)
            {
                QuadMistCard item3 = CardPool.CreateQuadMistCard(i);
                cardList4.Add(item3);
            }
            QuadMistDatabase.SetCardList(cardList4);
            QuadMistDatabase.SaveData();
        }
        GUILayout.Label("Create 100 cards, 1 ID 1 card", new GUILayoutOption[0]);
        GUILayout.EndVertical();
        GUILayout.EndScrollView();
        GUILayout.FlexibleSpace();
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        GUILayout.EndArea();
    }
Esempio n. 14
0
    private void OnGUI()
    {
        if (!EventEngineUtils.showDebugUI)
        {
            return;
        }
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        if (!FF9StateSystem.Battle.isDebug)
        {
            GUILayout.BeginArea(fullscreenRect);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            if (GUILayout.Button("Back", new GUILayoutOption[0]))
            {
                SceneDirector.Replace(PersistenSingleton <SceneDirector> .Instance.LastScene, SceneTransition.FadeOutToBlack_FadeIn, true);
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
            GUILayout.EndArea();
            return;
        }
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (GUILayout.Button("Back", new GUILayoutOption[0]))
        {
            SceneDirector.Replace("MainMenu", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.FlexibleSpace();
        GUILayout.FlexibleSpace();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.BeginVertical("Box", new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (this.isOpenBattleMapDebugPanel)
        {
            if (GUILayout.Button("Effect UI", new GUILayoutOption[0]))
            {
                this.isOpenEffectDebugPanel = !this.isOpenEffectDebugPanel;
                if (this.isOpenEffectDebugPanel)
                {
                    this.isOpenAttackDebugPanel = false;
                }
            }
            if (GUILayout.Button("Attack UI", new GUILayoutOption[0]))
            {
                this.isOpenAttackDebugPanel = !this.isOpenAttackDebugPanel;
                if (this.isOpenAttackDebugPanel)
                {
                    this.isOpenEffectDebugPanel = false;
                }
            }
            GUILayout.FlexibleSpace();
        }
        if (GUILayout.Button("Debug UI", new GUILayoutOption[0]))
        {
            this.isOpenBattleMapDebugPanel = !this.isOpenBattleMapDebugPanel;
        }
        GUILayout.EndHorizontal();
        if (this.isOpenBattleMapDebugPanel)
        {
            this.BuildBattleMapDebugPanel();
        }
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndArea();
        if (this.isOpenEffectDebugPanel)
        {
            this.OnUiSpecialEffect();
        }
        if (this.isOpenAttackDebugPanel)
        {
            this.OnUiAttackDebug();
        }
    }
Esempio n. 15
0
    private void OnUiAttackDebug()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();
        Rect screenRect     = fullscreenRect;

        screenRect.height *= 0.375f;
        screenRect.y       = fullscreenRect.height - screenRect.height;
        GUILayout.BeginArea(screenRect);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        this.scrollPosition = GUILayout.BeginScrollView(this.scrollPosition, new GUILayoutOption[]
        {
            GUILayout.Width(screenRect.width),
            GUILayout.Height(screenRect.height)
        });
        GUILayout.BeginHorizontal("Box", new GUILayoutOption[0]);
        Boolean isTrance = GUILayout.Toggle(FF9StateSystem.Battle.isTrance[FF9StateSystem.Battle.selectCharPosID], "Trance", new GUILayoutOption[0]);

        if (isTrance != FF9StateSystem.Battle.isTrance[FF9StateSystem.Battle.selectCharPosID])
        {
            BattleUnit character = btl_scrp.FindBattleUnit((UInt16)(1 << FF9StateSystem.Battle.selectCharPosID));
            FF9StateSystem.Battle.isTrance[FF9StateSystem.Battle.selectCharPosID] = isTrance;
            if (isTrance)
            {
                character.Trance = Byte.MaxValue;
                character.AlterStatus(BattleStatus.Trance);
            }
            else
            {
                character.Trance = 0;
                character.RemoveStatus(BattleStatus.Trance);
            }
        }
        if (GUILayout.Button("Attack", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.playCommand(FF9StateSystem.Battle.selectCharPosID, 0, 16, isTrance);
        }
        else if (GUILayout.Button("Skill1", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.playCommand(FF9StateSystem.Battle.selectCharPosID, 1, 16, isTrance);
        }
        else if (GUILayout.Button("Skill2", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.playCommand(FF9StateSystem.Battle.selectCharPosID, 2, 16, isTrance);
        }
        else if (GUILayout.Button("Item", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.playCommand(FF9StateSystem.Battle.selectCharPosID, 3, 16, isTrance);
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal("Box", new GUILayoutOption[0]);
        GUILayout.Label("PlayerCount:" + FF9StateSystem.Battle.selectPlayerCount, new GUILayoutOption[0]);
        if (GUILayout.Button("<", new GUILayoutOption[0]))
        {
            FF9StateSystem.Battle.selectPlayerCount--;
            if (FF9StateSystem.Battle.selectPlayerCount <= 0)
            {
                FF9StateSystem.Battle.selectPlayerCount = 4;
                ff9play.FF9Play_SetParty(0, 0);
                ff9play.FF9Play_SetParty(1, 1);
                ff9play.FF9Play_SetParty(2, 2);
                ff9play.FF9Play_SetParty(3, 3);
            }
            else
            {
                ff9play.FF9Play_SetParty(FF9StateSystem.Battle.selectPlayerCount, -1);
            }
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        if (GUILayout.Button(">", new GUILayoutOption[0]))
        {
            Int32 num = FF9StateSystem.Battle.selectPlayerCount++;
            if (FF9StateSystem.Battle.selectPlayerCount > 4)
            {
                FF9StateSystem.Battle.selectPlayerCount = 1;
                ff9play.FF9Play_SetParty(3, -1);
                ff9play.FF9Play_SetParty(2, -1);
                ff9play.FF9Play_SetParty(1, -1);
            }
            else
            {
                ff9play.FF9Play_SetParty(num, num);
            }
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal("Box", new GUILayoutOption[0]);
        GUILayout.Label("CharPosID:" + FF9StateSystem.Battle.selectCharPosID, new GUILayoutOption[0]);
        if (GUILayout.Button("<", new GUILayoutOption[0]))
        {
            FF9StateSystem.Battle.selectCharPosID--;
            if (FF9StateSystem.Battle.selectCharPosID < 0)
            {
                FF9StateSystem.Battle.selectCharPosID = FF9StateSystem.Battle.selectPlayerCount - 1;
            }
        }
        if (GUILayout.Button(">", new GUILayoutOption[0]))
        {
            FF9StateSystem.Battle.selectCharPosID++;
            if (FF9StateSystem.Battle.selectCharPosID >= FF9StateSystem.Battle.selectPlayerCount)
            {
                FF9StateSystem.Battle.selectCharPosID = 0;
            }
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal("Box", new GUILayoutOption[0]);
        GUILayout.Label("CharModelID:" + FF9StateSystem.Common.FF9.party.member[FF9StateSystem.Battle.selectCharPosID].info.slot_no, new GUILayoutOption[0]);
        if (GUILayout.Button("<", new GUILayoutOption[0]))
        {
            Int32 num2 = BattleUI.currentDebugSerialCharacter[FF9StateSystem.Battle.selectCharPosID];
            do
            {
                if (num2 != 0)
                {
                    num2--;
                }
                else
                {
                    num2 = 11;
                }
            }while (Array.IndexOf <Int32>(BattleUI.currentDebugSerialCharacter, num2) != -1);
            ff9play.FF9Dbg_SetCharacter(num2, FF9StateSystem.Battle.selectCharPosID);
            BattleUI.currentDebugSerialCharacter[FF9StateSystem.Battle.selectCharPosID] = num2;
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        if (GUILayout.Button(">", new GUILayoutOption[0]))
        {
            Int32 num3 = BattleUI.currentDebugSerialCharacter[FF9StateSystem.Battle.selectCharPosID];
            do
            {
                if (num3 < 12)
                {
                    num3++;
                }
                else
                {
                    num3 = 0;
                }
            }while (Array.IndexOf <Int32>(BattleUI.currentDebugSerialCharacter, num3) != -1);
            ff9play.FF9Dbg_SetCharacter(num3, FF9StateSystem.Battle.selectCharPosID);
            BattleUI.currentDebugSerialCharacter[FF9StateSystem.Battle.selectCharPosID] = num3;
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal("Box", new GUILayoutOption[0]);
        GUILayout.Label("WeaponID:" + this.battleMain.GetWeaponID(FF9StateSystem.Battle.selectCharPosID), new GUILayoutOption[0]);
        if (GUILayout.Button("<", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.CurPlayerWeaponIndex[FF9StateSystem.Battle.selectCharPosID]--;
            ff9feqp.FF9FEqp_Equip((Byte)FF9StateSystem.Battle.selectCharPosID, ref HonoluluBattleMain.CurPlayerWeaponIndex[FF9StateSystem.Battle.selectCharPosID]);
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        if (GUILayout.Button(">", new GUILayoutOption[0]))
        {
            HonoluluBattleMain.CurPlayerWeaponIndex[FF9StateSystem.Battle.selectCharPosID]++;
            ff9feqp.FF9FEqp_Equip((Byte)FF9StateSystem.Battle.selectCharPosID, ref HonoluluBattleMain.CurPlayerWeaponIndex[FF9StateSystem.Battle.selectCharPosID]);
            SceneDirector.Replace("BattleMapDebug", SceneTransition.FadeOutToBlack_FadeIn, true);
        }
        GUILayout.EndHorizontal();
        GUILayout.EndScrollView();
        GUILayout.EndVertical();
        GUILayout.EndArea();
    }
Esempio n. 16
0
    private void OnGUI()
    {
        if (this._skipBundleScene)
        {
            return;
        }
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        TextAnchor alignment = GUI.skin.label.alignment;

        GUILayout.BeginArea(fullscreenRect);
        GUILayout.FlexibleSpace();
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical("Box", new GUILayoutOption[0]);
        GUI.skin.label.alignment = TextAnchor.MiddleCenter;
        GUILayout.Label("Asset Bundle Version : " + BundleScene.BundleVersion, new GUILayoutOption[0]);
        GUI.skin.label.alignment = TextAnchor.MiddleLeft;
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        Single     width    = fullscreenRect.width * 3f / 4f;
        Single     height   = fullscreenRect.height * 3f / 4f;
        GUIContent content  = new GUIContent("SSKK Server");
        GUIStyle   guistyle = new GUIStyle(GUI.skin.button);
        Single     num      = guistyle.CalcHeight(content, width);

        this._scrollPosition = GUILayout.BeginScrollView(this._scrollPosition, new GUILayoutOption[]
        {
            GUILayout.Width(width),
            GUILayout.Height(height)
        });
        if (!this._isDownloading)
        {
            if (GUILayout.Button("SSKK Server", new GUILayoutOption[]
            {
                GUILayout.Height(num * 2f)
            }))
            {
                this._UsingAssetBundlesFromSSKK();
            }
            if (GUILayout.Button("Clear Cache", new GUILayoutOption[]
            {
                GUILayout.Height(num * 2f)
            }))
            {
                this._ClearCache();
            }
            GUILayout.Label(" ", new GUILayoutOption[0]);
            if (Application.isEditor && GUILayout.Button("Disable Bundles", new GUILayoutOption[]
            {
                GUILayout.Height(num * 2.5f)
            }))
            {
                Int32 num2 = BundleScene.BundleVersionInt;
                UnityEngine.Debug.Log("version = " + num2);
                this._DisableAssetBundles();
            }
            if (GUILayout.Button("SST Server", new GUILayoutOption[]
            {
                GUILayout.Height(num * 2f)
            }))
            {
                this._UsingAssetBundlesFromSST();
            }
            if (GUILayout.Button("Local Bundles", new GUILayoutOption[0]))
            {
                this._UsingAssetBundlesFromLocal();
            }
            if (GUILayout.Button("Local UNC Bundles", new GUILayoutOption[0]))
            {
                this._UsingUncompressedAssetBundlesFromLocal();
            }
        }
        if (Application.isEditor)
        {
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            AssetManager.ForceUseBundles = GUILayout.Toggle(AssetManager.ForceUseBundles, "[Forced to use Bundles]", new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
        }
        GUILayout.Label(this._statusText, new GUILayoutOption[0]);
        GUILayout.Label("    =========================", new GUILayoutOption[0]);
        GUILayout.Label(this._logOutput.ToString(), new GUILayoutOption[0]);
        GUILayout.EndScrollView();
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.EndHorizontal();
        GUILayout.FlexibleSpace();
        GUILayout.EndArea();
        GUI.skin.label.alignment = alignment;
    }
Esempio n. 17
0
        private void OnGUI()
        {
            Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

            DebugGuiSkin.ApplySkin();
            GUILayout.BeginArea(fullscreenRect);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.BeginHorizontal("box", new GUILayoutOption[0]);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            this.soundPanelScrollPosition = GUILayout.BeginScrollView(this.soundPanelScrollPosition, new GUILayoutOption[]
            {
                GUILayout.Width(fullscreenRect.width),
                GUILayout.Height(fullscreenRect.height * 0.45f)
            });
            this.BuildSoundName();
            this.BuildPlayer();
            this.BuildVolumeSlider();
            this.BuildSeeker();
            this.BuildAdjustment();
            GUILayout.EndScrollView();
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
            GUILayout.FlexibleSpace();
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            if (GUILayout.Button("Sound Effect", new GUILayoutOption[0]))
            {
                this.soundViewController.SetActiveSoundType(SoundProfileType.SoundEffect);
            }
            if (GUILayout.Button("BGM", new GUILayoutOption[0]))
            {
                this.soundViewController.SetActiveSoundType(SoundProfileType.Music);
                this.soundViewController.SetMusicPanning(this.PanningPosition);
                this.soundViewController.SetMusicPitch(this.PitchPosition);
                this.soundViewController.SetMusicVolume(this.SoundVolume);
            }
            if (GUILayout.Button("Song", new GUILayoutOption[0]))
            {
                this.soundViewController.SetActiveSoundType(SoundProfileType.Song);
            }
            if (GUILayout.Button("Sfx Sound", new GUILayoutOption[0]))
            {
                this.soundViewController.SetActiveSoundType(SoundProfileType.Sfx);
            }
            if (GUILayout.Button("Movie Audio", new GUILayoutOption[0]))
            {
                this.soundViewController.SetActiveSoundType(SoundProfileType.MovieAudio);
            }
            GUILayout.BeginVertical("Box", new GUILayoutOption[0]);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            if (GUILayout.Button("<", new GUILayoutOption[0]))
            {
                this.soundViewController.PreviousPlayList();
            }
            GUILayout.Label(this.soundViewController.PlaylistInfo, new GUILayoutOption[0]);
            if (GUILayout.Button(">", new GUILayoutOption[0]))
            {
                this.soundViewController.NextPlayList();
            }
            GUILayout.EndHorizontal();
            GUILayout.Label(this.soundViewController.PlaylistDetail, new GUILayoutOption[0]);
            GUILayout.EndVertical();
            GUILayout.EndVertical();
            GUILayout.BeginHorizontal("box", new GUILayoutOption[0]);
            if (this.soundViewController.GetActiveSoundType() == SoundProfileType.Sfx)
            {
                this.BuildSfxSoundSelector();
            }
            else
            {
                this.BuildSoundSelector();
            }
            GUILayout.EndHorizontal();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
            GUILayout.EndArea();
        }
Esempio n. 18
0
    private void OnAutoLayout()
    {
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        DebugGuiSkin.ApplySkin();
        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        this.DrawLeftMenu();
        GUILayout.EndVertical();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        if (this.showWorldStateMenu)
        {
            Single width  = fullscreenRect.width * 2.5f / 5f;
            Single height = fullscreenRect.height;
            if (this.showWorldMapStateMenu)
            {
                this.showWorldMapStateMenuScrollPosition = GUILayout.BeginScrollView(this.showWorldMapStateMenuScrollPosition, new GUILayoutOption[]
                {
                    GUILayout.Width(width),
                    GUILayout.Height(height)
                });
                this.DrawWorldMapStateMenu();
                GUILayout.EndScrollView();
            }
            if (this.showSetPositionMenu)
            {
                this.showWorldMapStateMenuScrollPosition = GUILayout.BeginScrollView(this.showWorldMapStateMenuScrollPosition, new GUILayoutOption[]
                {
                    GUILayout.Width(width),
                    GUILayout.Height(height)
                });
                this.DrawSetPositionMenu();
                GUILayout.EndScrollView();
            }
        }
        GUILayout.EndVertical();
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        if (this.showRightMenu && GUILayout.Button("World State", new GUILayoutOption[0]))
        {
            this.showWorldStateMenu = !this.showWorldStateMenu;
        }
        GUILayout.EndHorizontal();
        GUILayout.BeginHorizontal(new GUILayoutOption[0]);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        if (this.showWorldStateMenu)
        {
            this.DrawRightMenu();
        }
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
        GUILayout.EndHorizontal();
        GUILayout.EndArea();
    }
Esempio n. 19
0
    public void OnGUI()
    {
        if (this._state != 3)
        {
            Matrix4x4 matrix = GUI.matrix;
            Color     color  = GUI.color;
            Color     black  = Color.black;
            black.a   = 0.75f;
            GUI.color = black;
            GUI.DrawTexture(new Rect(0f, 0f, (Single)Screen.width, (Single)Screen.height), this._screenTex, ScaleMode.StretchToFill, true);
            GUI.color  = color;
            GUI.matrix = matrix;
        }
        Rect fullscreenRect = DebugGuiSkin.GetFullscreenRect();

        GUILayout.BeginArea(fullscreenRect);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUILayout.Label(this._title, new GUILayoutOption[0]);
        if (Event.current.type == EventType.Repaint)
        {
            this._titleRect = GUILayoutUtility.GetLastRect();
        }
        this._scrollPosition = GUILayout.BeginScrollView(this._scrollPosition, new GUILayoutOption[]
        {
            GUILayout.Width(fullscreenRect.width),
            GUILayout.Height(fullscreenRect.height - this._titleRect.height)
        });
        if (this._state == 1)
        {
            if (this._logCounter > 0 && this._logTypes.Count > 0)
            {
                GUILayout.BeginVertical(new GUILayoutOption[0]);
                LinkedListNode <LogType> linkedListNode  = this._logTypes.First;
                LinkedListNode <String>  linkedListNode2 = this._logs.First;
                LinkedListNode <String>  linkedListNode3 = this._stackTraces.First;
                this._logMsgs.Length = 0;
                Color   contentColor = GUI.contentColor;
                LogType value        = linkedListNode.Value;
                this._SetLogContentColor(value);
                do
                {
                    if (linkedListNode.Value != value)
                    {
                        if (this._logMsgs.Length > 0)
                        {
                            GUILayout.Label(this._logMsgs.ToString(), new GUILayoutOption[0]);
                            this._logMsgs.Length = 0;
                        }
                        value = linkedListNode.Value;
                        this._SetLogContentColor(value);
                    }
                    else if (this._logMsgs.Length > 4096)
                    {
                        GUILayout.Label(this._logMsgs.ToString(), new GUILayoutOption[0]);
                        this._logMsgs.Length = 0;
                    }
                    else if (this._logMsgs.Length > 0)
                    {
                        this._logMsgs.AppendLine();
                        this._logMsgs.AppendLine();
                    }
                    this._logMsgs.Append(linkedListNode2.Value);
                    this._logMsgs.AppendLine();
                    this._logMsgs.Append(linkedListNode3.Value);
                    linkedListNode  = linkedListNode.Next;
                    linkedListNode2 = linkedListNode2.Next;
                    linkedListNode3 = linkedListNode3.Next;
                }while (linkedListNode != null);
                GUILayout.Label(this._logMsgs.ToString(), new GUILayoutOption[0]);
                GUI.contentColor = contentColor;
                GUILayout.EndVertical();
            }
        }
        else if (this._state == 2 || this._state == 3)
        {
            if (this._elapseTime >= 0.5f)
            {
                this._BuildProfilerStatsString();
                this._elapseTime = 0f;
            }
            GUILayout.Label(this._stats.ToString(), new GUILayoutOption[0]);
            if (this._state == 2)
            {
                GUILayout.Label(this._staticMsgs.ToString(), new GUILayoutOption[0]);
            }
            if (this._staticMsgs.Length > 4096)
            {
                this._staticMsgs.Length = 0;
            }
        }
        GUILayout.EndScrollView();
        GUILayout.EndVertical();
        GUILayout.EndArea();
    }