Add localisation support to overlay header title/description

This commit is contained in:
Dean Herbert
2021-04-21 14:37:11 +09:00
parent 5c8f562472
commit 31c8586dac
12 changed files with 126 additions and 18 deletions

View File

@ -4,6 +4,7 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
@ -11,10 +12,10 @@ namespace osu.Game.Overlays.Settings
{
public class SettingsHeader : Container
{
private readonly string heading;
private readonly string subheading;
private readonly LocalisableString heading;
private readonly LocalisableString subheading;
public SettingsHeader(string heading, string subheading)
public SettingsHeader(LocalisableString heading, LocalisableString subheading)
{
this.heading = heading;
this.subheading = subheading;