TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DefaultToGuitar()

void Terraria.Item.DefaultToGuitar ( int newwidth = 24,
int newheight = 24 )
inline

Definition at line 48745 of file Item.cs.

48746 {
48747 width = newwidth;
48748 height = newheight;
48749 autoReuse = true;
48750 holdStyle = 5;
48751 useStyle = 12;
48752 useAnimation = (useTime = 12);
48753 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
int useAnimation
The time span of the using animation for the item in ticks. This is independent of the time it takes ...
Definition Item.cs:384
int useStyle
Assign to an T:Terraria.ID.ItemUseStyleID value to give this item a specific animation while in use....
Definition Item.cs:366
int holdStyle
Assign to an T:Terraria.ID.ItemHoldStyleID value to give this item a specific animation while the pla...
Definition Item.cs:360
int useTime
The time span of using the item in ticks. This is independent of the time it takes for the item anima...
Definition Item.cs:391
bool autoReuse
Whether the item is in continuous use while the mouse button is held down. Defaults to false.
Definition Item.cs:494

References Terraria.Item.autoReuse, Terraria.Entity.height, Terraria.Item.holdStyle, Terraria.Item.useAnimation, Terraria.Item.useStyle, Terraria.Item.useTime, and Terraria.Entity.width.

Referenced by Terraria.Item.SetDefaults5().

+ Here is the caller graph for this function: