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
UIHairStyleButton.cs
Go to the documentation of this file.
1using System;
5using Terraria.UI;
6
8{
9 // Token: 0x02000AB5 RID: 2741
11 {
12 // Token: 0x060050CD RID: 20685 RVA: 0x0027E66C File Offset: 0x0027C86C
14 {
15 if (!true)
16 {
17 }
18 }
19
20 // Token: 0x060050CE RID: 20686 RVA: 0x0027E6A0 File Offset: 0x0027C8A0
25
26 // Token: 0x060050CF RID: 20687 RVA: 0x0027E6B4 File Offset: 0x0027C8B4
27 protected override void DrawSelf(SpriteBatch spriteBatch)
28 {
29 if (!this._hovered)
30 {
31 return;
32 }
33 if (this._soundedHover)
34 {
35 return;
36 }
37 int num = 1;
38 this._soundedHover = num != 0;
39 base.DrawSelf(spriteBatch);
40 Player player = this._player;
41 int hairStyleId = this.HairStyleId;
42 int hair = player.hair;
44 float x = this._dimensions.X;
46 if (selectedBorderTexture == null)
47 {
48 }
50 if (selectedBorderTexture == null)
51 {
52 }
53 if (selectedBorderTexture == null)
54 {
55 }
56 if (this._hovered)
57 {
59 float x2 = this._dimensions.X;
61 if (hoveredBorderTexture == null)
62 {
63 }
65 if (hoveredBorderTexture == null)
66 {
67 }
68 if (hoveredBorderTexture == null)
69 {
70 }
71 }
72 int framesToSkip = this._framesToSkip;
74 }
75
76 // Token: 0x060050D0 RID: 20688 RVA: 0x0027E7F8 File Offset: 0x0027C9F8
77 public override void LeftMouseDown(UIMouseEvent evt)
78 {
79 Player player = this._player;
80 int hairStyleId = this.HairStyleId;
82 base.LeftMouseDown(evt);
83 }
84
85 // Token: 0x060050D1 RID: 20689 RVA: 0x0027E824 File Offset: 0x0027CA24
86 public override void MouseOver(UIMouseEvent evt)
87 {
88 base.MouseOver(evt);
89 this._hovered = true;
90 }
91
92 // Token: 0x060050D2 RID: 20690 RVA: 0x0027E840 File Offset: 0x0027CA40
93 public override void MouseOut(UIMouseEvent evt)
94 {
95 base.MouseOut(evt);
96 }
97
98 // Token: 0x0400898C RID: 35212
100
101 // Token: 0x0400898D RID: 35213
103
104 // Token: 0x0400898E RID: 35214
106
107 // Token: 0x0400898F RID: 35215
109
110 // Token: 0x04008990 RID: 35216
111 private bool _hovered;
112
113 // Token: 0x04008991 RID: 35217
114 private bool _soundedHover;
115
116 // Token: 0x04008992 RID: 35218
117 private int _framesToSkip;
118 }
119}
class f__AnonymousType0<< Count > j__TPar
override void DrawSelf(SpriteBatch spriteBatch)
CalculatedStyle _dimensions
static Vector2 Size(this Asset< Texture2D > tex)
Definition Utils.cs:736