Combine settings strings to read from same location

This commit is contained in:
Dean Herbert 2020-09-03 16:32:43 +09:00
parent 2fac0a180e
commit 0d1674ca5e

View File

@ -16,8 +16,8 @@ namespace osu.Game.Overlays
public class SettingsOverlay : SettingsPanel, INamedOverlayComponent public class SettingsOverlay : SettingsPanel, INamedOverlayComponent
{ {
public string IconTexture => "Icons/Hexacons/settings"; public string IconTexture => "Icons/Hexacons/settings";
public string Title => "Settings"; public string Title => "settings";
public string Description => "Change your settings"; public string Description => "Change the way osu! behaves";
protected override IEnumerable<SettingsSection> CreateSections() => new SettingsSection[] protected override IEnumerable<SettingsSection> CreateSections() => new SettingsSection[]
{ {
@ -34,7 +34,7 @@ namespace osu.Game.Overlays
private readonly List<SettingsSubPanel> subPanels = new List<SettingsSubPanel>(); private readonly List<SettingsSubPanel> subPanels = new List<SettingsSubPanel>();
protected override Drawable CreateHeader() => new SettingsHeader("settings", "Change the way osu! behaves"); protected override Drawable CreateHeader() => new SettingsHeader(Title, Description);
protected override Drawable CreateFooter() => new SettingsFooter(); protected override Drawable CreateFooter() => new SettingsFooter();
public SettingsOverlay() public SettingsOverlay()