public CameraOption(ObserverShroudSelectorLogic logic, World w, string label, Player p)
 {
     Player     = p;
     Label      = label;
     Color      = Color.White;
     Faction    = null;
     IsSelected = () => w.RenderPlayer == p;
     OnClick    = () => { w.RenderPlayer = p; logic.selected = this; };
 }
 public CameraOption(ObserverShroudSelectorLogic logic, Player p)
 {
     Player     = p;
     Label      = p.PlayerName;
     Color      = p.Color.RGB;
     Faction    = p.Faction.InternalName;
     IsSelected = () => p.World.RenderPlayer == p;
     OnClick    = () => { p.World.RenderPlayer = p; logic.selected = this; p.World.Selection.Clear(); };
 }
			public CameraOption(ObserverShroudSelectorLogic logic, Player p)
			{
				Player = p;
				Label = p.PlayerName;
				Color = p.Color.RGB;
				Faction = p.Faction.InternalName;
				IsSelected = () => p.World.RenderPlayer == p;
				OnClick = () => { p.World.RenderPlayer = p; logic.selected = this; p.World.Selection.Clear(); };
			}
			public CameraOption(ObserverShroudSelectorLogic logic, World w, string label, Player p)
			{
				Player = p;
				Label = label;
				Color = Color.White;
				Faction = null;
				IsSelected = () => w.RenderPlayer == p;
				OnClick = () => { w.RenderPlayer = p; logic.selected = this; };
			}
Example #5
0
 public CameraOption(ObserverShroudSelectorLogic logic, Player p)
 {
     Player     = p;
     Label      = p.PlayerName;
     Color      = p.Color;
     Faction    = p.Faction.InternalName;
     IsSelected = () => p.World.RenderPlayer == p;
     OnClick    = () =>
     {
         p.World.RenderPlayer = p;
         logic.selected       = this;
         p.World.Selection.Clear();
         WidgetUtils.BindPlayerNameAndStatus(logic.shroudLabel, p);
     };
 }