This is a Terraria mod designed to allow players to apply the game's many "dyes" to their weapons (and various other items). Projectiles fired by weapons are also affected.
As of 1.0, Item Customizer now supports some weak referencing using Mod.Call()
.
These are:
Call(“GetItemShader”, Item item)
: returns anint
, the shader ID of the given itemCall(“SetItemShader”, Item item, ShaderID shaderID)
: sets the item’s shader ID to the one givenCall(“GetProjShader”, Projectile proj)
: returns anint
, the shader ID of the given projectileCall(“SetProjShader”, Projectile proj, int shaderID)
: sets the projectile’s shader ID to the one givenCall("GetItemName", Item item)
: returns astring
, the item's set custom nameCall("SetItemName", Item item, string name)
: sets the item's custom name to the given string Functions that don't return anything will instead returntrue
on successful completion. Any incorrect inputs will be caught and the method will return an Exception instead.