mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Rename to WarningText
This commit is contained in:
parent
6178f38c95
commit
1288f69fad
@ -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!";
|
||||
|
||||
windowModeDropdown.NoteText = mode.NewValue != WindowMode.Fullscreen ? not_fullscreen_note : string.Empty;
|
||||
windowModeDropdown.WarningText = mode.NewValue != WindowMode.Fullscreen ? not_fullscreen_note : string.Empty;
|
||||
}, true);
|
||||
|
||||
windowModes.BindCollectionChanged((sender, args) =>
|
||||
|
@ -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.";
|
||||
|
||||
frameLimiterDropdown.NoteText = limit.NewValue == FrameSync.Unlimited ? unlimited_frames_note : string.Empty;
|
||||
frameLimiterDropdown.WarningText = limit.NewValue == FrameSync.Unlimited ? unlimited_frames_note : string.Empty;
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
@ -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.";
|
||||
|
||||
backgroundSourceDropdown.NoteText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty;
|
||||
backgroundSourceDropdown.WarningText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty;
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Settings
|
||||
|
||||
private SpriteText labelText;
|
||||
|
||||
private readonly OsuTextFlowContainer noteText;
|
||||
private readonly OsuTextFlowContainer warningText;
|
||||
|
||||
public bool ShowsDefaultIndicator = true;
|
||||
|
||||
@ -61,14 +61,14 @@ namespace osu.Game.Overlays.Settings
|
||||
|
||||
/// <summary>
|
||||
/// 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>
|
||||
public string NoteText
|
||||
public string WarningText
|
||||
{
|
||||
set
|
||||
{
|
||||
noteText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
|
||||
noteText.Text = value;
|
||||
warningText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
|
||||
warningText.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ namespace osu.Game.Overlays.Settings
|
||||
Children = new[]
|
||||
{
|
||||
Control = CreateControl(),
|
||||
noteText = new OsuTextFlowContainer
|
||||
warningText = new OsuTextFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Settings
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
noteText.Colour = colours.Yellow;
|
||||
warningText.Colour = colours.Yellow;
|
||||
}
|
||||
|
||||
private void updateDisabled()
|
||||
|
Loading…
Reference in New Issue
Block a user