terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Draw() [3/5]

static GUITransactionButton.InputState GUITransactionButton.Draw ( TransactionButton_Layout layout,
Microsoft::Xna::Framework::Graphics::Texture2D itemTexture,
Rectangle srcRect,
Microsoft::Xna::Framework::Graphics::Texture2D itemTextureHighlight,
Rectangle srcRectHighlight,
string label,
bool disabled,
float scale,
Microsoft::Xna::Framework::Graphics::Color? overloadedItemColour,
bool forcedPressed = false,
bool hasControllerFocus = false,
bool forceOver = false,
bool disablePressedState = false )
inlinestatic

Definition at line 383 of file GUITransactionButton.cs.

384 {
385 int num = 1;
386 if (num == 0)
387 {
388 }
389 if (num == 0)
390 {
391 }
392 bool mouseLeft = Main.mouseLeft;
393 int num2 = 67;
394 if (num2 != 0)
395 {
396 if (num2 == 0)
397 {
398 }
400 if (num2 == 0)
401 {
402 }
403 bool mouseLeftRelease = Main.mouseLeftRelease;
404 }
408 if (texture2D != null)
409 {
411 if (texture2D2 == null)
412 {
413 goto IL_005C;
414 }
416 if (texture2D3 != null)
417 {
418 }
419 }
420 long num3 = 0L;
421 IL_005C:
423 int width = texture2D4.Width;
424 int arraySize = texture2D4.ArraySize;
425 global::Cursor cursor;
426 if ((num3 == 0L && num3 == 0L) || cursor != null)
427 {
428 }
429 if (width == 0)
430 {
431 }
433 int num4;
434 int num6;
435 if (rectangle != null && rectangle == null)
436 {
438 global::Cursor cursor2;
439 if (texture2D5 == null || cursor2 != null)
440 {
441 }
442 int width2 = texture2D4.Width;
443 int arraySize2 = texture2D4.ArraySize;
444 num4 = 32640;
445 int num5 = 32768;
447 int width3 = texture2D6.Width;
448 int arraySize3 = texture2D6.ArraySize;
449 if (42190736 != 0)
450 {
451 }
452 if (42190736 == 0)
453 {
454 }
455 num6 = 32640;
456 if (num5 == 0)
457 {
458 }
459 }
461 if (rectangle2 == null)
462 {
463 }
464 if (num4 == 0)
465 {
466 return;
467 }
468 if (rectangle2 != null)
469 {
470 if (rectangle2 == null)
471 {
472 }
473 if (rectangle2 == null)
474 {
475 }
476 }
477 if (rectangle2 == null)
478 {
479 }
480 if (rectangle2 == null)
481 {
482 }
483 int width4 = texture2D4.Width;
484 int height = texture2D4.Height;
485 if (rectangle2 == null)
486 {
487 }
488 if (num6 == 0)
489 {
490 }
491 if (disabled)
492 {
493 return;
494 }
495 }
class f__AnonymousType0<< Count > j__TPar
static bool mouseLeftRelease
Definition Main.cs:2029
static bool mouseLeft
Definition Main.cs:671

References j__TPar, System.L, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, Microsoft.Xna.Framework.Graphics.Texture2D.Width, and Microsoft.Xna.Framework.Rectangle.Width.