Beispiel #1
0
        //public List<SkinManiaSection> ManiaSections { get; set; }

        public Skin()
        {
            GeneralSection      = new SkinGeneralSection();
            ColoursSection      = new SkinColoursSection();
            FontsSection        = new SkinFontsSection();
            CatchTheBeatSection = new SkinCatchTheBeatSection();
            //ManiaSections = new List<SkinManiaSection>();
        }
Beispiel #2
0
        private static List <string> GeneralSection(SkinGeneralSection section)
        {
            var list = new List <string>(new string[]
            {
                "[General]",
                $"Author: {section.Author}",
                $"Name: {section.Name}",
                $"Version: {(section.IsLatestVersion ? "latest" : section.Version.Format())}",
                $"AnimationFramerate: {section.AnimationFramerate.Format()}",
                $"AllowSliderBallTint: {section.AllowSliderBallTint.ToInt32()}",
                $"ComboBurstRandom: {section.ComboBurstRandom.ToInt32()}",
                $"CursorCentre: {section.CursorCentre.ToInt32()}",
                $"CursorExpand: {section.CursorExpand.ToInt32()}",
                $"CursorRotate: {section.CursorRotate.ToInt32()}",
                $"CursorTrailRotate: {section.CursorTrailRotate.ToInt32()}"
            });

            if (section.CustomComboBurstSounds.Any())
            {
                list.Add($"CustomComboBurstSounds: {section.CustomComboBurstSounds.Join(',')}");
            }

            list.AddRange(new string[]
            {
                $"HitCircleOverlayAboveNumber: {section.HitCircleOverlayAboveNumber.ToInt32()}",
                $"LayeredHitSounds: {section.LayeredHitSounds.ToInt32()}",
                $"SliderBallFlip: {section.SliderBallFlip.ToInt32()}",
                $"SliderBallFrames: {section.SliderBallFrames.Format()}",
                $"SliderStyle: {section.SliderStyle.Format()}",
                $"SpinnerFadePlayfield: {section.SpinnerFadePlayfield.ToInt32()}",
                $"SpinnerFrequencyModulate: {section.SpinnerFrequencyModulate.ToInt32()}",
                $"SpinnerNoBlink: {section.SpinnerNoBlink.ToInt32()}",
            });

            return(list);
        }