mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets.Osu.UI;
|
|
using osu.Game.Rulesets.UI;
|
|
using OpenTK;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public class OsuEditRulesetContainer : OsuRulesetContainer
|
|
{
|
|
public OsuEditRulesetContainer(Ruleset ruleset, WorkingBeatmap beatmap, bool isForCurrentRuleset)
|
|
: base(ruleset, beatmap, isForCurrentRuleset)
|
|
{
|
|
}
|
|
|
|
protected override Playfield CreatePlayfield() => new OsuEditPlayfield();
|
|
|
|
protected override Vector2 GetAspectAdjustedSize()
|
|
{
|
|
var aspectSize = DrawSize.X * 0.75f < DrawSize.Y ? new Vector2(DrawSize.X, DrawSize.X * 0.75f) : new Vector2(DrawSize.Y * 4f / 3f, DrawSize.Y);
|
|
return new Vector2(aspectSize.X / DrawSize.X, aspectSize.Y / DrawSize.Y);
|
|
}
|
|
|
|
protected override CursorContainer CreateCursor() => null;
|
|
}
|
|
}
|