Beispiel #1
0
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);

            GUILayout.Label("Pan Time (ms)", styles.SmallLabel);
            PanSpeed = (int)GUILayout.HorizontalSlider(PanSpeed, 0.0f, 10000, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(PanSpeed.ToString(), styles.TextField), out float panSpeed))
            {
                PanSpeed = panSpeed;
            }

            GUILayout.Space(25.0f);
            GUILayout.Label("Enable/Disable Keybind", styles.LargeLabel);
            EnabledKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            if (GUILayout.Button("Save Config", styles.Button))
            {
                SaveConfig();
            }
        }
Beispiel #2
0
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Enable Features", styles.LargeLabel);
            NoteStreakEnabled      = GUILayout.Toggle(NoteStreakEnabled, "Note Streak", styles.Toggle);
            HotStartEnabled        = GUILayout.Toggle(HotStartEnabled, "Hot Start", styles.Toggle);
            StarPowerActiveEnabled = GUILayout.Toggle(StarPowerActiveEnabled, "Star Power Active", styles.Toggle);
            GUILayout.Label("Prevents the labels from fading out", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });

            if (GUILayout.Button("Test Indicator", styles.Button))
            {
                ComboIndicator.Instance.CreateDancingText("Here is a test!", true);
            }

            GUILayout.Space(25.0f);
            Indicator.ConfigureGUI(styles);
        }
