private static List <string> ColoursSection(SkinColoursSection section) { var list = WriteHelper.BaseListFormat("Colours"); for (int i = 0; i < section.ComboColours.Count; i++) { list.Add($"Combo{i + 1} : {WriteHelper.Colour(section.ComboColours[i])}"); } list.AddRange(new string[] { $"InputOverlayText: {WriteHelper.Colour(section.InputOverlayText)}", $"MenuGlow: {WriteHelper.Colour(section.MenuGlow)}", $"SliderBall: {WriteHelper.Colour(section.SliderBall)}", $"SliderBorder: {WriteHelper.Colour(section.SliderBorder)}" }); if (section.SliderTrackOverride != default) { list.Add($"SliderTrackOverride: {WriteHelper.Colour(section.SliderTrackOverride)}"); } list.AddRange(new string[] { $"SongSelectActiveText: {WriteHelper.Colour(section.SongSelectActiveText)}", $"SongSelectInactiveText: {WriteHelper.Colour(section.SongSelectInactiveText)}", $"SpinnerBackground: {WriteHelper.Colour(section.SpinnerBackground)}", $"StarBreakAdditive: {WriteHelper.Colour(section.StarBreakAdditive)}" }); return(list); }
public static List <string> Colours(BeatmapColoursSection section) { if (section.ComboColours.Count == 0 && section.SliderTrackOverride == default && section.SliderBorder == default) { return(new List <string>()); } var list = WriteHelper.BaseListFormat("Colours"); if (section.ComboColours != null) { for (int i = 0; i < section.ComboColours.Count; i++) { list.Add($"Combo{i + 1} : {WriteHelper.Colour(section.ComboColours[i])}"); } } if (section.SliderTrackOverride != default) { list.Add($"SliderTrackOverride : {WriteHelper.Colour(section.SliderTrackOverride)}"); } if (section.SliderBorder != default) { list.Add($"SliderBorder : {WriteHelper.Colour(section.SliderBorder)}"); } return(list); }
public static List <string> HitObjects(List <HitObject> hitObjects) { var list = WriteHelper.BaseListFormat("HitObjects"); if (hitObjects != null) { list.AddRange(hitObjects.ConvertAll(obj => WriteHelper.HitObject(obj))); } return(list); }
private static List <string> FontsSection(SkinFontsSection section) { var list = WriteHelper.BaseListFormat("Fonts"); list.AddRange(new string[] { $"HitCirclePrefix: {section.HitCirclePrefix}", $"HitCircleOverlap: {section.HitCircleOverlap.Format()}", $"ScorePrefix: {section.ScorePrefix}", $"ScoreOverlap: {section.ScoreOverlap.Format()}", $"ComboPrefix: {section.ComboPrefix}", $"ComboOverlap: {section.ComboOverlap.Format()}", }); return(list); }
public static List <string> TimingPoints(List <TimingPoint> timingPoints) { if (timingPoints.Count == 0) { return(new List <string>()); } var list = WriteHelper.BaseListFormat("TimingPoints"); if (timingPoints != null) { list.AddRange(timingPoints.ConvertAll(point => WriteHelper.TimingPoint(point))); } list.Add(string.Empty); //osu!stable adds an extra blank line after timing points. return(list); }
private static List <string> CatchTheBeatSection(SkinCatchTheBeatSection section) { var list = WriteHelper.BaseListFormat("CatchTheBeat"); list.Add($"HyperDash: {WriteHelper.Colour(section.HyperDash)}"); if (section.HyperDashFruit != section.HyperDash) { list.Add($"HyperDashFruit: {WriteHelper.Colour(section.HyperDashFruit)}"); } if (section.HyperDashAfterImage != section.HyperDash) { list.Add($"HyperDashAfterImage: {WriteHelper.Colour(section.HyperDashAfterImage)}"); } return(list); }
public static List <string> EditorSection(BeatmapEditorSection section) { var list = WriteHelper.BaseListFormat("Editor"); if (section.Bookmarks != null) { list.Add("Bookmarks: " + section.BookmarksString); } list.AddRange(new List <string> { "DistanceSpacing: " + section.DistanceSpacing.Format(), "BeatDivisor: " + section.BeatDivisor.Format(), "GridSize: " + section.GridSize.Format(), "TimelineZoom: " + section.TimelineZoom.Format(), }); return(list); }
public static List <string> GeneralSection(BeatmapGeneralSection section) { var list = WriteHelper.BaseListFormat("General"); list.AddRange(new List <string> { "AudioFilename: " + section.AudioFilename, "AudioLeadIn: " + section.AudioLeadIn, "PreviewTime: " + section.PreviewTime, "Countdown: " + section.Countdown.ToInt32(), "SampleSet: " + section.SampleSet, "StackLeniency: " + section.StackLeniency.Format(), "Mode: " + (int)section.Mode, "LetterboxInBreaks: " + section.LetterboxInBreaks.ToInt32() }); if (section.StoryFireInFront) { list.Add("StoryFireInFront: " + section.StoryFireInFront.ToInt32()); } if (section.UseSkinSprites) { list.Add("UseSkinSprites: " + section.UseSkinSprites.ToInt32()); } if (section.EpilepsyWarning) { list.Add("EpilepsyWarning: " + section.EpilepsyWarning.ToInt32()); } if (section.Mode == Enums.Ruleset.Mania) { list.Add("SpecialStyle: " + section.SpecialStyle.ToInt32()); } list.Add("WidescreenStoryboard: " + section.WidescreenStoryboard.ToInt32()); return(list); }
public static List <string> EventsSection(BeatmapEventsSection section) { var list = WriteHelper.BaseListFormat("Events"); list.AddRange(new List <string> { @"//Background and Video events", $"0,0,\"{section.BackgroundImage}\",0,0", }); if (section.Video != null) { list.Add($"Video,{section.VideoOffset},\"{section.Video}\""); } list.Add(@"//Break Periods"); if (section.Breaks.Any()) { list.AddRange(section.Breaks.ConvertAll(b => $"2,{b.StartTime},{b.EndTime}")); } list.Add(@"//Storyboard Layer 0 (Background)"); section.Storyboard.BackgroundLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, StoryboardLayer.Background))); list.Add(@"//Storyboard Layer 1 (Fail)"); section.Storyboard.FailLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, StoryboardLayer.Fail))); list.Add(@"//Storyboard Layer 2 (Pass)"); section.Storyboard.PassLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, StoryboardLayer.Pass))); list.Add(@"//Storyboard Layer 3 (Foreground)"); section.Storyboard.ForegroundLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, StoryboardLayer.Foreground))); list.Add(@"//Storyboard Layer 4 (Overlay)"); section.Storyboard.OverlayLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, StoryboardLayer.Overlay))); list.Add(@"//Storyboard Sound Samples"); section.Storyboard.SamplesLayer.ForEach(sbObject => list.AddRange(WriteHelper.StoryboardObject(sbObject, (sbObject as Storyboards.Objects.StoryboardSample).Layer))); return(list); }