public Beatmap() { GeneralSection = new GeneralSection(); EditorSection = new EditorSection(); MetadataSection = new MetadataSection(); DifficultySection = new DifficultySection(); EventsSection = new EventsSection(); }
public OsuBeatmap(Qua qua, Arguments args) { GeneralSection = new GeneralSection(qua, args); EditorSection = new EditorSection(qua, args); MetadataSection = new MetadataSection(qua, args); DifficultySection = new DifficultySection(qua, args); EventsSection = new EventsSection(qua, args); TimingPointsSection = new TimingPointsSection(qua, args); HitObjectsSection = new HitObjectsSection(qua, args); }
void InitSections() { sections = new List <EditorSection> (); windowSettings = new EditorSection(new Rect(0, 0, position.width, 40), new Color(0.25f, 0.25f, 0.25f, 1.0000f)); setUpSettings = new EditorSection(new Rect(position.width - 450, windowSettings.GetRect().height, 450, position.height - windowSettings.GetRect().height - 100), new Color(0.4f, 0.4f, 0.4f, 1.0f)); body = new EditorSection(new Rect(0, windowSettings.GetRect().height, position.width - setUpSettings.GetRect().width, position.height - windowSettings.GetRect().height), new Color(0.7f, 0.7f, 0.7f, 1.0000f)); textureInfoSection = new EditorSection(new Rect(body.GetRect().width, setUpSettings.GetRect().height + windowSettings.GetRect().height, setUpSettings.GetRect().width, position.height - setUpSettings.GetRect().height - windowSettings.GetRect().height), new Color(0.55f, 0.55f, 0.55f, 1.0f)); sections.Add(windowSettings); sections.Add(body); sections.Add(setUpSettings); sections.Add(textureInfoSection); setUpScrollView = new Vector2(setUpSettings.GetRect().x + borderSize / 2, setUpSettings.GetRect().y); }
public static List <string> EditorSection(EditorSection section) { var list = 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); }