1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 02:29:54 +08:00

Rename RestoreDefaultValueButton to RevertToDefaultButton

Because I can't find it every time I search.
This commit is contained in:
Dean Herbert
2023-07-13 13:46:50 +09:00
Unverified
parent a891dcd9e6
commit 1bfe5a18cb
7 changed files with 32 additions and 32 deletions
@@ -22,7 +22,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays
{
public partial class RestoreDefaultValueButton<T> : OsuClickableContainer, IHasCurrentValue<T>
public partial class RevertToDefaultButton<T> : OsuClickableContainer, IHasCurrentValue<T>
{
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
@@ -58,7 +58,7 @@ namespace osu.Game.Overlays
private CircularContainer circle = null!;
private Box background = null!;
public RestoreDefaultValueButton()
public RevertToDefaultButton()
: base(HoverSampleSet.Button)
{
}
@@ -103,7 +103,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{
RelativeSizeAxes = Axes.Y,
Width = SettingsPanel.CONTENT_MARGINS,
Child = new RestoreDefaultValueButton<bool>
Child = new RevertToDefaultButton<bool>
{
Current = isDefault,
Action = RestoreDefaults,
+1 -1
View File
@@ -217,7 +217,7 @@ namespace osu.Game.Overlays.Settings
// intentionally done before LoadComplete to avoid overhead.
if (ShowsDefaultIndicator)
{
defaultValueIndicatorContainer.Add(new RestoreDefaultValueButton<T>
defaultValueIndicatorContainer.Add(new RevertToDefaultButton<T>
{
Current = controlWithCurrent.Current,
Anchor = Anchor.Centre,