mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Use property instead of function to set text size
This commit is contained in:
parent
e62fec58c1
commit
c85a8a14cc
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
|
||||
protected class FilterTabItem : TabItem<T>
|
||||
{
|
||||
protected virtual float TextSize() => 13;
|
||||
protected virtual float TextSize => 13;
|
||||
|
||||
[Resolved]
|
||||
private OverlayColourProvider colourProvider { get; set; }
|
||||
@ -55,7 +55,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
{
|
||||
text = new OsuSpriteText
|
||||
{
|
||||
Font = OsuFont.GetFont(size: TextSize(), weight: FontWeight.Regular),
|
||||
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Regular),
|
||||
Text = GetText(value)
|
||||
},
|
||||
new HoverClickSounds()
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
{
|
||||
}
|
||||
|
||||
protected override float TextSize() => 10;
|
||||
protected override float TextSize => 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user