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
UIToggleImage.cs
Go to the documentation of this file.
1using System;
5using Terraria.UI;
6
8{
9 // Token: 0x02000AD1 RID: 2769
10 public class UIToggleImage : UIElement
11 {
12 // Token: 0x170008DC RID: 2268
13 // (get) Token: 0x0600518C RID: 20876 RVA: 0x00280AC4 File Offset: 0x0027ECC4
14 public bool IsOn
15 {
16 get
17 {
18 return this._isOn;
19 }
20 }
21
22 // Token: 0x0600518D RID: 20877 RVA: 0x00280AD8 File Offset: 0x0027ECD8
24 {
25 if (!true)
26 {
27 }
28 if (true)
29 {
30 return;
31 }
32 if (!true)
33 {
34 }
35 base..ctor();
36 this._onTexture = texture;
37 this._offTexture = texture;
39 this._drawWidth = width;
40 this._drawHeight = height;
41 }
42
43 // Token: 0x0600518E RID: 20878 RVA: 0x00280B1C File Offset: 0x0027ED1C
44 protected override void DrawSelf(SpriteBatch spriteBatch)
45 {
46 bool isOn = this._isOn;
47 float x = this._dimensions.X;
48 float y = this._dimensions.Y;
49 bool <IsMouseHovering>k__BackingField = this.<IsMouseHovering>k__BackingField;
50 if (364 == 0)
51 {
52 }
53 int drawWidth = this._drawWidth;
54 int drawHeight = this._drawHeight;
55 int drawWidth2 = this._drawWidth;
56 int drawHeight2 = this._drawHeight;
57 }
58
59 // Token: 0x0600518F RID: 20879 RVA: 0x00280B78 File Offset: 0x0027ED78
60 public override void LeftClick(UIMouseEvent evt)
61 {
62 bool isOn = this._isOn;
63 this._isOn = isOn;
64 base.LeftClick(evt);
65 }
66
67 // Token: 0x06005190 RID: 20880 RVA: 0x00280B9C File Offset: 0x0027ED9C
68 public void SetState(bool value)
69 {
70 }
71
72 // Token: 0x06005191 RID: 20881 RVA: 0x00280BAC File Offset: 0x0027EDAC
73 public void Toggle()
74 {
75 bool isOn = this._isOn;
76 this._isOn = isOn;
77 }
78
79 // Token: 0x04008A09 RID: 35337
81
82 // Token: 0x04008A0A RID: 35338
84
85 // Token: 0x04008A0B RID: 35339
86 private int _drawWidth;
87
88 // Token: 0x04008A0C RID: 35340
89 private int _drawHeight;
90
91 // Token: 0x04008A0D RID: 35341
93
94 // Token: 0x04008A0E RID: 35342
96
97 // Token: 0x04008A0F RID: 35343
98 private bool _isOn;
99 }
100}
class f__AnonymousType0<< Count > j__TPar
override void DrawSelf(SpriteBatch spriteBatch)
UIToggleImage(Asset< Texture2D > texture, int width, int height, Point onTextureOffset, Point offTextureOffset)
override void LeftClick(UIMouseEvent evt)
UIElement< Parent > k__BackingField
CalculatedStyle _dimensions