mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Rewrite conditional to be more 'balanced'
This commit is contained in:
parent
b01cf5c937
commit
2838a3a961
@ -69,20 +69,22 @@ namespace osu.Game.Users.Drawables
|
||||
if (user == null && !showGuestOnNull)
|
||||
return null;
|
||||
|
||||
if (!openOnClick)
|
||||
if (openOnClick)
|
||||
{
|
||||
return new ClickableAvatar(user)
|
||||
{
|
||||
OpenOnClick = true,
|
||||
ShowUsernameTooltip = showUsernameTooltip,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
return new DrawableAvatar(user)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
}
|
||||
|
||||
return new ClickableAvatar(user)
|
||||
{
|
||||
OpenOnClick = openOnClick,
|
||||
ShowUsernameTooltip = showUsernameTooltip,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user