Esempio n. 1
0
 public BossNameAppears(EnemyCodex.EnemyTypes enType)
 {
     ContentManager Content = Program.GetTheGame().xLevelMaster.contRegionContent;
     this.txWholeBit = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/BossName_Whole");
     this.txLeftBit = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/BossName_left");
     this.txMidBit = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/BossName_Mid");
     this.txRightBit = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/BossName_Right");
     this.txFight = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Fight");
     if (enType == EnemyCodex.EnemyTypes.PapaSlime)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GigaSlime_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GigaSlime");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GigaSlime02");
         this.v2PortraitOffset = new Vector2(186f, -179f);
     }
     else if (enType == EnemyCodex.EnemyTypes.Vilya)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Vilya_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Vilya");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Vilya02");
         this.v2PortraitOffset = new Vector2(110f, -203f);
     }
     else if (enType == EnemyCodex.EnemyTypes.GundamMain)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GUN-D4M_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GUN-D4M");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/GUN-D4M02");
         this.v2PortraitOffset = new Vector2(-45f, -224f);
     }
     else if (enType == EnemyCodex.EnemyTypes.Marino)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Marino_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Marino");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Marino02");
         this.v2PortraitOffset = new Vector2(175f, -184f);
     }
     else if (enType == EnemyCodex.EnemyTypes.EnragedToyMachine)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/ToyFactory_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/ToyFactory");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/ToyFactory02");
         this.v2PortraitOffset = new Vector2(0f, -270f);
         this.fNameTagOffsetY = 35f;
     }
     else if (enType == EnemyCodex.EnemyTypes.AutumnFae)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Fae_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Fae");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Fae02");
         this.v2PortraitOffset = new Vector2(110f, -203f);
     }
     else if (enType == EnemyCodex.EnemyTypes.SeasonHydra_Summer)
     {
         this.txPicture = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Hydras_Portrait");
         this.txName = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Hydras");
         this.txFlavourText = Content.Load<Texture2D>("GUI/HUD/Boss Introductions/Hydras02");
         this.v2PortraitOffset = new Vector2(0f, -235f);
     }
     else
     {
         if (enType != EnemyCodex.EnemyTypes.GreenSlime)
         {
             throw new Exception("Tried bossname no boss is not yes? " + enType.ToString());
         }
         this.iCounter = this.iGTFO;
         this.bNoPortrait = true;
         this.bAtFight = true;
     }
     if (enType != EnemyCodex.EnemyTypes.GreenSlime)
     {
         Program.GetTheGame().xSoundSystem.PlayInterfaceCue("BossIntroduction");
         return;
     }
     Program.GetTheGame().xSoundSystem.PlayInterfaceCue("BossIntroduction_Fight");
 }
Esempio n. 2
0
 public static EnemyDescription GetEnemyDescription(EnemyCodex.EnemyTypes enType)
 {
     if (EnemyCodex.denxDescriptionDict.ContainsKey(enType))
     {
         return EnemyCodex.denxDescriptionDict[enType];
     }
     throw new Exception("Tried loading non-existing enemy description! OMGG!! Type: " + enType.ToString());
 }