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()

override void GUIControllerMappingEntry.Draw ( )
inlinevirtual

Reimplemented from GUISettingEntry.

Definition at line 110 of file GUIControllerMappingEntry.cs.

111 {
112 bool flag = this.displayOptions;
113 if (flag && !this.drawingOverlay)
114 {
116 return;
117 }
118 if (this._optionsBlocker != null)
119 {
120 }
121 bool flag2;
122 if (flag)
123 {
124 flag2 = this.displayOptions;
125 }
128 {
129 if (!flag2)
130 {
131 }
132 return;
133 }
134 string title = this.GetTitle();
135 if (this.displayOptions)
136 {
137 int num = 1;
139 if (inputState2 != GUITransactionButton.InputState.Clicked || num == 0)
140 {
141 }
143 if (this.displayOptions)
144 {
146 if (controllerDevice == null)
147 {
148 goto IL_0243;
149 }
150 if (this.vector != null)
151 {
152 return;
153 }
154 return;
155 }
156 }
158 if (controllerActionVector != null)
159 {
162 float num2;
163 if (requiredStateExcludeLinked != null && requiredStateExcludeLinked.state)
164 {
167 return;
168 }
171 Axis axis = firstEntry.Axis0;
172 float threshold = controllerActionVector2.X.FirstEntry.Threshold;
174 return;
175 }
176 else
177 {
179 if (controllerActionButton != null)
180 {
183 if (requiredState != null && requiredState.state)
184 {
188 return;
189 }
194 return;
195 }
196 }
197 IL_0243:
198 int num3;
199 if (num3 == 0)
200 {
201 return;
202 }
203 }
class f__AnonymousType0<< Count > j__TPar
static Rectangle _gridItemRegion
ControllerActionAxis.Entry FirstEntry
ControllerActionButton.Entry.Type MappingType
ControllerActionButton.RequiredButtonState RequiredState
ControllerActionButton.Entry FirstEntry
ControllerActionButton.RequiredButtonState RequiredStateExcludeLinked
GUIInputRegionExclusive _optionsBlocker
static GUIControllerInputButton.AxisControl FromAxis(Axis axis, float threshold)
static GUIControllerInputButton.LinkedControlType FromButton(Buttons button)

References ControlAnchor._gridItemRegion, _optionsBlocker, button, displayOptions, drawingOverlay, Controller.ControllerActionAxis.FirstEntry, Controller.ControllerActionButton.FirstEntry, GUIControlsBanner.FromAxis(), GUIControlsBanner.FromButton(), GetTitle(), Controller.ControllerActionButton.HasMapping, Controller.ControllerActionVector.HasMappingExcludeLinked, j__TPar, Controller.ControllerActionButton.Entry.MappingType, Controller.ControllerActionButton.RequiredState, Controller.ControllerActionVector.RequiredStateExcludeLinked, Controller.ControllerActionButton.RequiredButtonState.state, vector, and Controller.ControllerActionVector.X.