Reset selection when switching player shroud in observer mode
The selection will be reset when switching from any shroud view to a player shroud view. The selection will be kept when switching from any view to either 'All players' or 'Shroud disabled' view.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
Color = p.Color.RGB;
|
Color = p.Color.RGB;
|
||||||
Race = p.Country.Race;
|
Race = p.Country.Race;
|
||||||
IsSelected = () => p.World.RenderPlayer == p;
|
IsSelected = () => p.World.RenderPlayer == p;
|
||||||
OnClick = () => { p.World.RenderPlayer = p; logic.selected = this; };
|
OnClick = () => { p.World.RenderPlayer = p; logic.selected = this; p.World.Selection.Clear(); };
|
||||||
}
|
}
|
||||||
|
|
||||||
public CameraOption(ObserverShroudSelectorLogic logic, World w, string label, Player p)
|
public CameraOption(ObserverShroudSelectorLogic logic, World w, string label, Player p)
|
||||||
|
|||||||
Reference in New Issue
Block a user