1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix missed color during loading.

This commit is contained in:
Huo Yaoyuan 2017-03-07 00:46:36 +08:00
parent 836484ba51
commit 5cd859ecf1

View File

@ -186,6 +186,7 @@ namespace osu.Game.Overlays.Mods
Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both,
Position = new Vector2(1.5f),
Colour = this.Colour
},
foregroundIcon = new ModIcon
{
@ -193,6 +194,7 @@ namespace osu.Game.Overlays.Mods
Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both,
Position = new Vector2(-1.5f),
Colour = this.Colour
},
});
}
@ -203,10 +205,18 @@ namespace osu.Game.Overlays.Mods
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both,
Colour = this.Colour
});
}
}
protected override void LoadComplete()
{
base.LoadComplete();
foreach (ModIcon icon in iconsContainer.Children)
icon.Colour = Colour;
}
public ModButton(Mod m)
{
Direction = FillDirection.Vertical;