mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Simplify child definition
This commit is contained in:
parent
ddd59382e2
commit
a827fb51bc
@ -180,12 +180,15 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Texture = textures.Get(badge.ImageUrl),
|
Texture = textures.Get(badge.ImageUrl),
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
OnLoadComplete = d => d.FadeInFromZero(200)
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
Child.FadeInFromZero(200);
|
||||||
|
}
|
||||||
|
|
||||||
public string TooltipText => badge.Description;
|
public string TooltipText => badge.Description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user