mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 04:52:57 +08:00
Framework updates.
This commit is contained in:
parent
b6bbea392b
commit
851ef4fbbf
@ -72,7 +72,7 @@ namespace osu.Game.GameModes.Play.Catch
|
||||
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Scale = 0.1f,
|
||||
Scale = new Vector2(0.1f),
|
||||
PositionMode = InheritMode.Y,
|
||||
Position = new Vector2(h.Position, -0.1f)
|
||||
};
|
||||
|
@ -7,6 +7,7 @@ using osu.Framework.Graphics.Batches;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Drawables;
|
||||
using osu.Game.Beatmaps.Objects;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.GameModes.Play
|
||||
{
|
||||
@ -18,7 +19,7 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
base.Load();
|
||||
|
||||
Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.1f, Scale = 0.99f });
|
||||
Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.1f, Scale = new Vector2(0.99f) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ namespace osu.Game.GameModes.Play.Mania
|
||||
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Scale = 0.1f,
|
||||
Scale = new Vector2(0.1f),
|
||||
PositionMode = InheritMode.XY,
|
||||
Position = new Vector2((float)(h.Column + 0.5) / columns, -0.1f)
|
||||
};
|
||||
|
@ -7,6 +7,7 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Game.Beatmaps.Objects;
|
||||
using osu.Game.Beatmaps.Objects.Osu;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.GameModes.Play.Osu
|
||||
{
|
||||
@ -49,7 +50,7 @@ namespace osu.Game.GameModes.Play.Osu
|
||||
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Scale = 0.1f,
|
||||
Scale = new Vector2(0.1f),
|
||||
Alpha = 0,
|
||||
Position = h.Position
|
||||
};
|
||||
|
@ -44,7 +44,7 @@ namespace osu.Game.GameModes.Play
|
||||
Add(new OsuHitRenderer()
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = 0.5f,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.TopLeft,
|
||||
Origin = Anchor.TopLeft
|
||||
});
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.GameModes.Play
|
||||
Add(new TaikoHitRenderer()
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = 0.5f,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight
|
||||
});
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.GameModes.Play
|
||||
Add(new CatchHitRenderer()
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = 0.5f,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft
|
||||
});
|
||||
@ -68,7 +68,7 @@ namespace osu.Game.GameModes.Play
|
||||
Add(new ManiaHitRenderer()
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = 0.5f,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.BottomRight,
|
||||
Origin = Anchor.BottomRight
|
||||
});
|
||||
|
@ -71,7 +71,7 @@ namespace osu.Game.GameModes.Play.Taiko
|
||||
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Scale = 0.2f,
|
||||
Scale = new Vector2(0.2f),
|
||||
PositionMode = InheritMode.XY,
|
||||
Position = new Vector2(1.1f, 0.5f)
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.GameModes.Play.Taiko
|
||||
Add(new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Scale = 0.2f,
|
||||
Scale = new Vector2(0.2f),
|
||||
PositionMode = InheritMode.XY,
|
||||
Position = new Vector2(0.1f, 0.5f),
|
||||
Colour = Color4.Gray
|
||||
|
Loading…
Reference in New Issue
Block a user