If this hook is called on leg armor, equipSlot allows you to modify the leg armor the player appears to be wearing, and the robes parameter is useless. If you modify it, make sure to set robes to true. If this hook is called on body armor, equipSlot allows you to modify the leg armor the player appears to be wearing. You can find the vanilla equipment IDs by looking at the headSlot, bodySlot, and legSlot fields for items, and modded equipment IDs by looking at EquipLoader. Worn equipment has a separate set of IDs. Note that equipSlot is not the same as the item type of the armor the player will appear to be wearing. This hook will only be called for head, body and leg textures. SetMatch (bool male, ref int equipSlot, ref bool robes)Īllows you to modify the equipment that the player appears to be wearing. By default this will call the associated ModItem's PreUpdateVanitySet if there is an associated ModItem. This hook is called regardless of whether the player is frozen in any way. More.Īllows you to create special effects (such as the necro armor's hurt noise) when the player wears this equipment texture's vanity set. By default this will return the same thing as the associated ModItem's IsVanitySet, or false if no ModItem is associated. This hook is used for the PreUpdateVanitySet, UpdateVanitySet, and ArmorSetShadow hooks. Returns whether or not the head armor, body armor, and leg armor textures make up a set. IsVanitySet (int head, int body, int legs) HorizontalWingSpeeds (Player player, ref float speed, ref float acceleration)Īllows you to modify horizontal wing speeds. By default this will return the associated ModItem's DrawLegs, or true if there is no associated ModItem. Return false to hide the player's legs when this leg or shoe equipment texture is worn. By default this will return the associated ModItem's DrawHead, or true if there is no associated ModItem. Return false to hide the player's head when this head equipment texture is worn. If there is an associated ModItem, by default this will call that ModItem's DrawHands. Note that if drawHands is false, the arms will not be drawn either. More.ĭrawHands (ref bool drawHands, ref bool drawArms)Īllows you to determine whether the skin/shirt on the player's arms and hands are drawn when this body equipment texture is worn. If there is an associated ModItem, by default this will call that ModItem's DrawHair. More.ĭrawHair (ref bool drawHair, ref bool drawAltHair)Īllows you to determine whether the player's hair or alt (hat) hair draws when this head equipment texture is worn. By default this will return the associated ModItem's DrawBody, or true if there is no associated ModItem. Return false to hide the player's body when this body equipment texture is worn. By default this will call the associated ModItem's DrawArmorColor if there is an associated ModItem. More.ĭrawArmorColor (Player drawPlayer, float shadow, ref Color color, ref int glowMask, ref Color glowMaskColor)Īllows you to modify the colors in which this armor texture and surrounding accessories are drawn, in addition to which glow mask and in what color is drawn. By default this will call the associated ModItem's ArmorSetShadows if there is an associated ModItem.
#TERRARIA 1.1 TEXTURES CODE#
More.Īllows you to determine special visual effects this vanity set has on the player without having to code them yourself. By default this will call the associated ModItem's ArmorArmGlowMask if there is an associated ModItem. Note that this is only called for body equipment textures. Note that this class is purely for visual effects.ĪrmorArmGlowMask (Player drawPlayer, float shadow, ref int glowMask, ref Color color)Īllows you to modify which glow mask and in what color is drawn on the player's arms. This is useful for equipment slots that do not have any item associated with them (for example, the Werewolf buff). This serves as a place for you to program behaviors of equipment textures.