mirror of
https://github.com/osukey/osukey.git
synced 2025-06-26 21:58:04 +09: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 class FilterTabItem : TabItem<T>
|
||||||
{
|
{
|
||||||
protected virtual float TextSize() => 13;
|
protected virtual float TextSize => 13;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OverlayColourProvider colourProvider { get; set; }
|
private OverlayColourProvider colourProvider { get; set; }
|
||||||
@ -55,7 +55,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
text = new OsuSpriteText
|
text = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: TextSize(), weight: FontWeight.Regular),
|
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Regular),
|
||||||
Text = GetText(value)
|
Text = GetText(value)
|
||||||
},
|
},
|
||||||
new HoverClickSounds()
|
new HoverClickSounds()
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override float TextSize() => 10;
|
protected override float TextSize => 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user