Exemple #1
0
        private void WindowFunction(int windowID)
        {
            GUILayout.BeginHorizontal();
            {
                if (GUILayout.Button("Clear console"))
                {
                    TotalLog = "Log cleared";
                }
                if (GUILayout.Button("Dump scene"))
                {
                    SceneDumper.DumpScene();
                }
            }
            GUILayout.EndHorizontal();

            GUILayout.BeginVertical(GUI.skin.box);
            {
                scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, true);
                {
                    GUILayout.BeginVertical();
                    {
                        GUILayout.FlexibleSpace();
                        GUILayout.TextArea(TotalLog, GUI.skin.label);
                    }
                    GUILayout.EndVertical();
                }
                GUILayout.EndScrollView();
            }
            GUILayout.EndVertical();

            GUI.DragWindow();
        }
Exemple #2
0
        void WindowFunction(int windowID)
        {
            GUI.Label(new Rect(10, 40, 380, 160), TotalLog, new GUIStyle
            {
                alignment = TextAnchor.LowerLeft,
                wordWrap  = true,
                normal    = new GUIStyleState
                {
                    textColor = Color.white
                }
            });

            if (GUI.Button(new Rect(295, 20, 100, 20), "Dump scene"))
            {
                SceneDumper.DumpScene();
            }

            GUI.DragWindow();
        }
Exemple #3
0
        private void WindowFunction(int windowID)
        {
            GUILayout.BeginHorizontal();
            {
                if (GUILayout.Button("Clear console"))
                {
                    TotalLog = "Log cleared";
                }
                if (GUILayout.Button("Dump scene"))
                {
                    SceneDumper.DumpScene();
                }

                BepInExSettings.LogDebug = GUILayout.Toggle(BepInExSettings.LogDebug, "Debug");
                BepInExSettings.LogInfo  = GUILayout.Toggle(BepInExSettings.LogInfo, "Info");
                BepInExSettings.LogUnity = GUILayout.Toggle(BepInExSettings.LogUnity, "Unity");
            }
            GUILayout.EndHorizontal();

            GUILayout.BeginVertical(GUI.skin.box);
            {
                scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, true);
                {
                    GUILayout.BeginVertical();
                    {
                        GUILayout.FlexibleSpace();
                        GUILayout.TextArea(TotalLog, GUI.skin.label);
                    }
                    GUILayout.EndVertical();
                }
                GUILayout.EndScrollView();
            }
            GUILayout.EndVertical();

            GUI.DragWindow();
        }