Exemplo n.º 1
0
 public PlayerActionsWindow(Size size, IResourceManager resourceManager, PlayerActionComp _assignedComp)
     : base("Player Abilities", size, resourceManager)
 {
     uiMgr = IoCManager.Resolve<IUserInterfaceManager>();
     assignedComp = _assignedComp;
     assignedComp.Changed += assignedComp_Changed;
     Position = new Point((int) (Gorgon.CurrentRenderTarget.Width/2f) - (int) (ClientArea.Width/2f),
                          (int) (Gorgon.CurrentRenderTarget.Height/2f) - (int) (ClientArea.Height/2f));
     assignedComp.CheckActionList();
     PopulateList();
 }
Exemplo n.º 2
0
 public PlayerAction(uint _uid, PlayerActionComp _parent)
 //Do not add more parameters to the constructors or bad things happen.
 {
     uid    = _uid;
     parent = _parent;
 }
Exemplo n.º 3
0
 private void assignedComp_Changed(PlayerActionComp sender)
 {
     PopulateList();
 }
Exemplo n.º 4
0
 public PlayerAction(uint _uid, PlayerActionComp _parent)
     //Do not add more parameters to the constructors or bad things happen.
 {
     uid = _uid;
     parent = _parent;
 }