mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 11:12:57 +08:00
Merge branch 'master' into fix-duplicate-channels
This commit is contained in:
commit
71b14bb8af
@ -46,6 +46,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
private Color4 backgroundActive;
|
private Color4 backgroundActive;
|
||||||
|
|
||||||
private readonly SpriteText text;
|
private readonly SpriteText text;
|
||||||
|
private readonly SpriteText textBold;
|
||||||
private readonly Box box;
|
private readonly Box box;
|
||||||
private readonly Box highlightBox;
|
private readonly Box highlightBox;
|
||||||
|
|
||||||
@ -77,7 +78,9 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
box.FadeColour(backgroundActive, transition_length, EasingTypes.OutQuint);
|
box.FadeColour(backgroundActive, transition_length, EasingTypes.OutQuint);
|
||||||
highlightBox.FadeIn(transition_length, EasingTypes.OutQuint);
|
highlightBox.FadeIn(transition_length, EasingTypes.OutQuint);
|
||||||
text.Font = @"Exo2.0-Bold";
|
|
||||||
|
text.FadeOut(transition_length, EasingTypes.OutQuint);
|
||||||
|
textBold.FadeIn(transition_length, EasingTypes.OutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fadeInactive()
|
private void fadeInactive()
|
||||||
@ -86,7 +89,9 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
box.FadeColour(backgroundInactive, transition_length, EasingTypes.OutQuint);
|
box.FadeColour(backgroundInactive, transition_length, EasingTypes.OutQuint);
|
||||||
highlightBox.FadeOut(transition_length, EasingTypes.OutQuint);
|
highlightBox.FadeOut(transition_length, EasingTypes.OutQuint);
|
||||||
text.Font = @"Exo2.0-Regular";
|
|
||||||
|
text.FadeIn(transition_length, EasingTypes.OutQuint);
|
||||||
|
textBold.FadeOut(transition_length, EasingTypes.OutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(InputState state)
|
protected override bool OnHover(InputState state)
|
||||||
@ -172,6 +177,16 @@ namespace osu.Game.Overlays.Chat
|
|||||||
Text = value.ToString(),
|
Text = value.ToString(),
|
||||||
TextSize = 18,
|
TextSize = 18,
|
||||||
},
|
},
|
||||||
|
textBold = new OsuSpriteText
|
||||||
|
{
|
||||||
|
Alpha = 0,
|
||||||
|
Margin = new MarginPadding(5),
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Text = value.ToString(),
|
||||||
|
Font = @"Exo2.0-Bold",
|
||||||
|
TextSize = 18,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user