// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Rulesets.Edit { public abstract class HitObjectComposer : CompositeDrawable { private readonly Ruleset ruleset; public HitObjectComposer(Ruleset ruleset) { this.ruleset = ruleset; RelativeSizeAxes = Axes.Both; } [BackgroundDependencyLoader] private void load(OsuGameBase osuGame) { try { InternalChild = ruleset.CreateRulesetContainerWith(osuGame.Beatmap.Value, true); } catch { } } } }