Remove redundant default hotkey UI notice

This commit is contained in:
Ivaylo Draganov
2021-10-05 20:50:40 +03:00
committed by reaperrr
parent 5aeae694be
commit c3dfac7ade
4 changed files with 0 additions and 19 deletions

View File

@@ -155,10 +155,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var duplicateNoticeText = new CachedTransform<HotkeyDefinition, string>(hd => hd != null ? duplicateNotice.Text.F(hd.Description) : duplicateNotice.Text);
duplicateNotice.GetText = () => duplicateNoticeText.Update(duplicateHotkeyDefinition);
var defaultNotice = panel.Get<LabelWidget>("DEFAULT_NOTICE");
defaultNotice.TextColor = ChromeMetrics.Get<Color>("NoticeInfoColor");
defaultNotice.IsVisible = () => isHotkeyValid && isHotkeyDefault;
var originalNotice = panel.Get<LabelWidget>("ORIGINAL_NOTICE");
originalNotice.TextColor = ChromeMetrics.Get<Color>("NoticeInfoColor");
originalNotice.IsVisible = () => isHotkeyValid && !isHotkeyDefault;