Rename to WarningText

This commit is contained in:
Dean Herbert
2021-05-05 16:16:02 +09:00
parent 6178f38c95
commit 1288f69fad
4 changed files with 10 additions and 10 deletions

View File

@ -147,7 +147,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
const string not_fullscreen_note = "Running without fullscreen mode will increase your input latency!"; const string not_fullscreen_note = "Running without fullscreen mode will increase your input latency!";
windowModeDropdown.NoteText = mode.NewValue != WindowMode.Fullscreen ? not_fullscreen_note : string.Empty; windowModeDropdown.WarningText = mode.NewValue != WindowMode.Fullscreen ? not_fullscreen_note : string.Empty;
}, true); }, true);
windowModes.BindCollectionChanged((sender, args) => windowModes.BindCollectionChanged((sender, args) =>

View File

@ -48,7 +48,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
{ {
const string unlimited_frames_note = "Using unlimited frame limiter can lead to stutters, bad performance and overheating. It will not improve perceived latency. \"2x refresh rate\" is recommended."; const string unlimited_frames_note = "Using unlimited frame limiter can lead to stutters, bad performance and overheating. It will not improve perceived latency. \"2x refresh rate\" is recommended.";
frameLimiterDropdown.NoteText = limit.NewValue == FrameSync.Unlimited ? unlimited_frames_note : string.Empty; frameLimiterDropdown.WarningText = limit.NewValue == FrameSync.Unlimited ? unlimited_frames_note : string.Empty;
}, true); }, true);
} }
} }

View File

@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
{ {
const string not_supporter_note = "Changes to this setting will only apply with an active osu!supporter tag."; const string not_supporter_note = "Changes to this setting will only apply with an active osu!supporter tag.";
backgroundSourceDropdown.NoteText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty; backgroundSourceDropdown.WarningText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty;
}, true); }, true);
} }
} }

View File

@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Settings
private SpriteText labelText; private SpriteText labelText;
private readonly OsuTextFlowContainer noteText; private readonly OsuTextFlowContainer warningText;
public bool ShowsDefaultIndicator = true; public bool ShowsDefaultIndicator = true;
@ -61,14 +61,14 @@ namespace osu.Game.Overlays.Settings
/// <summary> /// <summary>
/// Text to be displayed at the bottom of this <see cref="SettingsItem{T}"/>. /// Text to be displayed at the bottom of this <see cref="SettingsItem{T}"/>.
/// Used for further explanation or indicating drawbacks of the current setting. /// Generally used to recommend the user change their setting as the current one is considered sub-optimal.
/// </summary> /// </summary>
public string NoteText public string WarningText
{ {
set set
{ {
noteText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1; warningText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
noteText.Text = value; warningText.Text = value;
} }
} }
@ -110,7 +110,7 @@ namespace osu.Game.Overlays.Settings
Children = new[] Children = new[]
{ {
Control = CreateControl(), Control = CreateControl(),
noteText = new OsuTextFlowContainer warningText = new OsuTextFlowContainer
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Settings
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
noteText.Colour = colours.Yellow; warningText.Colour = colours.Yellow;
} }
private void updateDisabled() private void updateDisabled()