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

◆ DrawInvBG() [2/3]

static void Terraria.Utils.DrawInvBG ( SpriteBatch sb,
int x,
int y,
int w,
int h,
Color c = default(Color) )
inlinestatic

Definition at line 2503 of file Utils.cs.

2504 {
2505 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
2506 //IL_0004: Unknown result type (might be due to invalid IL or missing references)
2507 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
2508 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
2509 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
2510 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
2511 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
2512 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
2513 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
2514 //IL_0080: Unknown result type (might be due to invalid IL or missing references)
2515 //IL_008c: Unknown result type (might be due to invalid IL or missing references)
2516 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
2517 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
2518 //IL_00bd: Unknown result type (might be due to invalid IL or missing references)
2519 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
2520 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
2521 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
2522 //IL_00f2: Unknown result type (might be due to invalid IL or missing references)
2523 //IL_010c: Unknown result type (might be due to invalid IL or missing references)
2524 //IL_0119: Unknown result type (might be due to invalid IL or missing references)
2525 //IL_0123: Unknown result type (might be due to invalid IL or missing references)
2526 //IL_013d: Unknown result type (might be due to invalid IL or missing references)
2527 //IL_0151: Unknown result type (might be due to invalid IL or missing references)
2528 //IL_015b: Unknown result type (might be due to invalid IL or missing references)
2529 //IL_0170: Unknown result type (might be due to invalid IL or missing references)
2530 //IL_0183: Unknown result type (might be due to invalid IL or missing references)
2531 //IL_018d: Unknown result type (might be due to invalid IL or missing references)
2532 //IL_01a7: Unknown result type (might be due to invalid IL or missing references)
2533 //IL_01bb: Unknown result type (might be due to invalid IL or missing references)
2534 //IL_01c5: Unknown result type (might be due to invalid IL or missing references)
2535 //IL_01df: Unknown result type (might be due to invalid IL or missing references)
2536 //IL_01fa: Unknown result type (might be due to invalid IL or missing references)
2537 //IL_0204: Unknown result type (might be due to invalid IL or missing references)
2538 if (c == default(Color))
2539 {
2540 c = new Color(63, 65, 151, 255) * 0.785f;
2541 }
2542 Texture2D value = TextureAssets.InventoryBack13.Value;
2543 if (w < 20)
2544 {
2545 w = 20;
2546 }
2547 if (h < 20)
2548 {
2549 h = 20;
2550 }
2551 sb.Draw(value, new Rectangle(x, y, 10, 10), (Rectangle?)new Rectangle(0, 0, 10, 10), c);
2552 sb.Draw(value, new Rectangle(x + 10, y, w - 20, 10), (Rectangle?)new Rectangle(10, 0, 10, 10), c);
2553 sb.Draw(value, new Rectangle(x + w - 10, y, 10, 10), (Rectangle?)new Rectangle(value.Width - 10, 0, 10, 10), c);
2554 sb.Draw(value, new Rectangle(x, y + 10, 10, h - 20), (Rectangle?)new Rectangle(0, 10, 10, 10), c);
2555 sb.Draw(value, new Rectangle(x + 10, y + 10, w - 20, h - 20), (Rectangle?)new Rectangle(10, 10, 10, 10), c);
2556 sb.Draw(value, new Rectangle(x + w - 10, y + 10, 10, h - 20), (Rectangle?)new Rectangle(value.Width - 10, 10, 10, 10), c);
2557 sb.Draw(value, new Rectangle(x, y + h - 10, 10, 10), (Rectangle?)new Rectangle(0, value.Height - 10, 10, 10), c);
2558 sb.Draw(value, new Rectangle(x + 10, y + h - 10, w - 20, 10), (Rectangle?)new Rectangle(10, value.Height - 10, 10, 10), c);
2559 sb.Draw(value, new Rectangle(x + w - 10, y + h - 10, 10, 10), (Rectangle?)new Rectangle(value.Width - 10, value.Height - 10, 10, 10), c);
2560 }
static Asset< Texture2D > InventoryBack13

References Terraria.GameContent.TextureAssets.InventoryBack13.