mirror of
https://github.com/osukey/osukey.git
synced 2025-07-04 01:40:02 +09:00
Adjust sprite texts in-line with framework changes
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Users;
|
||||
@ -30,21 +31,14 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
|
||||
public float TextSize
|
||||
{
|
||||
set
|
||||
{
|
||||
if (text.TextSize == value) return;
|
||||
text.TextSize = value;
|
||||
}
|
||||
get { return text.TextSize; }
|
||||
get => text.Font.Size;
|
||||
set => text.Font = OsuFont.GetFont(text.Font, size: value);
|
||||
}
|
||||
|
||||
public ClickableUsername()
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Child = text = new OsuSpriteText
|
||||
{
|
||||
Font = @"Exo2.0-BoldItalic",
|
||||
};
|
||||
Child = text = new OsuSpriteText { Font = OsuFont.GetFont(weight: FontWeight.Bold, italics: true) };
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
|
Reference in New Issue
Block a user