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
UIImageButton.cs
Go to the documentation of this file.
1using System;
4using Terraria.UI;
5
7{
8 // Token: 0x02000ABA RID: 2746
9 public class UIImageButton : UIElement
10 {
11 // Token: 0x060050E6 RID: 20710 RVA: 0x0027ED30 File Offset: 0x0027CF30
13 {
14 this._texture = texture;
15 int num = Utils.Width(texture);
16 int num2 = Utils.Height(this._texture);
17 }
18
19 // Token: 0x060050E7 RID: 20711 RVA: 0x0027ED68 File Offset: 0x0027CF68
20 public void SetHoverImage(Asset<Texture2D> texture)
21 {
22 this._borderTexture = texture;
23 }
24
25 // Token: 0x060050E8 RID: 20712 RVA: 0x0027ED7C File Offset: 0x0027CF7C
26 public void SetImage(Asset<Texture2D> texture)
27 {
28 int num = 1;
29 this._texture = texture;
30 if (num == 0)
31 {
32 }
33 int num2 = Utils.Width(texture);
34 int num3 = Utils.Height(this._texture);
35 }
36
37 // Token: 0x060050E9 RID: 20713 RVA: 0x0027EDA8 File Offset: 0x0027CFA8
38 protected override void DrawSelf(SpriteBatch spriteBatch)
39 {
40 float x = this._dimensions.X;
41 Asset<Texture2D> texture = this._texture;
42 if (texture == null)
43 {
44 }
45 bool <IsMouseHovering>k__BackingField = this.<IsMouseHovering>k__BackingField;
46 if (texture == null)
47 {
48 }
50 if (borderTexture == null || !this.<IsMouseHovering>k__BackingField || borderTexture == null)
51 {
52 }
53 }
54
55 // Token: 0x060050EA RID: 20714 RVA: 0x0027EDF0 File Offset: 0x0027CFF0
56 public override void MouseOver(UIMouseEvent evt)
57 {
58 base.MouseOver(evt);
59 }
60
61 // Token: 0x060050EB RID: 20715 RVA: 0x0027EE04 File Offset: 0x0027D004
62 public override void MouseOut(UIMouseEvent evt)
63 {
64 base.MouseOut(evt);
65 }
66
67 // Token: 0x060050EC RID: 20716 RVA: 0x0027EE18 File Offset: 0x0027D018
68 public void SetVisibility(float whenActive, float whenInactive)
69 {
70 }
71
72 // Token: 0x040089A9 RID: 35241
74
75 // Token: 0x040089AA RID: 35242
76 private float _visibilityActive = 0f;
77
78 // Token: 0x040089AB RID: 35243
79 private float _visibilityInactive;
80
81 // Token: 0x040089AC RID: 35244
83 }
84}
class f__AnonymousType0<< Count > j__TPar
void SetVisibility(float whenActive, float whenInactive)
void SetHoverImage(Asset< Texture2D > texture)
override void MouseOut(UIMouseEvent evt)
override void MouseOver(UIMouseEvent evt)
override void DrawSelf(SpriteBatch spriteBatch)
void SetImage(Asset< Texture2D > texture)
UIElement< Parent > k__BackingField
CalculatedStyle _dimensions
static int Height(this Asset< Texture2D > asset)
Definition Utils.cs:701
static int Width(this Asset< Texture2D > asset)
Definition Utils.cs:696