Пример #1
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);
        }
Пример #2
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);
        }