public override void Create(HudBox ParentBox)
 {
     if (MyTexture == null)
     {
         MyTexture = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/HudComponents/HudEnergy");
     }
     SetDimensions(new Vector2(110, 25), new Vector2(30, 30));
     base.Create(ParentBox);
 }
        public override void Create(HudBox ParentBox)
        {
            if (!Loaded)
            {
                Loaded    = true;
                MyTexture = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/HudComponents/HudBomb");
            }

            SetDimensions(new Vector2(-60, 0), new Vector2(100, 100));
            base.Create(ParentBox);
        }
        public override void Create(HudBox ParentBox)
        {
            if (!Loaded)
            {
                Loaded    = true;
                MyTexture = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/Keys/LT");
            }

            SetDimensions(new Vector2(-60, -120), new Vector2(120, 120));
            base.Create(ParentBox);
        }
        public override void Create(HudBox ParentBox)
        {
            if (!Loaded)
            {
                Loaded    = true;
                MyTexture = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/HudComponents/HudRocket");
            }

            OffenseTexture = MyTexture;
            SetDimensions(new Vector2(80, 0), new Vector2(60, 60));
            base.Create(ParentBox);
        }
        public override void Create(HudBox ParentBox)
        {
            if (SolidSphere == null)
            {
                SolidSphere   = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/HudComponents/HudFullSphere");
                OutlineSphere = AssetManager.Load <Texture2D>("Textures/ShipGame/HUD/HudComponents/HudEmptySphere");
            }

            MoveSpeed = 0.1f;
            SetDimensions(new Vector2(0, 80), new Vector2(40, 40));

            base.Create(ParentBox);
        }
 public override void Create(HudBox ParentBox)
 {
     SetDimensions(new Vector2(-90, 25), new Vector2(90, 32));
     base.Create(ParentBox);
 }
 public override void Create(HudBox ParentBox)
 {
     SetDimensions(new Vector2(-20, 0), new Vector2(50, 70));
     base.Create(ParentBox);
 }
Beispiel #8
0
 public virtual void Create(HudBox ParentBox)
 {
     this.ParentBox = ParentBox;
 }
 void AddHudBox(HudBox b)
 {
     HudBoxes.AddLast(b);
     b.Create(ParentShip);
 }
 public override void Create(HudBox ParentBox)
 {
     SetDimensions(new Vector2(-40, -20), new Vector2(220, 40));
     base.Create(ParentBox);
 }