mirror of
https://github.com/ppy/osu
synced 2024-12-26 17:02:59 +00:00
Add localisation support for "use relative size" setting label
This commit is contained in:
parent
7d0da79db7
commit
bb4f3c71e0
@ -79,6 +79,11 @@ namespace osu.Game.Localisation.SkinComponents
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString TextColourDescription => new TranslatableString(getKey(@"text_colour_description"), @"The colour of the text.");
|
public static LocalisableString TextColourDescription => new TranslatableString(getKey(@"text_colour_description"), @"The colour of the text.");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Use relative size"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString UseRelativeSize => new TranslatableString(getKey(@"use_relative_size"), @"Use relative size");
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ using osu.Framework.Layout;
|
|||||||
using osu.Framework.Threading;
|
using osu.Framework.Threading;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
|
using osu.Game.Localisation.SkinComponents;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
using osu.Game.Screens.Play.HUD.ArgonHealthDisplayParts;
|
using osu.Game.Screens.Play.HUD.ArgonHealthDisplayParts;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
@ -33,7 +34,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Precision = 1
|
Precision = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
[SettingSource("Use relative size")]
|
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.UseRelativeSize))]
|
||||||
public BindableBool UseRelativeSize { get; } = new BindableBool(true);
|
public BindableBool UseRelativeSize { get; } = new BindableBool(true);
|
||||||
|
|
||||||
private ArgonHealthDisplayBar mainBar = null!;
|
private ArgonHealthDisplayBar mainBar = null!;
|
||||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
[SettingSource(typeof(SongProgressStrings), nameof(SongProgressStrings.ShowTime), nameof(SongProgressStrings.ShowTimeDescription))]
|
[SettingSource(typeof(SongProgressStrings), nameof(SongProgressStrings.ShowTime), nameof(SongProgressStrings.ShowTimeDescription))]
|
||||||
public Bindable<bool> ShowTime { get; } = new BindableBool(true);
|
public Bindable<bool> ShowTime { get; } = new BindableBool(true);
|
||||||
|
|
||||||
[SettingSource("Use relative size")]
|
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.UseRelativeSize))]
|
||||||
public BindableBool UseRelativeSize { get; } = new BindableBool(true);
|
public BindableBool UseRelativeSize { get; } = new BindableBool(true);
|
||||||
|
|
||||||
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
||||||
|
Loading…
Reference in New Issue
Block a user