1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 20:47:26 +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 readonly UpdateableAvatar avatar;
private const float default_size = 80f;
public PlayerAvatar() public PlayerAvatar()
{ {
Size = new Vector2(128f); Size = new Vector2(default_size);
InternalChild = avatar = new UpdateableAvatar(isInteractive: false) InternalChild = avatar = new UpdateableAvatar(isInteractive: false)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -43,7 +46,7 @@ namespace osu.Game.Screens.Play.HUD
base.LoadComplete(); base.LoadComplete();
avatar.User = gameplayState.Score.ScoreInfo.User; 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; } public bool UsesFixedAnchor { get; set; }

View File

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