Revert "use SettingSource to define IconTooltip format"

This reverts commit 5a6d8f1932.
This commit is contained in:
Liam DeVoe
2020-03-20 16:05:12 -04:00
parent 3d95592130
commit 7bdbdd25f8
8 changed files with 30 additions and 56 deletions

View File

@ -21,13 +21,15 @@ namespace osu.Game.Rulesets.Mods
public override bool Ranked => true;
public override Type[] IncompatibleMods => new[] { typeof(ModHardRock), typeof(ModDifficultyAdjust) };
[SettingSource("Extra Lives", "Number of extra lives", "{0} lives")]
[SettingSource("Extra Lives", "Number of extra lives")]
public Bindable<int> Retries { get; } = new BindableInt(2)
{
MinValue = 0,
MaxValue = 10
};
public override string IconTooltip => $"{Name}{(Retries.IsDefault ? "" : $" ({Retries.Value} lives)")}";
private int retries;
private BindableNumber<double> health;