mirror of
https://github.com/ppy/osu
synced 2025-02-15 17:47:28 +00:00
Merge remote-tracking branch 'refs/remotes/ppy/master' into kudosu-info
This commit is contained in:
commit
87379a42c8
@ -124,14 +124,12 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
private class ChevronIcon : SpriteIcon
|
||||
{
|
||||
private const int bottom_margin = 2;
|
||||
private const int icon_size = 8;
|
||||
|
||||
public ChevronIcon()
|
||||
{
|
||||
Anchor = Anchor.Centre;
|
||||
Origin = Anchor.Centre;
|
||||
Margin = new MarginPadding { Bottom = bottom_margin };
|
||||
Size = new Vector2(icon_size);
|
||||
Icon = FontAwesome.Solid.ChevronDown;
|
||||
}
|
||||
|
@ -65,16 +65,15 @@ namespace osu.Game.Overlays.Volume
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(20),
|
||||
}
|
||||
});
|
||||
|
||||
Current.ValueChanged += muted =>
|
||||
Current.BindValueChanged(muted =>
|
||||
{
|
||||
icon.Icon = muted.NewValue ? FontAwesome.Solid.VolumeMute : FontAwesome.Solid.VolumeUp;
|
||||
};
|
||||
|
||||
Current.TriggerChange();
|
||||
icon.Size = new Vector2(muted.NewValue ? 18 : 20);
|
||||
icon.Margin = new MarginPadding { Right = muted.NewValue ? 2 : 0 };
|
||||
}, true);
|
||||
}
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
|
@ -138,7 +138,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private RulesetFlow rulesets;
|
||||
private Container rulesetsScale;
|
||||
private Drawable logoContainerSecondary;
|
||||
private Container logoContainerSecondary;
|
||||
private Drawable lazerLogo;
|
||||
|
||||
private GlitchingTriangles triangles;
|
||||
@ -158,7 +158,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
this.game = game;
|
||||
|
||||
InternalChildren = new[]
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
triangles = new GlitchingTriangles
|
||||
{
|
||||
@ -277,7 +277,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
lazerLogo.FadeOut().OnComplete(_ =>
|
||||
{
|
||||
lazerLogo.Expire();
|
||||
logoContainerSecondary.Remove(lazerLogo);
|
||||
lazerLogo.Dispose(); // explicit disposal as we are pushing a new screen and the expire may not get run.
|
||||
|
||||
logo.FadeIn();
|
||||
|
Loading…
Reference in New Issue
Block a user