From 9b9c11609752d3d82c1848ee74326cc5277555f0 Mon Sep 17 00:00:00 2001 From: Ivaylo Draganov Date: Thu, 17 Jun 2021 17:15:07 +0300 Subject: [PATCH] Add text feedback for type selection hotkey when selection is empty --- OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs index 417127faff..4eaf9a13d9 100644 --- a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs @@ -261,7 +261,10 @@ namespace OpenRA.Mods.Common.Widgets else if (SelectSameTypeKey.IsActivatedBy(e) && !World.IsGameOver) { if (!World.Selection.Actors.Any()) + { + TextNotificationsManager.AddFeedbackLine("Nothing selected."); return false; + } var ownedActors = World.Selection.Actors .Where(x => !x.IsDead && eligiblePlayers.Contains(x.Owner))