예제 #1
0
        /// <summary>
        ///     Creates the progress bar if the user defined it in config.
        /// </summary>
        private void CreateProgressBar()
        {
            if (!ConfigManager.DisplaySongTimeProgress.Value)
            {
                return;
            }

            ProgressBar = new SongTimeProgressBar(Screen, new Vector2(WindowManager.Width, 4), 0, Screen.Map.Length, 0,
                                                  Colors.MainAccentInactive, Colors.MainAccent)
            {
                Parent    = Container,
                Alignment = Alignment.BotLeft
            };
        }
예제 #2
0
        /// <summary>
        ///     Creates the progress bar if the user defined it in config.
        /// </summary>
        private void CreateProgressBar()
        {
            if (!ConfigManager.DisplaySongTimeProgress.Value)
            {
                return;
            }

            var skin = SkinManager.Skin.Keys[Screen.Map.Mode];

            ProgressBar = new SongTimeProgressBar(Screen, new Vector2(WindowManager.Width, 4), 0, Screen.Map.Length / ModHelper.GetRateFromMods(ModManager.Mods), 0,
                                                  skin.SongTimeProgressInactiveColor, skin.SongTimeProgressActiveColor)
            {
                Parent    = Container,
                Alignment = Alignment.BotLeft
            };
        }