Beispiel #3
0
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);
            FC      = GUILayout.Toggle(FC, "FC Mode", styles.Toggle);
            GUILayout.Label("Note Miss Limit (inclusive)", styles.SmallLabel);
            NotesMissed = (int)GUILayout.HorizontalSlider(NotesMissed, 0.0f, 100.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (int.TryParse(GUILayout.TextField(NotesMissed.ToString(), styles.TextField), out int notesMissed))
            {
                NotesMissed = notesMissed;
            }
            GUILayout.Label("Fail Delay Before Restart", styles.SmallLabel);
            FailDelay = GUILayout.HorizontalSlider(FailDelay, 0.0f, 10.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(FailDelay.ToString(), styles.TextField), out float failDelay))
            {
                FailDelay = failDelay;
            }

            GUILayout.Space(25.0f);
            GUILayout.Label("Enable/Disable Keybind", styles.LargeLabel);
            EnabledKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Debugging Tools", styles.LargeLabel);
            LayoutTest = GUILayout.Toggle(LayoutTest, "Test Layout", styles.Toggle);
            GUILayout.Label("Prevents the labels from fading out", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            DraggableLabelsEnabled = GUILayout.Toggle(DraggableLabelsEnabled, "Draggable Labels", styles.Toggle);
            GUILayout.Label("Allows you to drag each label with a window", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            GUILayout.Label("(this disables some options in this window)", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            DisplayImage.DraggableWindowsEnabled       = DraggableLabelsEnabled;
            RemainingNotesLeft.DraggableWindowsEnabled = DraggableLabelsEnabled;
            RestartIndicator.DraggableWindowsEnabled   = DraggableLabelsEnabled;

            GUILayout.Space(25.0f);
            GUILayout.Label("Active Display Indicator", styles.LargeLabel);
            DisplayImage.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Remaining Notes Indicator", styles.LargeLabel);
            RemainingNotesLeft.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Restart Time Indicator", styles.LargeLabel);
            RestartIndicator.ConfigureGUI(styles);
        }
Beispiel #4
0
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);

            GUILayout.Label("Font Size", styles.SmallLabel);
            FontSize = (int)GUILayout.HorizontalSlider(FontSize, 0.0f, 100.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (int.TryParse(GUILayout.TextField(FontSize.ToString(), styles.TextField), out int fontSize))
            {
                FontSize = fontSize;
            }

            GUILayout.Label("Twitch Channel", styles.SmallLabel);
            TwitchChannel = GUILayout.TextField(TwitchChannel, styles.TextField);

            GUILayout.Label("Update Speed (ms)", styles.SmallLabel);
            UpdateSpeed = (int)GUILayout.HorizontalSlider(UpdateSpeed, 0.0f, 10000.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(UpdateSpeed.ToString(), styles.TextField), out float updateSpeed))
            {
                UpdateSpeed = updateSpeed;
            }

            GUILayout.Label("Chat Width", styles.SmallLabel);
            ChatWidth = (int)GUILayout.HorizontalSlider(ChatWidth, 0.0f, Screen.width, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(ChatWidth.ToString(), styles.TextField), out float chatWidth))
            {
                ChatWidth = chatWidth;
            }

            GUILayout.Label("Chat Height", styles.SmallLabel);
            ChatHeight = (int)GUILayout.HorizontalSlider(ChatHeight, 0.0f, Screen.height, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(ChatHeight.ToString(), styles.TextField), out float chatHeight))
            {
                ChatHeight = chatHeight;
            }

            GUILayout.Space(25.0f);
            GUILayout.Label("Enable/Disable Keybind", styles.LargeLabel);
            EnabledKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            if (GUILayout.Button("Save Config", styles.Button))
            {
                SaveConfig();
            }
        }
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);
            GUILayout.Label("Time on-screen", styles.SmallLabel);
            TimeOnScreen = GUILayout.HorizontalSlider(TimeOnScreen, 0.0f, 5.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(TimeOnScreen.ToString(), styles.TextField), out float timeOnScreen))
            {
                TimeOnScreen = timeOnScreen;
            }

            GUILayout.Space(25.0f);
            GUILayout.Label("Enable/Disable Keybind", styles.LargeLabel);
            EnabledKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Debugging Tools", styles.LargeLabel);
            LayoutTest = GUILayout.Toggle(LayoutTest, "Test Layout", styles.Toggle);
            GUILayout.Label("Prevents the labels from fading out", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            DraggableLabelsEnabled = GUILayout.Toggle(DraggableLabelsEnabled, "Draggable Labels", styles.Toggle);
            GUILayout.Label("Allows you to drag each label with a window", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            GUILayout.Label("(this disables some options in this window)", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            AccuracyTime.DraggableWindowsEnabled    = DraggableLabelsEnabled;
            AccuracyMessage.DraggableWindowsEnabled = DraggableLabelsEnabled;
            AverageAccuracy.DraggableWindowsEnabled = DraggableLabelsEnabled;

            GUILayout.Space(25.0f);
            GUILayout.Label("Accuracy Time Indicator", styles.LargeLabel);
            AccuracyTime.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Accuracy Message Indicator", styles.LargeLabel);
            AccuracyMessage.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Average Accuracy Indicator", styles.LargeLabel);
            GUILayout.Label("(this is mostly for testing latency)", new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            });
            AverageAccuracy.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Perfect", styles.LargeLabel);
            ColorPerfect.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Missed", styles.LargeLabel);
            ColorMissed.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Slightly Early", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffSlightlyEarly = GUILayout.HorizontalSlider(CutoffSlightlyEarly, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffSlightlyEarly.ToString(), styles.TextField), out float cutoffSlightlyEarly))
            {
                CutoffSlightlyEarly = cutoffSlightlyEarly;
            }
            ColorSlightlyEarly.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Early", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffEarly = GUILayout.HorizontalSlider(CutoffEarly, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffEarly.ToString(), styles.TextField), out float cutoffEarly))
            {
                CutoffEarly = cutoffEarly;
            }
            ColorEarly.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Very Early", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffVeryEarly = GUILayout.HorizontalSlider(CutoffVeryEarly, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffVeryEarly.ToString(), styles.TextField), out float cutoffVeryEarly))
            {
                CutoffVeryEarly = cutoffVeryEarly;
            }
            ColorVeryEarly.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Slightly Late", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffSlightlyLate = GUILayout.HorizontalSlider(CutoffSlightlyLate, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffSlightlyLate.ToString(), styles.TextField), out float cutoffSlightlyLate))
            {
                CutoffSlightlyLate = cutoffSlightlyLate;
            }
            ColorSlightlyLate.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Late", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffLate = GUILayout.HorizontalSlider(CutoffLate, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffLate.ToString(), styles.TextField), out float cutoffLate))
            {
                CutoffLate = cutoffLate;
            }
            ColorLate.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Colors - Very Late", styles.LargeLabel);
            GUILayout.Label("Cutoff time", styles.SmallLabel);
            CutoffVeryLate = GUILayout.HorizontalSlider(CutoffVeryLate, 0.0f, 0.07f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CutoffVeryLate.ToString(), styles.TextField), out float cutoffVeryLate))
            {
                CutoffVeryLate = cutoffVeryLate;
            }
            ColorVeryLate.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            if (GUILayout.Button("Save Config", styles.Button))
            {
                SaveConfig();
            }
        }
