Add text feedback for type selection hotkey when selection is empty
This commit is contained in:
committed by
Matthias Mailänder
parent
3c77df276a
commit
9b9c116097
@@ -261,7 +261,10 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
else if (SelectSameTypeKey.IsActivatedBy(e) && !World.IsGameOver)
|
else if (SelectSameTypeKey.IsActivatedBy(e) && !World.IsGameOver)
|
||||||
{
|
{
|
||||||
if (!World.Selection.Actors.Any())
|
if (!World.Selection.Actors.Any())
|
||||||
|
{
|
||||||
|
TextNotificationsManager.AddFeedbackLine("Nothing selected.");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var ownedActors = World.Selection.Actors
|
var ownedActors = World.Selection.Actors
|
||||||
.Where(x => !x.IsDead && eligiblePlayers.Contains(x.Owner))
|
.Where(x => !x.IsDead && eligiblePlayers.Contains(x.Owner))
|
||||||
|
|||||||
Reference in New Issue
Block a user