mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Move DrawableStoryboard
's aspect application to inside its own class
This commit is contained in:
parent
6263ebf9da
commit
e3507d5453
@ -58,6 +58,9 @@ namespace osu.Game.Storyboards.Drawables
|
||||
{
|
||||
Storyboard = storyboard;
|
||||
Size = new Vector2(640, 480);
|
||||
|
||||
Width = Height * (storyboard.BeatmapInfo.WidescreenStoryboard ? 16 / 9f : 4 / 3f);
|
||||
|
||||
Anchor = Anchor.Centre;
|
||||
Origin = Anchor.Centre;
|
||||
|
||||
|
@ -85,12 +85,8 @@ namespace osu.Game.Storyboards
|
||||
}
|
||||
}
|
||||
|
||||
public DrawableStoryboard CreateDrawable(WorkingBeatmap working = null)
|
||||
{
|
||||
var drawable = new DrawableStoryboard(this);
|
||||
drawable.Width = drawable.Height * (BeatmapInfo.WidescreenStoryboard ? 16 / 9f : 4 / 3f);
|
||||
return drawable;
|
||||
}
|
||||
public DrawableStoryboard CreateDrawable(WorkingBeatmap working = null) =>
|
||||
new DrawableStoryboard(this);
|
||||
|
||||
public Drawable CreateSpriteFromResourcePath(string path, TextureStore textureStore)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user