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

◆ Draw()

virtual bool Terraria.ModLoader.ModMount.Draw ( List< DrawData > playerDrawData,
int drawType,
Player drawPlayer,
ref Texture2D texture,
ref Texture2D glowTexture,
ref Vector2 drawPosition,
ref Rectangle frame,
ref Color drawColor,
ref Color glowColor,
ref float rotation,
ref SpriteEffects spriteEffects,
ref Vector2 drawOrigin,
ref float drawScale,
float shadow )
inlinevirtual

Allows for complete customization of mount drawing. This method will be called once for each supported mount texture layer that exists. Use drawType to conditionally apply changes. drawType corresponds to the following: 0: backTexture, 1: backTextureExtra, 2: frontTexture. 3: frontTextureExtra Corresponding glow textures, such as backTextureGlow, are paired with their corresponding texture and passed into this method as well. Return false if you are manually adding DrawData to playerDrawData to replace the vanilla draw behavior, otherwise tweak ref variables to customize the drawing and add additional DrawData to playerDrawData.

Parameters
playerDrawData
drawTypeCorresponds to the following: 0: backTexture, 1: backTextureExtra, 2: frontTexture. 3: frontTextureExtra
drawPlayer
texture
glowTextureThe corresponding glow texture, if present
drawPosition
frame
drawColor
glowColor
rotation
spriteEffects
drawOrigin
drawScale
shadow
Returns

Definition at line 217 of file ModMount.cs.

218 {
219 return true;
220 }