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

void GUIKeyboardMappingEntry.Draw ( )
inline

Definition at line 137 of file GUIKeyboardMappingEntry.cs.

138 {
139 bool flag = this.displayOptions;
140 if (flag && !this.drawingOverlay)
141 {
143 return;
144 }
145 if (this._optionsBlocker != null)
146 {
147 }
148 bool flag2;
149 if (flag)
150 {
151 flag2 = this.displayOptions;
152 }
155 {
156 }
157 string <Value>k__BackingField = Language.GetText(this.localisationId).<Value>k__BackingField;
158 if (this.displayOptions)
159 {
160 int num = 1;
163 {
164 if (num == 0)
165 {
166 }
168 }
171 {
172 Main.mouseLeftRelease = false;
173 this.RemoveBinding();
174 }
175 bool flag3 = this.displayOptions;
176 if (flag3)
177 {
178 if (!flag3)
179 {
180 }
181 if (!false)
182 {
183 }
185 return;
186 }
187 }
188 if (this.Binding != KeyCode.None)
189 {
190 string text = this.Binding.ToString();
191 string textValue = Language.GetTextValue("KeyboardBindings." + text);
192 return;
193 }
194 LocalizedText text2 = Language.GetText("Mobile.UnboundControl");
195 string <Value>k__BackingField2 = text2.<Value>k__BackingField;
196 if (text2 == null)
197 {
198 }
199 bool mouseLeftRelease = Main.mouseLeftRelease;
200 if (text2 == null)
201 {
202 }
203 bool mouseLeft = Main.mouseLeft;
204 if (text2 == null)
205 {
206 }
208 if (optionsBlocker3 != null)
209 {
210 int num2 = 1;
213 }
214 }
class f__AnonymousType0<< Count > j__TPar
static Rectangle _gridItemRegion
GUIInputRegionExclusive _optionsBlocker
static LocalizedText GetText(string key)
Definition Language.cs:44
static string GetTextValue(string key)
Definition Language.cs:54
static bool mouseLeftRelease
Definition Main.cs:2029
static bool mouseLeft
Definition Main.cs:671

References ControlAnchor._gridItemRegion, _optionsBlocker, Binding, displayOptions, drawingOverlay, Terraria.Localization.Language.GetText(), Terraria.Localization.Language.GetTextValue(), j__TPar, localisationId, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, RemoveBinding(), and System.text.

Referenced by DrawOverlay().