mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
use SettingSource to define IconTooltip format
This commit is contained in:
@ -21,15 +21,13 @@ 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")]
|
||||
[SettingSource("Extra Lives", "Number of extra lives", "{0} 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;
|
||||
|
Reference in New Issue
Block a user