1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Adjust default sizing to fit a bit better with existing elements

This commit is contained in:
Dean Herbert 2023-03-07 17:00:10 +09:00
parent f7f1dff647
commit d98199961b
2 changed files with 8 additions and 3 deletions

View File

@ -28,9 +28,12 @@ namespace osu.Game.Screens.Play.HUD
private readonly UpdateableAvatar avatar;
private const float default_size = 80f;
public PlayerAvatar()
{
Size = new Vector2(128f);
Size = new Vector2(default_size);
InternalChild = avatar = new UpdateableAvatar(isInteractive: false)
{
RelativeSizeAxes = Axes.Both,
@ -43,7 +46,7 @@ namespace osu.Game.Screens.Play.HUD
base.LoadComplete();
avatar.User = gameplayState.Score.ScoreInfo.User;
CornerRadius.BindValueChanged(e => avatar.CornerRadius = e.NewValue * 128f, true);
CornerRadius.BindValueChanged(e => avatar.CornerRadius = e.NewValue * default_size, true);
}
public bool UsesFixedAnchor { get; set; }

View File

@ -17,9 +17,11 @@ namespace osu.Game.Screens.Play.HUD
private readonly UpdateableFlag flag;
private const float default_size = 40f;
public PlayerFlag()
{
Size = new Vector2(114, 80);
Size = new Vector2(default_size, default_size / 1.4f);
InternalChild = flag = new UpdateableFlag
{
RelativeSizeAxes = Axes.Both,