Example #1
0
 public HighScoreEntry(string sCharacterName, int iScore, int iFloorProgress, PlayerView xView)
 {
     this.sCharacterName = sCharacterName;
     this.iScore = iScore;
     this.iFloorProgress = iFloorProgress;
     this.bIsMale = xView.xViewStats.bIsMale;
     this.xClothingSet = xView.xEquipment.xClothingSet;
     this.enHairdo = xView.xEquipment.xHairdo.enItemType;
     if (xView.xEquipment.DisplayHat != null)
     {
         this.enHat = xView.xEquipment.DisplayHat.enItemType;
     }
     if (xView.xEquipment.DisplayFacegear != null)
     {
         this.enFacegear = xView.xEquipment.DisplayFacegear.enItemType;
     }
     if (xView.xEquipment.xBufferWeapon != null)
     {
         this.enWeapon = xView.xEquipment.xBufferWeapon.enItemType;
     }
     else
     {
         this.enWeapon = ItemCodex.ItemTypes.Null;
     }
     if (xView.xEquipment.xShield != null)
     {
         this.enShield = xView.xEquipment.xShield.enItemType;
         return;
     }
     this.enShield = ItemCodex.ItemTypes.Null;
 }
Example #2
0
 public void CreateDisplay()
 {
     this.xDisplay = new GlobalData.MainMenu.CharacterDisplay('A', this.enHat, this.enFacegear, this.enHairdo);
     this.xDisplay.xClothingSet = this.xClothingSet;
     this.xDisplay.bIsMale = this.bIsMale;
     this.xDisplay.av4ShaderFeed = RenderMaster.CreateRecolorArray(this.xClothingSet);
     this.xDisplay.av4ShaderHairColorFeed = PlayerPalette.denHairPalettes[this.xClothingSet.enHairColor].av4Palette;
 }
Example #3
0
 public CharacterDisplay(PlayerView xView)
 {
     ContentManager Content = RenderMaster.contPlayerStuff;
     this.txBaseMaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Up");
     this.txBaseMaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Right");
     this.txBaseMaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Down");
     this.txBaseMaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Left");
     this.txBaseFemaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Up");
     this.txBaseFemaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Right");
     this.txBaseFemaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Down");
     this.txBaseFemaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Left");
     if (xView.xEquipment.xHairdo != null)
     {
         this.xHairdo = HairdoCodex.GetHairdoInfo(xView.xEquipment.xHairdo.enItemType);
     }
     if (xView.xEquipment.xHat != null)
     {
         this.xHat = HatCodex.GetHatInfo(xView.xEquipment.xHat.enItemType);
     }
     if (xView.xEquipment.xFacegear != null)
     {
         this.xFacegear = FacegearCodex.GetHatInfo(xView.xEquipment.xFacegear.enItemType);
     }
     this.bIsMale = xView.xViewStats.bIsMale;
     this.xClothingSet = new PlayerPalette.ClothingSet(xView.xEquipment.xClothingSet);
     this.rt2dPreRender = new RenderTarget2D(Program.GetTheGame().GraphicsDevice, 150, 150, false, SurfaceFormat.Color, DepthFormat.None);
     this.av4ShaderFeed = RenderMaster.CreateRecolorArray(this.xClothingSet);
     this.av4ShaderHairColorFeed = PlayerPalette.denHairPalettes[this.xClothingSet.enHairColor].av4Palette;
 }