mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 05:39:53 +08:00
Replace copy-constructor/method with extension method
This commit is contained in:
@@ -199,7 +199,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
public float TextSize
|
||||
{
|
||||
get => spriteText.Font.Size;
|
||||
set => spriteText.Font = OsuFont.GetFont(spriteText.Font, size: value);
|
||||
set => spriteText.Font = spriteText.Font.With(size: value);
|
||||
}
|
||||
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => backgroundContainer.ReceivePositionalInputAt(screenSpacePos);
|
||||
|
||||
Reference in New Issue
Block a user