mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix shear offset not being included in GameplayLeaderboard's own size
This commit is contained in:
@ -14,7 +14,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
{
|
||||
public GameplayLeaderboard()
|
||||
{
|
||||
Width = GameplayLeaderboardScore.EXTENDED_WIDTH;
|
||||
Width = GameplayLeaderboardScore.EXTENDED_WIDTH + GameplayLeaderboardScore.SHEAR_WIDTH;
|
||||
|
||||
Direction = FillDirection.Vertical;
|
||||
|
||||
@ -26,7 +26,12 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
public ILeaderboardScore AddPlayer(User user, bool isTracked)
|
||||
{
|
||||
var drawable = new GameplayLeaderboardScore(user, isTracked);
|
||||
var drawable = new GameplayLeaderboardScore(user, isTracked)
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
};
|
||||
|
||||
base.Add(drawable);
|
||||
drawable.TotalScore.BindValueChanged(_ => Scheduler.AddOnce(sort), true);
|
||||
|
||||
|
Reference in New Issue
Block a user