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
UIColoredImageButton.cs
Go to the documentation of this file.
1using System;
5using Terraria.UI;
6
8{
9 // Token: 0x02000AA9 RID: 2729
11 {
12 // Token: 0x0600506B RID: 20587 RVA: 0x0027D314 File Offset: 0x0027B514
13 public UIColoredImageButton(Asset<Texture2D> texture, bool isSmall = false)
14 {
15 this._texture = texture;
16 if ("Images/UI/CharCreation/SmallPanel" != null)
17 {
18 return;
19 }
20 }
21
22 // Token: 0x0600506C RID: 20588 RVA: 0x0027D384 File Offset: 0x0027B584
23 public void SetImage(Asset<Texture2D> texture)
24 {
25 int num = 1;
26 this._texture = texture;
27 if (num == 0)
28 {
29 }
30 int num2 = Utils.Width(texture);
31 int num3 = Utils.Height(this._texture);
32 }
33
34 // Token: 0x0600506D RID: 20589 RVA: 0x0027D3B0 File Offset: 0x0027B5B0
36 {
37 this._texture = texture;
38 }
39
40 // Token: 0x0600506E RID: 20590 RVA: 0x0027D3C4 File Offset: 0x0027B5C4
41 protected override void DrawSelf(SpriteBatch spriteBatch)
42 {
43 int num = 1;
44 float x = this._dimensions.X;
45 if (num == 0)
46 {
47 }
49 if (backPanelTexture == null)
50 {
51 }
52 bool <IsMouseHovering>k__BackingField = this.<IsMouseHovering>k__BackingField;
53 if (<IsMouseHovering>k__BackingField)
54 {
55 return;
56 }
58 if (backPanelTexture == null)
59 {
60 }
62 if (!<IsMouseHovering>k__BackingField)
63 {
64 }
66 bool hovered = this._hovered;
67 if (hovered)
68 {
71 if (!hovered)
72 {
74 }
75 if (<Name>k__BackingField == null)
76 {
77 }
79 }
80 bool selected = this._selected;
81 if (selected)
82 {
85 if (!selected)
86 {
88 }
89 if (<Name>k__BackingField == null)
90 {
91 }
93 }
94 if (this._middleTexture != null)
95 {
97 if (<Name>k__BackingField == null)
98 {
99 }
101 }
102 Asset<Texture2D> texture = this._texture;
103 Color color = this._color;
104 Vector2 vector5 = Utils.Size(texture);
105 }
106
107 // Token: 0x0600506F RID: 20591 RVA: 0x0027D4C4 File Offset: 0x0027B6C4
108 public override void MouseOver(UIMouseEvent evt)
109 {
110 base.MouseOver(evt);
111 this._hovered = true;
112 }
113
114 // Token: 0x06005070 RID: 20592 RVA: 0x0027D4E0 File Offset: 0x0027B6E0
115 public void SetVisibility(float whenActive, float whenInactive)
116 {
117 }
118
119 // Token: 0x06005071 RID: 20593 RVA: 0x0027D4F4 File Offset: 0x0027B6F4
120 public void SetColor(Color color)
121 {
122 this._color = color;
123 }
124
125 // Token: 0x06005072 RID: 20594 RVA: 0x0027D508 File Offset: 0x0027B708
130
131 // Token: 0x06005073 RID: 20595 RVA: 0x0027D51C File Offset: 0x0027B71C
132 public void SetSelected(bool selected)
133 {
134 }
135
136 // Token: 0x06005074 RID: 20596 RVA: 0x0027D52C File Offset: 0x0027B72C
137 public override void MouseOut(UIMouseEvent evt)
138 {
139 base.MouseOut(evt);
140 }
141
142 // Token: 0x0400892D RID: 35117
144
145 // Token: 0x0400892E RID: 35118
147
148 // Token: 0x0400892F RID: 35119
150
151 // Token: 0x04008930 RID: 35120
153
154 // Token: 0x04008931 RID: 35121
156
157 // Token: 0x04008932 RID: 35122
158 private Color _color;
159
160 // Token: 0x04008933 RID: 35123
161 private float _visibilityActive;
162
163 // Token: 0x04008934 RID: 35124
164 private float _visibilityInactive;
165
166 // Token: 0x04008935 RID: 35125
167 private bool _selected;
168
169 // Token: 0x04008936 RID: 35126
170 private bool _hovered;
171 }
172}
class f__AnonymousType0<< Count > j__TPar
UIColoredImageButton(Asset< Texture2D > texture, bool isSmall=false)
void SetVisibility(float whenActive, float whenInactive)
UIElement< Parent > k__BackingField
CalculatedStyle _dimensions
static Vector2 Size(this Asset< Texture2D > tex)
Definition Utils.cs:736
static int Height(this Asset< Texture2D > asset)
Definition Utils.cs:701
static int Width(this Asset< Texture2D > asset)
Definition Utils.cs:696