public override bool PreDrawExtras(SpriteBatch spriteBatch) { Player player = Main.player[projectile.owner]; Vector2 pos = player.Center + new Vector2(-3, 0); Vector2 value = projectile.Center + new Vector2(-7, -6) - (projectile.rotation - 1.57f).ToRotationVector2() * 12; float projPosX = pos.X - 4 - value.X; float projPosY = pos.Y - 4 - value.Y; Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); float rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f; bool flag2 = true; if (projPosX == 0f && projPosY == 0f) { flag2 = false; } else { float projPosXY = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); projPosXY = 12f / projPosXY; projPosX *= projPosXY; projPosY *= projPosXY; value.X -= projPosX; value.Y -= projPosY; projPosX = pos.X - 4 - value.X; projPosY = pos.Y - 4 - value.Y; } while (flag2) { float num = 12f; float num2 = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY)); float num3 = num2; if (float.IsNaN(num2) || float.IsNaN(num3)) { flag2 = false; } else { if (num2 < 20f) { num = num2 - 8f; flag2 = false; } num2 = 12f / num2; projPosX *= num2; projPosY *= num2; value.X += projPosX; value.Y += projPosY; projPosX = pos.X - 4 - value.X; projPosY = pos.Y - 4 - value.Y; if (num3 > 12f) { float num4 = 0.3f; if (isHooked) { num4 = 0.8f; } float num5 = Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y); if (num5 > 16f) { num5 = 16f; } num5 = 1f - num5 / 16f; num4 *= num5; num5 = num3 / 80f; if (num5 > 1f) { num5 = 1f; } num4 *= num5; if (num4 < 0f) { num4 = 0f; } num5 = 1f - projectile.localAI[1] / 100f; num4 *= num5; if (projPosY > 0f) { projPosY *= 1f + num4; projPosX *= 1f - num4; } else { num5 = Math.Abs(projectile.velocity.X) / 3f; if (num5 > 1f) { num5 = 1f; } num5 -= 0.5f; num4 *= num5; if (num4 > 0f) { num4 *= 2f; } projPosY *= 1f + num4; projPosX *= 1f - num4; } } rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f; Texture2D tex = ModContent.GetTexture("JoostMod/Projectiles/EnchantedMobHook_Chain"); Color color2 = Lighting.GetColor((int)value.X / 16, (int)(value.Y / 16f)); Main.spriteBatch.Draw(tex, new Vector2(value.X - Main.screenPosition.X + (float)tex.Width * 0.5f, value.Y - Main.screenPosition.Y + (float)tex.Height * 0.5f), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, tex.Width, (int)num)), color2, rotation2, new Vector2((float)tex.Width * 0.5f, 0f), 1f, SpriteEffects.None, 0f); } } return(false); }
public StarwoodStaff() : base(ModContent.GetTexture("StarlightRiver/Items/StarwoodWeapons/StarwoodSlingshot_Alt")) { }
public static void AddGlowMask(int itemType, string texturePath) { ItemGlowMask[itemType] = ModContent.GetTexture(texturePath); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { CrittersUtility.DrawNPCGlowMask(spriteBatch, npc, ModContent.GetTexture("Critters/NPCs/Masks/Ignome_Glow")); }
public override bool PreDraw(NPC npc, SpriteBatch spriteBatch, Color drawColor) { if (!setStats) { baseDamage = npc.damage; baseDefense = npc.defense; setStats = true; } if (drawHestiaRunes) { runeAlpha += 0.05f; } else { runeAlpha -= 0.05f; } runeAlpha = MathHelper.Clamp(runeAlpha, 0f, 1f); if (npc != null && npc.active && runeAlpha > 0f && (npc.modNPC is IBoonable || npc.type == NPCID.Medusa)) { npc.damage = (int)(baseDamage * 1.2f); npc.defense = baseDefense + 15; Vector2 pos = npc.Center; for (int i = 0; i < 4; i++) { Vector2 offsetPositon = Vector2.UnitY.RotatedBy(MathHelper.PiOver2 * i) * 2; Main.spriteBatch.Draw(Main.npcTexture[npc.type], pos + offsetPositon - Main.screenPosition, npc.frame, new Color(247, 117, 42, 0) * runeAlpha, npc.rotation, npc.frame.Size() * 0.5f, npc.scale, npc.spriteDirection == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally, 0f); } for (int j = 0; j < 3; j++) { HestiaRune rune = runes[j]; rune.i = j; rune.Update(); if (rune.inFront == false) { Texture2D tex = ModContent.GetTexture("SpiritMod/Mechanics/BoonSystem/HestiaBoon/HestiaRune"); Color color = new Color(247, 117, 42, 0); Texture2D glow = SpiritMod.Instance.GetTexture("Effects/Masks/Extra_49"); color.A = 0; float glowScale = 1 + ((float)Math.Sin(Main.GameUpdateCount) / 4); spriteBatch.Draw(glow, npc.Center + new Vector2(rune.x, rune.y) - Main.screenPosition, null, color * glowScale, 0, glow.Size() / 2, npc.scale * 0.33f, SpriteEffects.None, 0f); Main.spriteBatch.Draw(tex, npc.Center + new Vector2(rune.x, rune.y) - Main.screenPosition, new Rectangle(0, 22 * j, 22, 22), Color.White * runeAlpha, 0f, new Vector2(11, 11), 1f, SpriteEffects.None, 0f); } runes[j] = rune; } } else { npc.damage = baseDamage; npc.defense = baseDefense; } return(true); }
public static void DebugWispGen(GenerationProgress progress) { progress.Message = "DebugAltar..."; Texture2D Altar = ModContent.GetTexture("StarlightRiver/Structures/OvergrowBossRoom"); Vector2 spawn = new Vector2(Main.spawnTileX, Main.spawnTileY + 300); for (int y = 0; y < Altar.Height; y++) // for every row { Color[] rawData = new Color[Altar.Width]; //array of colors Rectangle row = new Rectangle(0, y, Altar.Width, 1); //one row of the image Altar.GetData(0, row, rawData, 0, Altar.Width); //put the color data from the image into the array for (int x = 0; x < Altar.Width; x++) //every entry in the row { Main.tile[(int)spawn.X + x, (int)spawn.Y + y].ClearEverything(); //clear the tile out Main.tile[(int)spawn.X + x, (int)spawn.Y + y].liquidType(0); // clear liquids ushort placeType = 0; ushort wallType = 0; switch (rawData[x].R) //select block { case 10: placeType = (ushort)ModContent.TileType <Tiles.Overgrow.BrickOvergrow>(); break; case 20: placeType = (ushort)ModContent.TileType <Tiles.Overgrow.BossWindow>(); break; case 30: placeType = (ushort)ModContent.TileType <Tiles.Overgrow.AppearingBrick>(); break; case 40: placeType = (ushort)ModContent.TileType <Tiles.Overgrow.GrassOvergrow>(); break; } switch (rawData[x].B) //select wall { case 10: wallType = (ushort)ModContent.WallType <Tiles.Overgrow.WallOvergrowBrick>(); break; case 20: wallType = (ushort)ModContent.WallType <Tiles.Overgrow.WallOvergrowInvisible>(); break; case 30: wallType = (ushort)ModContent.WallType <Tiles.Overgrow.WallOvergrowGrass>(); break; } switch (rawData[x].G) { case 10: Main.tile[(int)spawn.X + x, (int)spawn.Y + y].slope(1); break; case 20: Main.tile[(int)spawn.X + x, (int)spawn.Y + y].slope(2); break; case 30: Main.tile[(int)spawn.X + x, (int)spawn.Y + y].slope(3); break; case 40: Main.tile[(int)spawn.X + x, (int)spawn.Y + y].slope(4); break; case 50: Main.tile[(int)spawn.X + x, (int)spawn.Y + y].slope(5); break; } if (placeType != 0) { WorldGen.PlaceTile((int)spawn.X + x, (int)spawn.Y + y, placeType, true, true); } //place block if (wallType != 0) { WorldGen.PlaceWall((int)spawn.X + x, (int)spawn.Y + y, wallType, true); } //place wall } } }
public StarwoodBoomerang() : base(ModContent.GetTexture(AssetDirectory.StarwoodItem + "StarwoodBoomerang_Alt")) { }
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D texture2D13 = Main.npcTexture[npc.type]; //int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; //ypos of lower right corner of sprite to draw //int y3 = num156 * npc.frame.Y; //ypos of upper left corner of sprite to draw Rectangle rectangle = npc.frame;//new Rectangle(0, y3, texture2D13.Width, num156); Vector2 origin2 = rectangle.Size() / 2f; Color color26 = lightColor; color26 = npc.GetAlpha(color26); SpriteEffects effects = npc.spriteDirection < 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; Main.spriteBatch.Draw(texture2D13, npc.Center - Main.screenPosition + new Vector2(0f, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), npc.GetAlpha(lightColor), npc.rotation, origin2, npc.scale, effects, 0f); Texture2D glowmask = npc.type == ModContent.NPCType <TerraChampionBody>() ? ModContent.GetTexture("FargowiltasSouls/NPCs/Champions/TerraChampionBody_Glow") : ModContent.GetTexture("FargowiltasSouls/NPCs/Champions/TerraChampionTail_Glow"); Main.spriteBatch.Draw(glowmask, npc.Center - Main.screenPosition + new Vector2(0f, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), Color.White, npc.rotation, origin2, npc.scale, effects, 0f); return(false); }
public override void OnInitialize() { BorderTexture = ModContent.GetTexture("NoxiumMod/UI/UI_Exterior"); BarTexture = ModContent.GetTexture("NoxiumMod/UI/UI_Bar"); BottomTexture = ModContent.GetTexture("NoxiumMod/UI/UI_Interior"); }
// In OnInitialize, we place various UIElements onto our UIState (this class). // UIState classes have width and height equal to the full screen, because of this, usually we first define a UIElement that will act as the container for our UI. // We then place various other UIElement onto that container UIElement positioned relative to the container UIElement. public override void OnInitialize() { // Here we define our container UIElement. In DragableUIPanel.cs, you can see that DragableUIPanel is a UIPanel with a couple added features. // Here we define our container UIElement. In DragableUIPanel.cs, you can see that DragableUIPanel is a UIPanel with a couple added features. //pokemon icons // Next, we create another UIElement that we will place. Since we will be calling `mainPanel.Append(playButton);`, Left and Top are relative to the top left of the mainPanel UIElement. // By properly nesting UIElements, we can position things relatively to each other easily. mainPanel = new SidebarPanel(); mainPanel.SetPadding(0); // We need to place this UIElement in relation to its Parent. Later we will be calling `base.Append(mainPanel);`. // This means that this class, ExampleUI, will be our Parent. Since ExampleUI is a UIState, the Left and Top are relative to the top left of the screen. mainPanel.HAlign = 0f - 0.01f; mainPanel.VAlign = 0.6f; mainPanel.Width.Set(95, 0f); mainPanel.Height.Set(385f, 0f); mainPanel.BackgroundColor = new Color(50, 50, 50) * 0.5f; Texture2D chooseTexture = ModContent.GetTexture("Terramon/UI/SidebarParty/Help"); choose = new UIOpaqueButton(chooseTexture, "Show Terramon Help"); choose.HAlign = 0.007f; // 1 choose.VAlign = 0.98f; // 1 choose.Width.Set(20, 0); choose.Height.Set(32, 0); choose.OnClick += new MouseEvent(HelpClicked); Append(choose); firstpkmntexture = ModContent.GetTexture("Terraria/Item_0"); firstpkmn = new SidebarClass(firstpkmntexture, ""); firstpkmn.test1 = firstpkmntexture; firstpkmn.HAlign = 0.6f; // 1 firstpkmn.VAlign = 0.08888f; // 1 firstpkmn.Width.Set(40, 0); firstpkmn.Height.Set(40, 0); firstpkmn.OnClick += new MouseEvent(SpawnPKMN1); mainPanel.Append(firstpkmn); secondpkmntexture = ModContent.GetTexture("Terraria/Item_0"); secondpkmn = new SidebarClass(secondpkmntexture, ""); secondpkmn.test2 = secondpkmntexture; secondpkmn.HAlign = 0.6f; // 1 secondpkmn.VAlign = 0.25555f; // 1 secondpkmn.Width.Set(40, 0); secondpkmn.Height.Set(40, 0); secondpkmn.OnClick += new MouseEvent(SpawnPKMN2); mainPanel.Append(secondpkmn); thirdpkmntexture = ModContent.GetTexture("Terraria/Item_0"); thirdpkmn = new SidebarClass(thirdpkmntexture, ""); thirdpkmn.test3 = thirdpkmntexture; thirdpkmn.HAlign = 0.6f; // 1 thirdpkmn.VAlign = 0.41111f; // 1 thirdpkmn.Width.Set(40, 0); thirdpkmn.Height.Set(40, 0); thirdpkmn.OnClick += new MouseEvent(SpawnPKMN3); mainPanel.Append(thirdpkmn); fourthpkmntexture = ModContent.GetTexture("Terraria/Item_0"); fourthpkmn = new SidebarClass(fourthpkmntexture, ""); fourthpkmn.test4 = fourthpkmntexture; fourthpkmn.HAlign = 0.6f; // 1 fourthpkmn.VAlign = 0.58888f; // 1 fourthpkmn.Width.Set(40, 0); fourthpkmn.Height.Set(40, 0); fourthpkmn.OnClick += new MouseEvent(SpawnPKMN4); mainPanel.Append(fourthpkmn); fifthpkmntexture = ModContent.GetTexture("Terraria/Item_0"); fifthpkmn = new SidebarClass(fifthpkmntexture, ""); fifthpkmn.test5 = fifthpkmntexture; fifthpkmn.HAlign = 0.6f; // 1 fifthpkmn.VAlign = 0.75555f; // 1 fifthpkmn.Width.Set(40, 0); fifthpkmn.Height.Set(40, 0); fifthpkmn.OnClick += new MouseEvent(SpawnPKMN5); mainPanel.Append(fifthpkmn); sixthpkmntexture = ModContent.GetTexture("Terraria/Item_0"); sixthpkmn = new SidebarClass(sixthpkmntexture, ""); sixthpkmn.test6 = sixthpkmntexture; sixthpkmn.HAlign = 0.6f; // 1 sixthpkmn.VAlign = 0.91111f; // 1 sixthpkmn.Width.Set(40, 0); sixthpkmn.Height.Set(40, 0); sixthpkmn.OnClick += new MouseEvent(SpawnPKMN6); mainPanel.Append(sixthpkmn); Append(mainPanel); // As a recap, ExampleUI is a UIState, meaning it covers the whole screen. We attach mainPanel to ExampleUI some distance from the top left corner. // We then place playButton, closeButton, and moneyDiplay onto mainPanel so we can easily place these UIElements relative to mainPanel. // Since mainPanel will move, this proper organization will move playButton, closeButton, and moneyDiplay properly when mainPanel moves. }
public CasualMirror() : base(ModContent.GetTexture(AssetDirectory.MiscItem + "CasualMirror")) { }
public override void Update(GameTime gameTime) { // Don't delete this or the UIElements attached to this UIState will cease to function. base.Update(gameTime); if (TerramonMod.PartyUIAutoMode == false || TerramonMod.PartyUIReverseAutoMode == false) { if (TerramonMod.PartyUITheme == false) { mainPanel.BackgroundColor = new Color(255, 250, 250) * 0.5f; } else { mainPanel.BackgroundColor = new Color(50, 50, 50) * 0.5f; } } if (TerramonMod.PartyUIAutoMode == true) { if (!Main.dayTime) { mainPanel.BackgroundColor = new Color(50, 50, 50) * 0.5f; } else { mainPanel.BackgroundColor = new Color(255, 250, 250) * 0.5f; } } else if (TerramonMod.PartyUIReverseAutoMode == true) { if (!Main.dayTime) { mainPanel.BackgroundColor = new Color(255, 250, 250) * 0.5f; } else { mainPanel.BackgroundColor = new Color(50, 50, 50) * 0.5f; } } TerramonPlayer modPlayer = Main.LocalPlayer.GetModPlayer <TerramonPlayer>(); if (modPlayer.firstslotname != "*") { firstpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.firstslotname)); firstpkmn.test1 = firstpkmntexture; firstpkmn.HoverText = modPlayer.firstslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot1.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot1.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; firstpkmn.Recalculate(); } if (modPlayer.secondslotname != "*") { secondpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.secondslotname)); secondpkmn.test2 = secondpkmntexture; secondpkmn.HoverText = modPlayer.secondslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot2.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot2.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; secondpkmn.Recalculate(); } if (modPlayer.thirdslotname != "*") { thirdpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.thirdslotname)); thirdpkmn.test3 = thirdpkmntexture; thirdpkmn.HoverText = modPlayer.thirdslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot3.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot3.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; thirdpkmn.Recalculate(); } if (modPlayer.fourthslotname != "*") { fourthpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.fourthslotname)); fourthpkmn.test4 = fourthpkmntexture; fourthpkmn.HoverText = modPlayer.fourthslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot4.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot4.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; fourthpkmn.Recalculate(); } if (modPlayer.fifthslotname != "*") { fifthpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.fifthslotname)); fifthpkmn.test5 = fifthpkmntexture; fifthpkmn.HoverText = modPlayer.fifthslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot5.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot5.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; fifthpkmn.Recalculate(); } if (modPlayer.sixthslotname != "*") { sixthpkmn.SetImage(ModContent.GetTexture("Terramon/Minisprites/Regular/SidebarSprites/" + modPlayer.sixthslotname)); sixthpkmn.test6 = sixthpkmntexture; sixthpkmn.HoverText = modPlayer.sixthslotname + $"[i:{ModContent.ItemType<Items.Pokeballs.SidebarPKBALL>()}]" + $"\nLVL: {modPlayer.PartySlot6.GetInt(nameof(BaseCaughtClass.Level))}" + $"\nEXP: {modPlayer.PartySlot6.GetInt(nameof(BaseCaughtClass.Exp))}" + $"\nLeft click to send out!"; sixthpkmn.Recalculate(); } }
public override Texture2D GetTexture() => ModContent.GetTexture("MoTools/Tiles/Trees/The404Cactus");
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex) { Color color = new Color(255, 255, 255) * (float)Math.Sin(LegendWorld.rottime); spriteBatch.Draw(ModContent.GetTexture("StarlightRiver/Tiles/BounceGlow"), new Vector2((i + 12) * 16 - 1, (j + 12) * 16 - 1) - Main.screenPosition, color); }
public void DrawSkill(ItemNode node) //Vector2 pos, Texture2D tex,int state) { ItemSkillPanel basePanel = new ItemSkillPanel(ModContent.GetTexture("AnotherRpgMod/Textures/UI/skill_blank")); basePanel.SetPadding(0); basePanel.Width.Set(SKILL_SIZE * sizeMultplier, 0f); basePanel.Height.Set(SKILL_SIZE * sizeMultplier, 0f); ItemSkill skillIcon = new ItemSkill(ModContent.GetTexture("AnotherRpgMod/Textures/ItemTree/unknow")); if (node.GetState > 1) { skillIcon = new ItemSkill(ModContent.GetTexture(SkillTextures.GetItemTexture(node))); } skillIcon.Width.Set(SKILL_SIZE * sizeMultplier, 0f); skillIcon.Height.Set(SKILL_SIZE * sizeMultplier, 0f); switch (node.GetState) { case 1: basePanel.Hidden = false; skillIcon.Hidden = false; skillIcon.color = new Color(255, 255, 255, 255); basePanel.color = new Color(255, 255, 255, 255); break; case 2: skillIcon.color = new Color(220, 220, 120, 255); basePanel.color = new Color(160, 180, 50, 255); break; case 3: skillIcon.color = new Color(220, 220, 220, 255); basePanel.color = new Color(120, 120, 120, 255); break; case 0: basePanel.Hidden = true; skillIcon.Hidden = true; break; default: skillIcon.color = Color.White; basePanel.color = new Color(180, 220, 255, 255); break; } basePanel.basePos = new Vector2(node.GetPos.X, node.GetPos.Y); basePanel.node = node; basePanel.skill = skillIcon; ItemSkillText levelText = new ItemSkillText(node.GetLevel + " / " + node.GetMaxLevel, node, sizeMultplier, false); if (basePanel.Hidden) { levelText.SetText(""); } levelText.Left.Set(SKILL_SIZE * 0.2f * sizeMultplier, 0); levelText.Top.Set(SKILL_SIZE * 0.5f * sizeMultplier, 0); allText.Add(levelText); allBasePanel.Add(basePanel); skillIcon.OnMouseOver += new MouseEvent((UIMouseEvent, UIElement) => OpenToolTip(UIMouseEvent, UIElement, node, skillIcon.Hidden)); skillIcon.OnClick += new MouseEvent((UIMouseEvent, UIElement) => OnClickNode(UIMouseEvent, UIElement, node)); skillIcon.OnRightClick += new MouseEvent((UIMouseEvent, UIElement) => OnRightClickNode(UIMouseEvent, UIElement, node)); skillIcon.OnMouseOut += new MouseEvent(CloseToolTip); basePanel.Append(skillIcon); basePanel.Append(levelText); }
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D texture = ModContent.GetTexture("OrchidMod/Gambler/Projectiles/KingSlimeCardProj_Glow"); OrchidModProjectile.DrawProjectileGlowmask(projectile, spriteBatch, texture, Color.White); }
public void UpdateValue() { int listSize = allConnection.Count; for (int i = 0; i < listSize; i++) { if (!allConnection[i].bg) { allConnection[i].color = (m_itemSource.GetItemTree.GetNode(allConnection[i].neighboorID).GetState == 4 || m_itemSource.GetItemTree.GetNode(allConnection[i].nodeID).GetState == 4) ? Color.GreenYellow : Color.DarkRed; } allConnection[i].Hidden = (m_itemSource.GetItemTree.GetNode(allConnection[i].neighboorID).GetState == 0 || m_itemSource.GetItemTree.GetNode(allConnection[i].nodeID).GetState == 0); } listSize = allBasePanel.Count; for (int i = 0; i < listSize; i++) { if (allBasePanel[i].node.GetState > 1) { allBasePanel[i].skill.SetTexture = ModContent.GetTexture(SkillTextures.GetItemTexture(allBasePanel[i].node)); } allBasePanel[i].Hidden = false; allBasePanel[i].skill.Hidden = false; switch (allBasePanel[i].node.GetState) { case 1: allBasePanel[i].skill.color = new Color(255, 255, 255, 255); allBasePanel[i].color = new Color(255, 255, 255, 255); break; case 2: allBasePanel[i].skill.color = new Color(220, 220, 120, 255); allBasePanel[i].color = new Color(160, 180, 50, 255); break; case 3: allBasePanel[i].skill.color = new Color(220, 220, 220, 255); allBasePanel[i].color = new Color(120, 120, 120, 255); break; case 0: allBasePanel[i].Hidden = true; allBasePanel[i].skill.Hidden = true; break; default: allBasePanel[i].skill.color = Color.White; allBasePanel[i].color = new Color(180, 220, 255, 255); break; } } listSize = allText.Count; for (int i = 0; i < listSize; i++) { if (allBasePanel[i].Hidden) { allText[i].SetText(""); } else { allText[i].SetText(allText[i].node.GetLevel + " / " + allText[i].node.GetMaxLevel, sizeMultplier, false); } } }
public void LoadTexture() { Button = ModContent.GetTexture("AnotherRpgMod/Textures/UI/character"); }
public override void OnInitialize() { mainPanel = new UIDragableElement(); //mainPanel.Left.Set(300f, 0f); //mainPanel.Top.Set(300f, 0f); mainPanel.HAlign = 0.5f; mainPanel.VAlign = 0.5f; mainPanel.Width.Set(1280f, 0f); mainPanel.Height.Set(720f, 0f); //mainPanel.SetPadding(12); //mainPanel.SetPadding(0); mainPanel.OnScrollWheel += OnScrollWheel_FixHotbarScroll; Append(mainPanel); if (offsetX != -1) { mainPanel.Left.Set(offsetX, 0f); mainPanel.Top.Set(offsetY, 0f); //mainPanel.HAlign = 0f; //mainPanel.VAlign = 0f; } //mainPanel.BackgroundColor = UICommon.DefaultUIBlue; var panelBackground = new UIImage(ModContent.GetTexture("SpiritMod/Items/Books/UI/LuminousOcean")); panelBackground.SetPadding(12); mainPanel.Append(panelBackground); mainPanel.AddDragTarget(panelBackground); Texture2D closeTexture = ModContent.GetTexture("SpiritMod/Items/Books/UI/closeButton"); UIImageButton closeButton = new UIImageButton(closeTexture); closeButton.Left.Set(-30, 1f); closeButton.Top.Set(5, 0f); closeButton.Width.Set(15, 0f); closeButton.Height.Set(15, 0f); closeButton.OnClick += CloseButton_OnClick; panelBackground.Append(closeButton); //UIPanel messageBoxPanel = new UIPanel { // Width = { Percent = 1f }, // Height = { Pixels = -110, Percent = 1f }, // Top = { Pixels = 110, }, // BackgroundColor = UICommon.MainPanelBackground //}; //mainPanel.Append(messageBoxPanel); UIElement messageBoxPanel = new UIElement { Width = { Percent = 1f }, Height = { Pixels = -50, Percent = 1f }, Top = { Pixels = 50, }, }; panelBackground.Append(messageBoxPanel); mainPanel.AddDragTarget(messageBoxPanel); //var messageBoxScrollbar = new FixedUIScrollbar(ModContent.GetInstance<SpiritMod>().BookUserInterface) { // Height = { Pixels = -20, Percent = 1f }, // VAlign = 0.5f, // HAlign = 1f //}.WithView(100f, 1000f); ////messageBoxPanel.Append(messageBoxScrollbar); //messageBox.Append(messageBoxScrollbar); //messageBox.SetScrollbar(messageBoxScrollbar); }
public override void OnInitialize() { SizeMultiplier = (Main.screenHeight / 1080f); baseYOffset *= SizeMultiplier; baseXOffset *= SizeMultiplier; YOffset *= SizeMultiplier; XOffset *= SizeMultiplier; Instance = this; statsPanel = new UIPanel(); statsPanel.SetPadding(0); statsPanel.Left.Set(400f * SizeMultiplier, 0f); statsPanel.Top.Set(100f * SizeMultiplier, 0f); statsPanel.Width.Set(1000 * SizeMultiplier, 0f); statsPanel.Height.Set(600 * SizeMultiplier, 0f); statsPanel.BackgroundColor = new Color(73, 94, 171, 150); statsPanel.OnMouseDown += new UIElement.MouseEvent(DragStart); statsPanel.OnMouseUp += new UIElement.MouseEvent(DragEnd); PointsLeft = new UIText("Points : 0 / 0", SizeMultiplier); PointsLeft.Left.Set(250 * SizeMultiplier, 0f); PointsLeft.Top.Set(20 * SizeMultiplier, 0f); PointsLeft.Width.Set(0, 0f); PointsLeft.Height.Set(0, 0f); statsPanel.Append(PointsLeft); ResetText = new UIText("RESET", SizeMultiplier, true) { TextColor = Color.Gray }; ResetText.Left.Set(50 * SizeMultiplier, 0f); ResetText.Top.Set(20 * SizeMultiplier, 0f); ResetText.Width.Set(0, 0f); ResetText.Height.Set(0, 0f); ResetText.OnClick += new MouseEvent(ResetStats); ResetText.OnMouseOver += new MouseEvent(ResetTextHover); ResetText.OnMouseOut += new MouseEvent(ResetTextOut); statsPanel.Append(ResetText); Texture2D Button = ModContent.GetTexture("Terraria/UI/ButtonPlay"); for (int i = 0; i < 12; i++) { if (i < 8) { UIImageButton UpgradeStatButton = new UIImageButton(Button); UpgradeStatButton.Left.Set(baseXOffset + XOffset * 2, 0f); UpgradeStatButton.Top.Set(baseYOffset + (YOffset * i), 0f); UpgradeStatButton.Width.Set(22 * SizeMultiplier, 0f); UpgradeStatButton.Height.Set(22 * SizeMultiplier, 0f); Stat Statused = (Stat)i; UpgradeStatButton.OnMouseOver += new MouseEvent((UIMouseEvent, UIElement) => UpdateStat(UIMouseEvent, UIElement, Statused)); UpgradeStatButton.OnMouseOut += new MouseEvent(ResetOver); UpgradeStatButton.OnClick += new MouseEvent((UIMouseEvent, UIElement) => UpgradeStat(UIMouseEvent, UIElement, Statused, 1)); UpgradeStatButton.OnRightClick += new MouseEvent((UIMouseEvent, UIElement) => UpgradeStat(UIMouseEvent, UIElement, Statused, 5)); UpgradeStatButton.OnMiddleClick += new MouseEvent((UIMouseEvent, UIElement) => UpgradeStat(UIMouseEvent, UIElement, Statused, 25)); UpgradeStatButton.OnScrollWheel += new ScrollWheelEvent((UIMouseEvent, UIElement) => UpgradeStatWheel(UIMouseEvent, UIElement, Statused)); statsPanel.Append(UpgradeStatButton); progressStatsBar[i] = new StatProgress((Stat)i, ModContent.GetTexture("AnotherRpgMod/Textures/UI/Blank")); progressStatsBar[i].Left.Set(baseXOffset + XOffset * 1.0f, 0f); progressStatsBar[i].Top.Set(baseYOffset + (YOffset * i) + 6, 0f); progressStatsBar[i].Width.Set(105, 0); progressStatsBar[i].HAlign = 0; progressStatsBar[i].Height.Set(10, 0); progressStatsBar[i].width = 105; progressStatsBar[i].left = baseYOffset + (YOffset * i); statsPanel.Append(progressStatsBar[i]); progressStatsBarBG[i] = new ProgressBG(ModContent.GetTexture("AnotherRpgMod/Textures/UI/Blank")); progressStatsBarBG[i].Left.Set(baseXOffset + XOffset * 1.0f, 0f); progressStatsBarBG[i].Top.Set(baseYOffset + (YOffset * i) + 6, 0f); progressStatsBarBG[i].Width.Set(105, 0); progressStatsBarBG[i].HAlign = 0; progressStatsBarBG[i].Height.Set(10, 0); progressStatsBarBG[i].color = new Color(10, 0, 0, 128); progressStatsBar[i].left = baseYOffset + (YOffset * i); statsPanel.Append(progressStatsBarBG[i]); StatProgress[i] = new UIText("0", SizeMultiplier); StatProgress[i].SetText("0/2"); StatProgress[i].Left.Set(baseXOffset + XOffset * 2.3f, 0f); StatProgress[i].Top.Set(baseYOffset + (YOffset * i), 0f); StatProgress[i].HAlign = 0f; StatProgress[i].VAlign = 0f; StatProgress[i].MinWidth.Set(150 * SizeMultiplier, 0); StatProgress[i].MaxWidth.Set(150 * SizeMultiplier, 0); statsPanel.Append(StatProgress[i]); UpgradeStatText[i] = new UIText("0", SizeMultiplier); UpgradeStatText[i].SetText("Mana : 10 + 10"); UpgradeStatText[i].Left.Set(baseXOffset - 75, 0f); UpgradeStatText[i].Top.Set(baseYOffset + (YOffset * i), 0f); UpgradeStatText[i].HAlign = 0f; UpgradeStatText[i].VAlign = 0f; UpgradeStatText[i].MinWidth.Set(150 * SizeMultiplier, 0); UpgradeStatText[i].MaxWidth.Set(150 * SizeMultiplier, 0); statsPanel.Append(UpgradeStatText[i]); } InfoStat = new UIText("0", SizeMultiplier); InfoStat.SetText(""); InfoStat.Left.Set(baseXOffset - 75 * SizeMultiplier, 0f); InfoStat.Top.Set(baseYOffset + 300 * SizeMultiplier, 0f); InfoStat.HAlign = 0f; InfoStat.VAlign = 0f; InfoStat.MinWidth.Set(150 * SizeMultiplier, 0); InfoStat.MaxWidth.Set(150 * SizeMultiplier, 0); statsPanel.Append(InfoStat); UpgradeStatDetails[i] = new UIText("", SizeMultiplier); if (i < 3 || i > 7) { UpgradeStatDetails[i].SetText("Health : 100 - 5 Heart x 20 Health Per Heart"); } UpgradeStatDetails[i].SetText("Melee Damage Multiplier : 1"); UpgradeStatDetails[i].Left.Set(baseXOffset + (XOffset * 2.9f), 0f); UpgradeStatDetails[i].Top.Set(baseYOffset + (YOffset * i), 0f); UpgradeStatDetails[i].HAlign = 0f; UpgradeStatDetails[i].VAlign = 0f; UpgradeStatDetails[i].MinWidth.Set(300f * SizeMultiplier, 0); UpgradeStatDetails[i].MaxWidth.Set(300f * SizeMultiplier, 0); statsPanel.Append(UpgradeStatDetails[i]); UpgradeStatOver[i] = new UIText("", SizeMultiplier) { TextColor = Color.Aqua }; UpgradeStatOver[i].SetText(""); UpgradeStatOver[i].Left.Set(baseXOffset + (XOffset * 6.7f), 0f); UpgradeStatOver[i].Top.Set(baseYOffset + (YOffset * i), 0f); UpgradeStatOver[i].HAlign = 0f; UpgradeStatOver[i].VAlign = 0f; UpgradeStatOver[i].MinWidth.Set(20f * SizeMultiplier, 0); UpgradeStatOver[i].MaxWidth.Set(20f * SizeMultiplier, 0); statsPanel.Append(UpgradeStatOver[i]); } Append(statsPanel); }
// In OnInitialize, we place various UIElements onto our UIState (this class). // UIState classes have width and height equal to the full screen, because of this, usually we first define a UIElement that will act as the container for our UI. // We then place various other UIElement onto that container UIElement positioned relative to the container UIElement. public override void OnInitialize() { // Here we define our container UIElement. In DragableUIPanel.cs, you can see that DragableUIPanel is a UIPanel with a couple added features. mainPanel = new NonDragableUIPanel(); mainPanel.SetPadding(0); // We need to place this UIElement in relation to its Parent. Later we will be calling `base.Append(mainPanel);`. // This means that this class, ExampleUI, will be our Parent. Since ExampleUI is a UIState, the Left and Top are relative to the top left of the screen. mainPanel.Left.Set(0f, 0f); mainPanel.Top.Set(0f, 0f); mainPanel.Width.Set(0f, 1f); mainPanel.Height.Set(0f, 1f); //pokemon icons // Next, we create another UIElement that we will place. Since we will be calling `mainPanel.Append(playButton);`, Left and Top are relative to the top left of the mainPanel UIElement. // By properly nesting UIElements, we can position things relatively to each other easily. Texture2D starterselect = ModContent.GetTexture("Terramon/UI/PossibleAssets/StarterMenuNew"); UIImagez starterselectmenu = new UIImagez(starterselect); starterselectmenu.Left.Set(0, 0); starterselectmenu.Top.Set(0, 0); starterselectmenu.Width.Set(1, 0); starterselectmenu.Height.Set(1, 0); mainPanel.Append(starterselectmenu); Texture2D bottomleftcornertexture = ModContent.GetTexture("Terramon/UI/Starter/BottomLeftCorner"); UIImagez bottomleftcorner = new UIImagez(bottomleftcornertexture); bottomleftcorner.HAlign = 0f; bottomleftcorner.VAlign = 1f; bottomleftcorner.Top.Set(0, 0); bottomleftcorner.Width.Set(64, 0); bottomleftcorner.Height.Set(64, 0); mainPanel.Append(bottomleftcorner); Texture2D topleftcornertexture = ModContent.GetTexture("Terramon/UI/Starter/TopLeftCorner"); UIImagez topleftcorner = new UIImagez(topleftcornertexture); topleftcorner.HAlign = 0f; topleftcorner.VAlign = 0f; topleftcorner.Top.Set(0, 0); topleftcorner.Width.Set(64, 0); topleftcorner.Height.Set(64, 0); mainPanel.Append(topleftcorner); Texture2D bottomrightcornertexture = ModContent.GetTexture("Terramon/UI/Starter/BottomRightCorner"); UIImagez bottomrightcorner = new UIImagez(bottomrightcornertexture); bottomrightcorner.HAlign = 1f; bottomrightcorner.VAlign = 1f; bottomrightcorner.Top.Set(0, 0); bottomrightcorner.Width.Set(64, 0); bottomrightcorner.Height.Set(64, 0); mainPanel.Append(bottomrightcorner); Texture2D toprightcornertexture = ModContent.GetTexture("Terramon/UI/Starter/TopRightCorner"); UIImagez toprightcorner = new UIImagez(toprightcornertexture); toprightcorner.HAlign = 1f; toprightcorner.VAlign = 0f; toprightcorner.Top.Set(0, 0); toprightcorner.Width.Set(64, 0); toprightcorner.Height.Set(64, 0); mainPanel.Append(toprightcorner); Texture2D test = ModContent.GetTexture("Terramon/UI/PossibleAssets/Text"); UIImagez testmenu = new UIImagez(test); testmenu.HAlign = 0.5f; // 1 testmenu.VAlign = 0.3f; // 1 testmenu.Width.Set(391, 0); testmenu.Height.Set(99, 0); mainPanel.Append(testmenu); Texture2D bulbasaurTexture = ModContent.GetTexture("Terramon/UI/PossibleAssets/Bulbasaur"); UIImagez bulbasaurTextureButton = new UIImagez(bulbasaurTexture); // Localized text for "Close" bulbasaurTextureButton.HAlign = 0.35f; // 1 bulbasaurTextureButton.VAlign = 0.5f; // 1bulbasaurTextureButton.Left.Set(63, 0f); bulbasaurTextureButton.Width.Set(100, 0f); bulbasaurTextureButton.Height.Set(92, 0f); mainPanel.Append(bulbasaurTextureButton); Texture2D charmanderTexture = ModContent.GetTexture("Terramon/UI/PossibleAssets/Charmander"); UIHoverImageButton charmanderTextureButton = new UIHoverImageButton(charmanderTexture, "Charmander"); // Localized text for "Close" charmanderTextureButton.HAlign = 0.5f; // 1 charmanderTextureButton.VAlign = 0.5f; // 1bulbasaurTextureButton.Left.Set(63, 0f); charmanderTextureButton.Width.Set(100, 0f); charmanderTextureButton.Height.Set(92, 0f); charmanderTextureButton.OnClick += new MouseEvent(charmanderTextureButtonClicked); mainPanel.Append(charmanderTextureButton); Texture2D squirtleTexture = ModContent.GetTexture("Terramon/UI/PossibleAssets/Squirtle"); UIHoverImageButton squirtleTextureButton = new UIHoverImageButton(squirtleTexture, "Squirtle"); // Localized text for "Close" squirtleTextureButton.HAlign = 0.65f; // 1 squirtleTextureButton.VAlign = 0.5f; // 1bulbasaurTextureButton.Left.Set(63, 0f); squirtleTextureButton.Width.Set(100, 0f); squirtleTextureButton.Height.Set(92, 0f); squirtleTextureButton.OnClick += new MouseEvent(squirtleTextureButtonClicked); mainPanel.Append(squirtleTextureButton); Texture2D bulbasaurTextTexture = ModContent.GetTexture("Terramon/UI/PossibleAssets/BulbasaurText"); UIImagez bulbasaurText = new UIImagez(bulbasaurTextTexture); bulbasaurText.HAlign = 0.5f; // 1 bulbasaurText.VAlign = 0.69f; // 1 bulbasaurText.Width.Set(307, 0); bulbasaurText.Height.Set(57, 0); mainPanel.Append(bulbasaurText); Texture2D chooseTexture = ModContent.GetTexture("Terramon/UI/PossibleAssets/Choose"); UIHoverImageButton choose = new UIHoverImageButton(chooseTexture, "Choose Bulbasaur!"); choose.HAlign = 0.5f; // 1 choose.VAlign = 0.8f; // 1 choose.Width.Set(153, 0); choose.Height.Set(43, 0); choose.OnClick += new MouseEvent(Chosen); mainPanel.Append(choose); Append(mainPanel); // As a recap, ExampleUI is a UIState, meaning it covers the whole screen. We attach mainPanel to ExampleUI some distance from the top left corner. // We then place playButton, closeButton, and moneyDiplay onto mainPanel so we can easily place these UIElements relative to mainPanel. // Since mainPanel will move, this proper organization will move playButton, closeButton, and moneyDiplay properly when mainPanel moves. }
public void LoadTexture() { Button = ModContent.GetTexture("AnotherRpgMod/Textures/UI/skill_tree"); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, ModContent.GetTexture("SpiritMod/NPCs/Critters/Floater_Critter_Glow")); }
public override void OnInitialize() { keyboardPanel = new UIPanel(); keyboardPanel.SetPadding(8); keyboardPanel.Left.Set(-550f, 1f); keyboardPanel.Top.Set(-370f, 1f); keyboardPanel.Width.Set(500f, 0f); keyboardPanel.Height.Set(300f, 0f); keyboardPanel.BackgroundColor = new Color(73, 94, 171); codeTextBox = new NewUITextBoxMultiLine("Type code here", 1f); codeTextBox.SetUnfocusKeys(false, false); codeTextBox.BackgroundColor = Color.Transparent; codeTextBox.BorderColor = Color.Transparent; codeTextBox.Left.Pixels = 0; codeTextBox.Top.Pixels = 0; codeTextBox.Width.Set(-20, 1f); //filterTextBox.OnTextChanged += () => { filterText = filterTextBox.Text; updateneeded = true; }; codeTextBox.OnEnterPressed += EnterAction; codeTextBox.OnTabPressed += TabAction; codeTextBox.OnUpPressed += UpAction; //keyboardPanel.Append(codeTextBox); replOutput = new UIList(); replOutput.Width.Set(-25f, 1f); // left spacing plus scrollbar //replOutput.Height.Set(-codeTextBox.GetDimensions().Height - 32, 1f); replOutput.Height.Set(-26, 1f); replOutput.Left.Set(0, 0f); //replOutput.Top.Set(codeTextBox.GetDimensions().Height, 0f); replOutput.Top.Set(0, 0f); replOutput.ListPadding = 10f; replOutput.Add(codeTextBox); keyboardPanel.Append(replOutput); keyboardScrollbar = new UIElements.FixedUIScrollbar(userInterface); keyboardScrollbar.SetView(100f, 1000f); keyboardScrollbar.Top.Pixels = codeTextBox.GetDimensions().Height; keyboardScrollbar.Height.Set(-26, 1f); keyboardScrollbar.Left.Set(-4, 0f); keyboardScrollbar.HAlign = 1f; keyboardPanel.Append(keyboardScrollbar); replOutput.SetScrollbar(keyboardScrollbar); UIImageButton clearButton = new UIHoverImageButton(ModContent.GetTexture("Terraria/UI/ButtonDelete"), "Clear REPL"); clearButton.OnClick += (a, b) => { pendingClear = true; codeTextBox.SetText(""); }; clearButton.Top.Set(-26, 1f); clearButton.Left.Set(26 * 0, 0f); keyboardPanel.Append(clearButton); UIImageButton resetButton = new UIHoverImageButton(ModContent.GetTexture("Terraria/UI/ButtonDelete"), "Reset REPL"); resetButton.OnClick += (a, b) => { pendingClear = true; codeTextBox.SetText(""); REPLTool.replBackend.Reset(); }; resetButton.Top.Set(-26, 1f); resetButton.Left.Set(26 * 1, 0f); keyboardPanel.Append(resetButton); UIImageButton eyeDropperButton = new UIHoverImageButton(ModdersToolkit.instance.GetTexture("UIElements/eyedropper"), "Tile Selector"); eyeDropperButton.Height.Pixels = 20; //eyeDropperButton.Width.Pixels = 20; eyeDropperButton.OnClick += EyeDropperButton_OnClick; eyeDropperButton.Top.Set(-26, 1f); eyeDropperButton.Left.Set(26 * 2, 0f); keyboardPanel.Append(eyeDropperButton); UIImageButton openText = new UIHoverImageButton(ModdersToolkit.instance.GetTexture("UIElements/CopyCodeButton"), "Open External Editor"); openText.OnClick += OpenTextButton_OnClick; openText.Top.Set(-26, 1f); openText.Left.Set(26 * 3, 0f); keyboardPanel.Append(openText); UIImageButton runText = new UIHoverImageButton(TextureManager.Load("Images/UI/ButtonPlay"), "Execute External Code"); runText.OnClick += RunTextButton_OnClick; runText.Top.Set(-26, 1f); runText.Left.Set(26 * 4, 0f); keyboardPanel.Append(runText); Append(keyboardPanel); }
public override void ModifyDrawLayers(Player player, List <PlayerLayer> layers) { var modPlayer = player.GetModPlayer <MrPlagueRaces.MrPlagueRacesPlayer>(); bool hideChestplate = modPlayer.hideChestplate; bool hideLeggings = modPlayer.hideLeggings; Main.playerTextures[0, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head"); Main.playerTextures[0, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2"); Main.playerTextures[0, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes"); Main.playerTextures[0, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[0, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_1"); } else { Main.playerTextures[0, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[0, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[0, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_1"); } else { Main.playerTextures[0, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[0, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[0, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_1"); } else { Main.playerTextures[0, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[0, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand"); Main.playerTextures[0, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[0, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_1"); } else { Main.playerTextures[0, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[0, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_1_2"); } else { Main.playerTextures[0, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[0, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_1_2"); } else { Main.playerTextures[0, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[1, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head"); Main.playerTextures[1, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2"); Main.playerTextures[1, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes"); Main.playerTextures[1, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[1, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_2"); } else { Main.playerTextures[1, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[1, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[1, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_2"); } else { Main.playerTextures[1, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[1, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[1, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_2"); } else { Main.playerTextures[1, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[1, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand"); Main.playerTextures[1, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[1, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_2"); } else { Main.playerTextures[1, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[1, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_2_2"); } else { Main.playerTextures[1, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[1, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_2_2"); } else { Main.playerTextures[1, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[2, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head"); Main.playerTextures[2, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2"); Main.playerTextures[2, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes"); Main.playerTextures[2, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[2, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_3"); } else { Main.playerTextures[2, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[2, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[2, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_3"); } else { Main.playerTextures[2, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[2, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[2, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_3"); } else { Main.playerTextures[2, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[2, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand"); Main.playerTextures[2, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[2, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_3"); } else { Main.playerTextures[2, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[2, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_3_2"); } else { Main.playerTextures[2, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[2, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_3_2"); } else { Main.playerTextures[2, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[3, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head"); Main.playerTextures[3, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2"); Main.playerTextures[3, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes"); Main.playerTextures[3, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[3, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_4"); } else { Main.playerTextures[3, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[3, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[3, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_4"); } else { Main.playerTextures[3, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[3, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[3, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_4"); } else { Main.playerTextures[3, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[3, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand"); Main.playerTextures[3, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[3, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_4"); } else { Main.playerTextures[3, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[3, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_4_2"); } else { Main.playerTextures[3, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[3, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_4_2"); } else { Main.playerTextures[3, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[8, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head"); Main.playerTextures[8, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2"); Main.playerTextures[8, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes"); Main.playerTextures[8, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[8, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_9"); } else { Main.playerTextures[8, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[8, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[8, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_9"); } else { Main.playerTextures[8, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[8, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[8, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_9"); } else { Main.playerTextures[8, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[8, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand"); Main.playerTextures[8, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[8, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_9"); } else { Main.playerTextures[8, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[8, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_9_2"); } else { Main.playerTextures[8, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[8, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_9_2"); } else { Main.playerTextures[8, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[4, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head_Female"); Main.playerTextures[4, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2_Female"); Main.playerTextures[4, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_Female"); Main.playerTextures[4, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[4, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_5"); } else { Main.playerTextures[4, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[4, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[4, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_5"); } Main.playerTextures[4, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[4, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_5"); } else { Main.playerTextures[4, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[4, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand_Female"); Main.playerTextures[4, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs_Female"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[4, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_5"); } else { Main.playerTextures[4, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[4, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_5_2"); } else { Main.playerTextures[4, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[4, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_5_2"); } else { Main.playerTextures[4, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[5, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head_Female"); Main.playerTextures[5, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2_Female"); Main.playerTextures[5, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_Female"); Main.playerTextures[5, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[5, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_6"); } else { Main.playerTextures[5, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[5, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[5, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_6"); } Main.playerTextures[5, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[5, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_6"); } else { Main.playerTextures[5, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[5, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand_Female"); Main.playerTextures[5, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs_Female"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[5, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_6"); } else { Main.playerTextures[5, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[5, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_6_2"); } else { Main.playerTextures[5, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[5, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_6_2"); } else { Main.playerTextures[5, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[6, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head_Female"); Main.playerTextures[6, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2_Female"); Main.playerTextures[6, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_Female"); Main.playerTextures[6, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[6, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_7"); } else { Main.playerTextures[6, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[6, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[6, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_7"); } Main.playerTextures[6, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[6, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_7"); } else { Main.playerTextures[6, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[6, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand_Female"); Main.playerTextures[6, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs_Female"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[6, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_7"); } else { Main.playerTextures[6, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[6, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_7_2"); } else { Main.playerTextures[6, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[6, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_7_2"); } else { Main.playerTextures[6, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[7, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head_Female"); Main.playerTextures[7, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2_Female"); Main.playerTextures[7, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_Female"); Main.playerTextures[7, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[7, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_8"); } else { Main.playerTextures[7, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[7, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[7, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_8"); } Main.playerTextures[7, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[7, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_8"); } else { Main.playerTextures[7, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[7, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand_Female"); Main.playerTextures[7, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs_Female"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[7, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_8"); } else { Main.playerTextures[7, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[7, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_8_2"); } else { Main.playerTextures[7, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[7, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_8_2"); } else { Main.playerTextures[7, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[9, 0] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Head_Female"); Main.playerTextures[9, 1] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_2_Female"); Main.playerTextures[9, 2] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Eyes_Female"); Main.playerTextures[9, 3] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Torso_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[9, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeves_10"); } else { Main.playerTextures[9, 4] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[9, 5] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hands_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[9, 6] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Shirt_10"); } Main.playerTextures[9, 7] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Arm_Female"); if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[9, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_10"); } else { Main.playerTextures[9, 8] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } Main.playerTextures[9, 9] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Hand_Female"); Main.playerTextures[9, 10] = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Legs_Female"); if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[9, 11] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_10"); } else { Main.playerTextures[9, 12] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[1].type == ItemID.FamiliarShirt || player.armor[11].type == ItemID.FamiliarShirt) && !hideChestplate) { Main.playerTextures[9, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Sleeve_10_2"); } else { Main.playerTextures[9, 13] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } if ((player.armor[2].type == ItemID.FamiliarPants || player.armor[12].type == ItemID.FamiliarPants) && !hideLeggings) { Main.playerTextures[9, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Pants_10_2"); } else { Main.playerTextures[9, 14] = ModContent.GetTexture("MrPlagueRaces/Content/RaceTextures/Blank"); } for (int i = 0; i < 133; i++) { Main.playerHairTexture[i] = ModContent.GetTexture($"ShaggyAddonRaces/Content/RaceTextures/Baphoma/Hair/Examplian_Hair_{i + 1}"); Main.playerHairAltTexture[i] = ModContent.GetTexture($"ShaggyAddonRaces/Content/RaceTextures/Baphoma/Hair/Examplian_HairAlt_{i + 1}"); } Main.ghostTexture = ModContent.GetTexture("ShaggyAddonRaces/Content/RaceTextures/Baphoma/Baphoma_Ghost"); }
public UIHoverImageButton(string texture, string hoverText) : base(ModContent.GetTexture(texture)) { HoverText = hoverText; Texture = texture; }
public override DrawDataInfo GetData(PlayerDrawSet info) { _glowTexture ??= ModContent.GetTexture("ModLoader/Developer.Jofairden.PowerRanger_Body_Body_Glow"); return(GetBodyDrawDataInfo(info, _glowTexture.Value)); }
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) => GlowmaskUtils.DrawItemGlowMaskWorld(spriteBatch, item, ModContent.GetTexture(Texture + "_glow"), rotation, scale);
public override void AI() { npc.wet = false; npc.lavaWet = false; npc.honeyWet = false; npc.velocity.X = npc.velocity.Y = 0f; npc.dontTakeDamage = true; npc.immune[255] = 30; if (WorldGen.crimson) { Main.npcTexture[npc.type] = ModContent.GetTexture("Antiaris/NPCs/Miscellaneous/BrokenMirror2"); } else { Main.npcTexture[npc.type] = ModContent.GetTexture("Antiaris/NPCs/Miscellaneous/BrokenMirror"); } if (Main.npc[(int)npc.ai[2]].active && Main.npc[(int)npc.ai[2]].type == mod.NPCType("TowerKeeperNonActive")) { this.startRitual = false; } if (mod.GetModWorld <AntiarisWorld>().DownedTowerKeeper) { this.startRitual = false; } foreach (var golem in Main.npc) { if (!golem.active && (golem.type == mod.NPCType("TowerKeeperNonActive") || golem.type == mod.NPCType("TowerKeeper") || golem.type == mod.NPCType("TowerKeeper2")) && !mod.GetModWorld <AntiarisWorld>().DownedTowerKeeper) { npc.Transform(mod.NPCType("Mirror")); } } if (startRitual) { npc.ai[0] = -1f; npc.ai[1] = 0.0f; int x = (int)npc.Center.X / 16 + 2; int y = (int)npc.Center.Y / 16 - 15; int boss = NPC.NewNPC(x * 16 + 10, y * 16 - 2, mod.NPCType("TowerKeeperNonActive"), 0, 0.0f, 0.0f, 0.0f, 0.0f, 255); npc.ai[2] = (float)boss; npc.netUpdate = true; startRitual = false; } if (!startRitual && !mod.GetModWorld <AntiarisWorld>().DownedTowerKeeper) { if (Main.npc[(int)npc.ai[2]].alpha == 0) { ++npc.ai[3]; } if ((double)npc.ai[3] % 3.0 == 1.0 && (double)npc.ai[3] >= 200.0 && (double)npc.ai[3] < 300.0 && Main.netMode != 1) { float speed = (float)(3.0 + (double)Main.rand.NextFloat() * 6.0); Vector2 start = Vector2.UnitY.RotatedByRandom(6.28318548202515); Projectile.NewProjectile(npc.Center.X, npc.Center.Y, start.X * speed, start.Y * speed, mod.ProjectileType("Energy"), 0, 0.0f, Main.myPlayer, Main.npc[(int)npc.ai[2]].Center.X, Main.npc[(int)npc.ai[2]].Center.Y - 42f); } } if (Main.netMode != 1) { npc.homeless = false; npc.homeTileX = -1; npc.homeTileY = -1; npc.netUpdate = true; } }
// ... void IGlowingItem.DrawItemGlowmask(PlayerDrawInfo drawInfo) { OrchidHelper.DrawSimpleItemGlowmaskOnPlayer(drawInfo, ModContent.GetTexture(this.Texture + "_Glow")); }