Beispiel #6
0
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            var noteLabelStyle = new GUIStyle(styles.SmallLabel)
            {
                fontStyle = FontStyle.Italic
            };

            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);
            VanillaSplashMessages = GUILayout.Toggle(VanillaSplashMessages, "Vanilla Splash Messages", styles.Toggle);
            DragonforceOverride   = GUILayout.Toggle(Enabled, "DragonForce Override", styles.Toggle);
            AprilFoolsSplashes    = GUILayout.Toggle(Enabled, "April Fools Splashes", styles.Toggle);
            GUILayout.Label("Cycle Time", styles.SmallLabel);
            CycleTime = (float)GUILayout.HorizontalSlider(CycleTime, 0.016f, 120.0f, styles.HorizontalSlider, styles.HorizontalSliderThumb);
            if (float.TryParse(GUILayout.TextField(CycleTime.ToString(), styles.TextField), out float cycleTime))
            {
                CycleTime = cycleTime;
            }
            if (GUILayout.Button("Randomly select new splash"))
            {
                ResetSplashes();
            }

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Splash Messages", styles.LargeLabel);
            GUILayout.Label("Note: Please drop out any user profiles\nbefore typing into these text areas as\ninput will be passed to the background.", noteLabelStyle);
            GUILayout.Space(15.0f);
            bool isMainMenuActive = SceneManager.GetActiveScene().name == "Main Menu";

            for (int i = 0; i < Messages.Count; ++i)
            {
                GUILayout.Label($"#{i + 1}", styles.SmallLabel);
                Messages[i] = GUILayout.TextArea(Messages[i], styles.TextArea);
                if (isMainMenuActive)
                {
                    if (GUILayout.Button("Preview message"))
                    {
                        PreviewMessage(i);
                    }
                }
                GUILayout.BeginHorizontal();
                if (i > 0 && GUILayout.Button("Shift up"))
                {
                    string temp = Messages[i - 1];
                    Messages[i - 1] = Messages[i];
                    Messages[i]     = temp;
                    ShiftUpMessage(i);
                }
                if (i < Messages.Count - 1 && GUILayout.Button("Shift down"))
                {
                    string temp = Messages[i + 1];
                    Messages[i + 1] = Messages[i];
                    Messages[i]     = temp;
                    ShiftDownMessage(i);
                }
                GUILayout.EndHorizontal();
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Delete"))
                {
                    Messages.RemoveAt(i);
                    DeleteMessage(i--);
                }
                if (GUILayout.Button("Insert new"))
                {
                    Messages.Insert(i + 1, "Type your splash message here!");
                    InsertMessage(i);
                }
                GUILayout.EndHorizontal();
                GUILayout.Space(15.0f);
            }
            if (Messages.Count == 0)
            {
                if (GUILayout.Button("Insert"))
                {
                    Messages.Add("Type your splash message here!");
                    InsertMessage(-1);
                }
            }

            GUILayout.Space(25.0f);
            if (GUILayout.Button("Reload Config", styles.Button))
            {
                ReloadConfig();
            }
            if (GUILayout.Button("Save Config", styles.Button))
            {
                SaveConfig();
            }
        }
        public void ConfigureGUI(GUIConfigurationStyles styles)
        {
            GUILayout.Label("Settings", styles.LargeLabel);
            Enabled = GUILayout.Toggle(Enabled, "Enabled", styles.Toggle);

            GUILayout.Space(25.0f);
            GUILayout.Label("Configuration Keybind", styles.LargeLabel);
            ConfigKeyBind.ConfigureGUI(styles);

            GUILayout.Space(25.0f);
            GUILayout.Label("Splash Messages", styles.LargeLabel);
            bool isMainMenuActive = SceneManager.GetActiveScene().name == "Main Menu";

            for (int i = 0; i < Messages.Count; ++i)
            {
                GUILayout.Label($"#{i + 1}", styles.SmallLabel);
                Messages[i] = GUILayout.TextField(Messages[i], styles.TextField);
                if (isMainMenuActive)
                {
                    if (GUILayout.Button("Preview message"))
                    {
                        ChangeActiveTextFunction(Messages[i]);
                    }
                }
                GUILayout.BeginHorizontal();
                if (i > 0 && GUILayout.Button("Shift up"))
                {
                    string temp = Messages[i - 1];
                    Messages[i - 1] = Messages[i];
                    Messages[i]     = temp;
                }
                if (i < Messages.Count - 1 && GUILayout.Button("Shift down"))
                {
                    string temp = Messages[i + 1];
                    Messages[i + 1] = Messages[i];
                    Messages[i]     = temp;
                }
                GUILayout.EndHorizontal();
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Delete"))
                {
                    Messages.RemoveAt(i);
                    --i;
                }
                if (GUILayout.Button("Insert new"))
                {
                    Messages.Insert(i + 1, "Type your splash message here!");
                }
                GUILayout.EndHorizontal();
                GUILayout.Space(15.0f);
            }
            if (Messages.Count == 0)
            {
                if (GUILayout.Button("Insert"))
                {
                    Messages.Add("Type your splash message here!");
                }
            }

            GUILayout.Space(25.0f);
            if (GUILayout.Button("Save Config", styles.Button))
            {
                SaveConfig();
            }
        }