diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index f888f91cbc..e90c4502bf 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -58,6 +58,7 @@ using CalamityMod.Systems; using CalamityMod.Tiles.FurnitureAuric; using CalamityMod.Tiles.Ores; using CalamityMod.UI; +using CalamityMod.UI.DebuffSystem; using CalamityMod.Walls.DraedonStructures; using CalamityMod.World; using Microsoft.CodeAnalysis; diff --git a/UI/BestiaryDebuffInfo.cs b/UI/DebuffSystem/BestiaryDebuffInfo.cs similarity index 79% rename from UI/BestiaryDebuffInfo.cs rename to UI/DebuffSystem/BestiaryDebuffInfo.cs index e22956d6ce..1a08b81c3f 100644 --- a/UI/BestiaryDebuffInfo.cs +++ b/UI/DebuffSystem/BestiaryDebuffInfo.cs @@ -4,9 +4,10 @@ using Terraria; using Terraria.GameContent.Bestiary; using Terraria.GameContent.UI.Elements; using Terraria.Localization; +using Terraria.ModLoader; using Terraria.UI; -namespace CalamityMod.UI +namespace CalamityMod.UI.DebuffSystem { public class BestiaryDebuffInfo : IBestiaryInfoElement { @@ -51,16 +52,36 @@ namespace CalamityMod.UI // Add all five elements to the panel, each one below the previous for (int i = 0; i < 5; i++) { + string path = "CalamityMod/UI/DebuffSystem/"; + switch (i) + { + case 0: + path += "Heat"; + break; + case 1: + path += "Sickness"; + break; + case 2: + path += "Cold"; + break; + case 3: + path += "Electricity"; + break; + case 4: + path += "Water"; + break; + } + path += "DebuffType"; float topPos = 0.2f + i * 0.175f; // Icon - UIImage elementImage = new UIImage(Main.Assets.Request("Images/UI/Bestiary/Stat_Knockback")) + UIImage elementImage = new UIImage(ModContent.Request(path)) { HAlign = 0f, VAlign = 0f, Width = StyleDimension.FromPixelsAndPercent(0f, 1f), Height = StyleDimension.FromPixelsAndPercent(0f, 1f), Top = new StyleDimension(0f, topPos - 0.0525f), - Left = new StyleDimension(0f, 0f), + Left = new StyleDimension(8f, 0f), ImageScale = 0.8f, }; backgroundPanel.Append(elementImage); diff --git a/UI/DebuffSystem/ColdDebuffType.png b/UI/DebuffSystem/ColdDebuffType.png new file mode 100644 index 0000000000..eb0a88f11a Binary files /dev/null and b/UI/DebuffSystem/ColdDebuffType.png differ diff --git a/UI/DebuffSystem/ElectricityDebuffType.png b/UI/DebuffSystem/ElectricityDebuffType.png new file mode 100644 index 0000000000..30539636b2 Binary files /dev/null and b/UI/DebuffSystem/ElectricityDebuffType.png differ diff --git a/UI/DebuffSystem/HeatDebuffType.png b/UI/DebuffSystem/HeatDebuffType.png new file mode 100644 index 0000000000..8b25d715bb Binary files /dev/null and b/UI/DebuffSystem/HeatDebuffType.png differ diff --git a/UI/DebuffSystem/SicknessDebuffType.png b/UI/DebuffSystem/SicknessDebuffType.png new file mode 100644 index 0000000000..db56ba8449 Binary files /dev/null and b/UI/DebuffSystem/SicknessDebuffType.png differ diff --git a/UI/DebuffSystem/WaterDebuffType.png b/UI/DebuffSystem/WaterDebuffType.png new file mode 100644 index 0000000000..1e41f4d471 Binary files /dev/null and b/UI/DebuffSystem/WaterDebuffType.png differ