mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:33:21 +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)
|
if (user == null && !showGuestOnNull)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (!openOnClick)
|
if (openOnClick)
|
||||||
|
{
|
||||||
|
return new ClickableAvatar(user)
|
||||||
|
{
|
||||||
|
OpenOnClick = true,
|
||||||
|
ShowUsernameTooltip = showUsernameTooltip,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return new DrawableAvatar(user)
|
return new DrawableAvatar(user)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ClickableAvatar(user)
|
|
||||||
{
|
|
||||||
OpenOnClick = openOnClick,
|
|
||||||
ShowUsernameTooltip = showUsernameTooltip,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user