tModLoader v2024.02
A mod to make and play Terraria mods
SettingsForCharacterPreview Class Reference

Classes

struct  SelectionBasedSettings
 

Public Member Functions

void ApplyTo (Projectile proj, bool walking)
 
delegate void CustomAnimationCode (Projectile proj, bool walking)
 
SettingsForCharacterPreview WhenNotSelected (int? startFrame=null, int? frameCount=null, int? delayPerFrame=null, bool? bounceLoop=null)
 
SettingsForCharacterPreview WhenSelected (int? startFrame=null, int? frameCount=null, int? delayPerFrame=null, bool? bounceLoop=null)
 
SettingsForCharacterPreview WithCode (CustomAnimationCode customAnimation)
 
SettingsForCharacterPreview WithOffset (float x, float y)
 
SettingsForCharacterPreview WithOffset (Vector2 offset)
 
SettingsForCharacterPreview WithSpriteDirection (int spriteDirection)
 

Public Attributes

CustomAnimationCode CustomAnimation
 
SelectionBasedSettings NotSelected
 
Vector2 Offset
 
SelectionBasedSettings Selected
 
int SpriteDirection = 1