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

◆ DrawPanel()

static void Terraria.Utils.DrawPanel ( Texture2D texture,
int edgeWidth,
int edgeShove,
SpriteBatch spriteBatch,
Vector2 position,
float width,
Color color )
inlinestatic

Definition at line 2631 of file Utils.cs.

2632 {
2633 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
2634 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
2635 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
2636 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
2637 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
2638 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
2639 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
2640 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
2641 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
2642 //IL_007c: Unknown result type (might be due to invalid IL or missing references)
2643 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
2644 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
2645 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
2646 //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
2647 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
2648 spriteBatch.Draw(texture, position, (Rectangle?)new Rectangle(0, 0, edgeWidth, texture.Height), color);
2649 spriteBatch.Draw(texture, new Vector2(position.X + (float)edgeWidth, position.Y), (Rectangle?)new Rectangle(edgeWidth + edgeShove, 0, texture.Width - (edgeWidth + edgeShove) * 2, texture.Height), color, 0f, Vector2.Zero, new Vector2((width - (float)(edgeWidth * 2)) / (float)(texture.Width - (edgeWidth + edgeShove) * 2), 1f), (SpriteEffects)0, 0f);
2650 spriteBatch.Draw(texture, new Vector2(position.X + width - (float)edgeWidth, position.Y), (Rectangle?)new Rectangle(texture.Width - edgeWidth, 0, edgeWidth, texture.Height), color);
2651 }

Referenced by Terraria.GameContent.UI.Elements.UIHorizontalSeparator.DrawSelf(), Terraria.Utils.DrawSettings2Panel(), and Terraria.Utils.DrawSettingsPanel().

+ Here is the caller graph for this function: