diff --git a/ExtraTextures/UI/EncryptedSchematicSlotEmpty.png b/ExtraTextures/UI/EncryptedSchematicSlotEmpty.png new file mode 100644 index 0000000000..75f2f538b5 Binary files /dev/null and b/ExtraTextures/UI/EncryptedSchematicSlotEmpty.png differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlotFullHell.png b/ExtraTextures/UI/EncryptedSchematicSlotFullHell.png new file mode 100644 index 0000000000..f22ba88155 Binary files /dev/null and b/ExtraTextures/UI/EncryptedSchematicSlotFullHell.png differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlotFullIce.png b/ExtraTextures/UI/EncryptedSchematicSlotFullIce.png new file mode 100644 index 0000000000..b886852a5a Binary files /dev/null and b/ExtraTextures/UI/EncryptedSchematicSlotFullIce.png differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlotFullJungle.png b/ExtraTextures/UI/EncryptedSchematicSlotFullJungle.png new file mode 100644 index 0000000000..e1c3851c0a Binary files /dev/null and b/ExtraTextures/UI/EncryptedSchematicSlotFullJungle.png differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlotFullPlanetoid.png b/ExtraTextures/UI/EncryptedSchematicSlotFullPlanetoid.png new file mode 100644 index 0000000000..2630435014 Binary files /dev/null and b/ExtraTextures/UI/EncryptedSchematicSlotFullPlanetoid.png differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlot_Empty.png b/ExtraTextures/UI/EncryptedSchematicSlot_Empty.png deleted file mode 100644 index 3cde1bf37a..0000000000 Binary files a/ExtraTextures/UI/EncryptedSchematicSlot_Empty.png and /dev/null differ diff --git a/ExtraTextures/UI/EncryptedSchematicSlot_Full.png b/ExtraTextures/UI/EncryptedSchematicSlot_Full.png deleted file mode 100644 index 8a72b7f261..0000000000 Binary files a/ExtraTextures/UI/EncryptedSchematicSlot_Full.png and /dev/null differ diff --git a/UI/CodebreakerUI.cs b/UI/CodebreakerUI.cs index 74af94253f..700caa2e2b 100644 --- a/UI/CodebreakerUI.cs +++ b/UI/CodebreakerUI.cs @@ -96,8 +96,21 @@ namespace CalamityMod.UI DrawDecryptCancelConfirmationText(textPanelCenter); // Draw the schematic icon. - Texture2D emptySchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlot_Empty"); - Texture2D occupiedSchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlot_Full"); + Texture2D emptySchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlotEmpty"); + Texture2D occupiedSchematicIconTexture = emptySchematicIconTexture; + int schematicType = 0; + + if (codebreakerTileEntity.HeldSchematicID > 0) + schematicType = CalamityLists.EncryptedSchematicIDRelationship[codebreakerTileEntity.HeldSchematicID]; + + if (schematicType == ModContent.ItemType()) + occupiedSchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlotFullPlanetoid"); + if (schematicType == ModContent.ItemType()) + occupiedSchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlotFullJungle"); + if (schematicType == ModContent.ItemType()) + occupiedSchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlotFullHell"); + if (schematicType == ModContent.ItemType()) + occupiedSchematicIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/EncryptedSchematicSlotFullIce"); Texture2D schematicTexture = codebreakerTileEntity.HeldSchematicID != 0 ? occupiedSchematicIconTexture : emptySchematicIconTexture; spriteBatch.Draw(schematicTexture, schematicSlotDrawCenter, null, Color.White, 0f, schematicTexture.Size() * 0.5f, 1f, SpriteEffects.None, 0f);