mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +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"))
|
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = 0.1f,
|
Scale = new Vector2(0.1f),
|
||||||
PositionMode = InheritMode.Y,
|
PositionMode = InheritMode.Y,
|
||||||
Position = new Vector2(h.Position, -0.1f)
|
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.Containers;
|
||||||
using osu.Framework.Graphics.Drawables;
|
using osu.Framework.Graphics.Drawables;
|
||||||
using osu.Game.Beatmaps.Objects;
|
using osu.Game.Beatmaps.Objects;
|
||||||
|
using OpenTK;
|
||||||
|
|
||||||
namespace osu.Game.GameModes.Play
|
namespace osu.Game.GameModes.Play
|
||||||
{
|
{
|
||||||
@ -18,7 +19,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
base.Load();
|
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"))
|
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = 0.1f,
|
Scale = new Vector2(0.1f),
|
||||||
PositionMode = InheritMode.XY,
|
PositionMode = InheritMode.XY,
|
||||||
Position = new Vector2((float)(h.Column + 0.5) / columns, -0.1f)
|
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.Framework.Graphics.Transformations;
|
||||||
using osu.Game.Beatmaps.Objects;
|
using osu.Game.Beatmaps.Objects;
|
||||||
using osu.Game.Beatmaps.Objects.Osu;
|
using osu.Game.Beatmaps.Objects.Osu;
|
||||||
|
using OpenTK;
|
||||||
|
|
||||||
namespace osu.Game.GameModes.Play.Osu
|
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"))
|
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = 0.1f,
|
Scale = new Vector2(0.1f),
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Position = h.Position
|
Position = h.Position
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
Add(new OsuHitRenderer()
|
Add(new OsuHitRenderer()
|
||||||
{
|
{
|
||||||
Objects = beatmap.HitObjects,
|
Objects = beatmap.HitObjects,
|
||||||
Scale = 0.5f,
|
Scale = new Vector2(0.5f),
|
||||||
Anchor = Anchor.TopLeft,
|
Anchor = Anchor.TopLeft,
|
||||||
Origin = Anchor.TopLeft
|
Origin = Anchor.TopLeft
|
||||||
});
|
});
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
Add(new TaikoHitRenderer()
|
Add(new TaikoHitRenderer()
|
||||||
{
|
{
|
||||||
Objects = beatmap.HitObjects,
|
Objects = beatmap.HitObjects,
|
||||||
Scale = 0.5f,
|
Scale = new Vector2(0.5f),
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight
|
Origin = Anchor.TopRight
|
||||||
});
|
});
|
||||||
@ -60,7 +60,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
Add(new CatchHitRenderer()
|
Add(new CatchHitRenderer()
|
||||||
{
|
{
|
||||||
Objects = beatmap.HitObjects,
|
Objects = beatmap.HitObjects,
|
||||||
Scale = 0.5f,
|
Scale = new Vector2(0.5f),
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft
|
Origin = Anchor.BottomLeft
|
||||||
});
|
});
|
||||||
@ -68,7 +68,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
Add(new ManiaHitRenderer()
|
Add(new ManiaHitRenderer()
|
||||||
{
|
{
|
||||||
Objects = beatmap.HitObjects,
|
Objects = beatmap.HitObjects,
|
||||||
Scale = 0.5f,
|
Scale = new Vector2(0.5f),
|
||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
Origin = Anchor.BottomRight
|
Origin = Anchor.BottomRight
|
||||||
});
|
});
|
||||||
|
@ -71,7 +71,7 @@ namespace osu.Game.GameModes.Play.Taiko
|
|||||||
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
Sprite s = new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = 0.2f,
|
Scale = new Vector2(0.2f),
|
||||||
PositionMode = InheritMode.XY,
|
PositionMode = InheritMode.XY,
|
||||||
Position = new Vector2(1.1f, 0.5f)
|
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"))
|
Add(new Sprite(Game.Textures.Get(@"menu-osu"))
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Scale = 0.2f,
|
Scale = new Vector2(0.2f),
|
||||||
PositionMode = InheritMode.XY,
|
PositionMode = InheritMode.XY,
|
||||||
Position = new Vector2(0.1f, 0.5f),
|
Position = new Vector2(0.1f, 0.5f),
|
||||||
Colour = Color4.Gray
|
Colour = Color4.Gray
|
||||||
|
Loading…
Reference in New Issue
Block a user