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

◆ DrawWaterfall() [2/2]

void Terraria.WaterfallManager.DrawWaterfall ( int waterfallType,
int x,
int y,
float opacity,
Vector2 position,
Rectangle sourceRect,
Color color,
SpriteEffects effects )
inlineprivate

Definition at line 1038 of file WaterfallManager.cs.

1039 {
1040 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
1041 //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
1042 //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
1043 //IL_00d4: Unknown result type (might be due to invalid IL or missing references)
1044 //IL_00da: Unknown result type (might be due to invalid IL or missing references)
1045 //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
1046 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
1047 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
1048 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
1049 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
1050 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
1051 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
1052 //IL_0061: Unknown result type (might be due to invalid IL or missing references)
1053 //IL_0088: Unknown result type (might be due to invalid IL or missing references)
1054 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
1055 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
1056 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
1057 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
1058 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
1059 //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
1060 Texture2D value = waterfallTexture[waterfallType].Value;
1061 if (waterfallType == 25)
1062 {
1063 Lighting.GetCornerColors(x, y, out var vertices);
1065 Main.tileBatch.Draw(value, position + new Vector2(0f, 0f), sourceRect, vertices, default(Vector2), 1f, effects);
1066 sourceRect.Y += 42;
1068 Main.tileBatch.Draw(value, position + new Vector2(0f, 0f), sourceRect, vertices, default(Vector2), 1f, effects);
1069 }
1070 else
1071 {
1072 Main.spriteBatch.Draw(value, position, (Rectangle?)sourceRect, color, 0f, default(Vector2), 1f, effects, 0f);
1073 }
1074 }
static void SetShimmerVertexColors(ref VertexColors colors, float opacity, int x, int y)
static VertexColors SetShimmerVertexColors_Sparkle(ref VertexColors colors, float opacity, int x, int y, bool top)
Asset< Texture2D >[] waterfallTexture

References Terraria.Lighting.GetCornerColors(), Terraria.GameContent.Liquid.LiquidRenderer.SetShimmerVertexColors(), Terraria.GameContent.Liquid.LiquidRenderer.SetShimmerVertexColors_Sparkle(), Terraria.Main.spriteBatch, Terraria.Main.tileBatch, and Terraria.WaterfallManager.waterfallTexture.

+ Here is the call graph for this function: