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:
+2
-2
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user