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

◆ DrawOverlay()

void GUIRubbleMaker.DrawOverlay ( )
inline

Definition at line 288 of file GUIRubbleMaker.cs.

289 {
291 if (this.DisplayOptions && cursor != null)
292 {
293 bool displayMaterials;
294 if (this.DisplayMaterials)
295 {
300 if (displayMaterials)
301 {
302 }
303 }
306 float x = cursor.Position.x;
307 float y = cursor.Position.y;
308 if (!displayMaterials)
309 {
310 }
311 this.Close();
312 }
314 bool displayOptions = this.DisplayOptions;
315 if (displayOptions)
316 {
317 this.RefreshOptions();
318 if (!displayOptions)
319 {
320 }
322 string textValue = Language.GetTextValue("Mobile.FilterItemsClose");
324 if (this.DisplayMaterials)
325 {
326 GUIInputRegionExclusive pickingInterceptor = this.PickingInterceptor;
333 if (cursor2 != null)
334 {
335 }
336 int myPlayer = Main.myPlayer;
337 int myPlayer2 = Main.myPlayer;
338 int num = 5329;
342 {
343 if (num == 0)
344 {
345 }
346 return;
347 }
349 if (this.SelectedMaterial != null)
350 {
351 int itemTypeToConsume = this.SelectedMaterial.ItemTypeToConsume;
352 selectedMaterial = this.SelectedMaterial;
353 if (selectedMaterial != null)
354 {
355 return;
356 }
357 }
358 else
359 {
360 Item item = this.EmptyItem;
361 }
362 if (selectedMaterial == null)
363 {
364 }
369 int size = materialOptions._size;
372 {
375 }
377 if (selectedMaterial2 != null)
378 {
379 int size2 = selectedMaterial2.Options._size;
380 return;
381 }
384 if (rectangle4 == null)
385 {
386 }
387 int mouseX = Main.mouseX;
388 int mouseY = Main.mouseY;
392 return;
393 }
394 else
395 {
396 this.Close();
397 }
398 }
399 }
class f__AnonymousType0<< Count > j__TPar
static void SetMainMenuPageRegion(Rectangle region)
static Rectangle Region(Panel_Layout layout)
Definition GUIPanel.cs:57
static bool DrawRubbleModeUI
GUIInputRegionExclusive PickingInterceptor
List< FlexibleTileWand.OptionBucket > MaterialOptions
FlexibleTileWand.OptionBucket SelectedMaterial
Rectangle CalculateMaterialRegion()
static Rectangle GetPickRegion(TransactionButton_Layout layout)
static RubbleMakerUI_Layout Instance
TransactionButton_Layout MaterialToggle
TransactionButton_Layout SizeToggle
ItemGrid_Layout RubbleOptions
static string GetTextValue(string key)
Definition Language.cs:54
static void FlushBatches()
Definition Main.cs:5092
static int myPlayer
Definition Main.cs:2337
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587

References Controller.ControllerActionManager.AnyControllerConnected, RubbleMakerUI_Layout.Backing, CalculateMaterialRegion(), Close(), DisplayMaterials, DisplayOptions, DrawRubbleModeUI, EmptyItem, Terraria.Main.FlushBatches(), GUITransactionButton.GetPickRegion(), Terraria.Localization.Language.GetTextValue(), RubbleMakerUI_Layout.Instance, System.item, j__TPar, MaterialOptions, RubbleMakerUI_Layout.MaterialToggle, RubbleMakerUI_Layout.MenuDivider, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Main.myPlayer, System.options, PickingInterceptor, RefreshOptions(), GUIPanel.Region(), RubbleMakerUI_Layout.RubbleOptions, SelectedMaterial, ControlAnchor.SetMainMenuPageRegion(), RubbleMakerUI_Layout.SizeToggle, and RubbleMakerUI_Layout.SmallRubblePreviewScaleOffset.