Move font sizing to base class

This commit is contained in:
Dean Herbert 2021-08-09 16:17:51 +09:00
parent c680012523
commit 7cb743a734
3 changed files with 1 additions and 2 deletions

View File

@ -12,6 +12,7 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
SpriteText.Font = SpriteText.Font.With(size: 14);
Triangles.TriangleScale = 1.5f; Triangles.TriangleScale = 1.5f;
} }

View File

@ -22,7 +22,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
SpriteText.Font = SpriteText.Font.With(size: 14);
Text = "Create room"; Text = "Create room";
isConnected = multiplayerClient.IsConnected.GetBoundCopy(); isConnected = multiplayerClient.IsConnected.GetBoundCopy();

View File

@ -11,7 +11,6 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
SpriteText.Font = SpriteText.Font.With(size: 14);
Text = "Create playlist"; Text = "Create playlist";
} }
} }