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

◆ GetSelectedItemRegion()

Rectangle GUIControllerRubbleMaker.GetSelectedItemRegion ( )
inline

Implements GUIControllerItem.

Definition at line 60 of file GUIControllerRubbleMaker.cs.

61 {
62 bool flag;
64 do
65 {
68 if (!this.wasInFilterGrid)
69 {
71 }
72 this.ClampMaterialGrid();
73 if (this.inGrid)
74 {
75 this.ClampRubbleGrid();
76 }
83 Vector2 firstItemLocation = materialOptions.FirstItemLocation;
84 float x = materialOptions.FirstItemLocation.X;
85 float y = materialOptions.FirstItemLocation.Y;
86 if (instance2 == null)
87 {
88 }
89 float x2 = materialOptions.ExtraElementSpacing.X;
90 int num = this.filterGridRow;
91 int num2 = this.filterGridCol;
92 if (this.inGrid)
93 {
98 float rubbleScale = instance4.RubbleScale;
100 Vector2 firstItemLocation2 = rubbleOptions2.FirstItemLocation;
101 float x3 = rubbleOptions2.FirstItemLocation.X;
102 float y2 = rubbleOptions2.FirstItemLocation.Y;
103 if (instance4 == null)
104 {
105 }
106 float x4 = rubbleOptions2.ExtraElementSpacing.X;
107 int num3 = this.gridRow;
108 int num4 = this.gridCol;
109 float y3 = rubbleOptions2.ExtraElementSpacing.Y;
110 }
111 flag = this.filterButton;
112 instance5 = RubbleMakerUI_Layout.Instance;
113 }
114 while (!flag);
115 Texture_Layout backingDisabled = instance5.MaterialToggle.BackingDisabled;
117 return rectangle2;
118 }
class f__AnonymousType0<< Count > j__TPar
static void SetMainMenuPageRegion(Rectangle region)
Vector2 ExtraElementSpacing
static RubbleMakerUI_Layout Instance
ItemGrid_Layout MaterialOptions
ItemGrid_Layout RubbleOptions

References ClampMaterialGrid(), ClampRubbleGrid(), ItemGrid_Layout.ExtraElementSpacing, filterButton, filterGridCol, filterGridRow, gridCol, gridRow, inGrid, RubbleMakerUI_Layout.Instance, j__TPar, RubbleMakerUI_Layout.MaterialOptions, RubbleMakerUI_Layout.MaterialScale, RubbleMakerUI_Layout.RubbleOptions, RubbleMakerUI_Layout.RubbleScale, ControlAnchor.SetMainMenuPageRegion(), wasInFilterGrid, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.