public override void Load() { sprBackground = Content.Load <Texture2D>("Triple Thunder/HUD/Menus/Weapon Selection/Background"); sprExtraWeaponBackground = Content.Load <Texture2D>("Triple Thunder/HUD/Menus/Weapon Selection/Extra Weapon Background"); sprNumber = Content.Load <Texture2D>("Triple Thunder/HUD/Menus/Weapon Selection/Number"); WeaponOutlineButton = new AnimatedSprite(Content, "Triple Thunder/HUD/Menus/Weapon Selection/Weapon Button Outline", new Vector2(0, 0), 0, 1, 4); WeaponOutlineButton.SetFrame(2); ListDefaultWeapon.Add(new WeaponSelectionItem("AK-47")); ListDefaultWeapon.Add(new WeaponSelectionItem("Ingram MAC 10")); ListDefaultWeapon.Add(new WeaponSelectionItem("Scout")); ListDefaultWeapon.Add(new WeaponSelectionItem("M3")); ListDefaultWeapon.Add(new WeaponSelectionItem("M79")); ListDefaultWeapon.Add(new WeaponSelectionItem("MG42")); SelectedWeapon = ListDefaultWeapon[0]; foreach (WeaponSelectionItem ActiveWeapon in ListDefaultWeapon) { ActiveWeapon.Load(Content); } foreach (WeaponMenuEquipment ActiveWeapon in Owner.Equipment.ArrayEquipedPrimaryWeapon) { ListPersonalWeapon.Add(new WeaponSelectionItem(ActiveWeapon.Name)); } foreach (WeaponSelectionItem ActiveWeapon in ListPersonalWeapon) { ActiveWeapon.Load(Content); } }
public void Load(ContentManager Content) { foreach (WeaponBase ActiveWeapon in DicWeaponByName.Values) { ActiveWeapon.Load(Content); } }
public void Load(ContentManager Content) { foreach (Weapon ActiveWeapon in DicWeaponByName.Values) { ActiveWeapon.Load(Content); } foreach (Weapon ActiveWeapon in ListActiveSecondaryWeapon) { ActiveWeapon.Load(Content); } }