1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 07:49:52 +08:00

Allow non-italic DrawableDate

This commit is contained in:
TheWildTree
2020-02-02 17:10:11 +01:00
Unverified
parent 7e162d9798
commit 030d02594c
+2 -2
View File
@@ -29,9 +29,9 @@ namespace osu.Game.Graphics
}
}
public DrawableDate(DateTimeOffset date, float textSize = OsuFont.DEFAULT_FONT_SIZE)
public DrawableDate(DateTimeOffset date, float textSize = OsuFont.DEFAULT_FONT_SIZE, bool italic = true)
{
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: textSize, italics: true);
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: textSize, italics: italic);
Date = date;
}