mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Only hide UpdateableAvatar/Flag immediately
This commit is contained in:
@ -5,6 +5,7 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Effects;
|
||||
using osu.Framework.Graphics.Transforms;
|
||||
|
||||
namespace osu.Game.Users.Drawables
|
||||
{
|
||||
@ -51,17 +52,14 @@ namespace osu.Game.Users.Drawables
|
||||
/// </summary>
|
||||
public readonly BindableBool OpenOnClick = new BindableBool(true);
|
||||
|
||||
public UpdateableAvatar(User user = null, bool transformImmediately = false)
|
||||
public UpdateableAvatar(User user = null, bool hideImmediately = false)
|
||||
{
|
||||
TransformImmediately = hideImmediately;
|
||||
User = user;
|
||||
|
||||
if (transformImmediately)
|
||||
{
|
||||
TransformDuration = 0;
|
||||
TransformImmediately = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override TransformSequence<Drawable> ApplyHideTransforms(Drawable drawable) => TransformImmediately ? drawable?.FadeOut() : base.ApplyHideTransforms(drawable);
|
||||
|
||||
protected override Drawable CreateDrawable(User user)
|
||||
{
|
||||
if (user == null && !ShowGuestOnNull)
|
||||
|
Reference in New Issue
Block a user