1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Update usage of the DismissableFlag

This commit is contained in:
Andrei Zavatski 2019-09-12 19:34:58 +03:00
parent 0142fcd07a
commit 99fc13b4d8
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace osu.Game.Tests.Visual.Online
{ {
public override IReadOnlyList<Type> RequiredTypes => new[] public override IReadOnlyList<Type> RequiredTypes => new[]
{ {
typeof(HeaderFlag), typeof(DismissableFlag),
typeof(HeaderTitle), typeof(HeaderTitle),
}; };

View File

@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Rankings
private readonly SpriteText scopeText; private readonly SpriteText scopeText;
private readonly Container flagPlaceholder; private readonly Container flagPlaceholder;
private readonly HeaderFlag flag; private readonly DismissableFlag flag;
public HeaderTitle() public HeaderTitle()
{ {
@ -41,7 +41,7 @@ namespace osu.Game.Overlays.Rankings
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Margin = new MarginPadding { Bottom = flag_margin }, Margin = new MarginPadding { Bottom = flag_margin },
Child = flag = new HeaderFlag Child = flag = new DismissableFlag
{ {
Size = new Vector2(30, 20), Size = new Vector2(30, 20),
}, },