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
UIImageFramed.cs
Go to the documentation of this file.
1using System;
6using Terraria.UI;
7
9{
10 // Token: 0x02000ABB RID: 2747
12 {
13 // Token: 0x170008C5 RID: 2245
14 // (get) Token: 0x060050ED RID: 20717 RVA: 0x0027EE2C File Offset: 0x0027D02C
15 // (set) Token: 0x060050EE RID: 20718 RVA: 0x0027EE44 File Offset: 0x0027D044
16 public Color Color
17 {
19 get
20 {
21 Color color = this.<Color>k__BackingField;
23 return color2;
24 }
26 set
27 {
29 }
30 }
31
32 // Token: 0x060050EF RID: 20719 RVA: 0x0027EE58 File Offset: 0x0027D058
34 {
35 int num = 1;
36 if (num == 0)
37 {
38 }
39 base..ctor();
40 this._texture = texture;
41 this._frame = frame;
42 if (num == 0)
43 {
44 }
45 this.<Color>k__BackingField = num;
46 }
47
48 // Token: 0x060050F0 RID: 20720 RVA: 0x0027EE88 File Offset: 0x0027D088
49 public void SetImage(Asset<Texture2D> texture, Rectangle frame)
50 {
51 this._texture = texture;
52 this._frame = frame;
53 }
54
55 // Token: 0x060050F1 RID: 20721 RVA: 0x0027EEA4 File Offset: 0x0027D0A4
56 public void SetFrame(Rectangle frame)
57 {
58 this._frame = frame;
59 }
60
61 // Token: 0x060050F2 RID: 20722 RVA: 0x0027EEB8 File Offset: 0x0027D0B8
62 public void SetFrame(int frameCountHorizontal, int frameCountVertical, int frameX, int frameY, int sizeOffsetX, int sizeOffsetY)
63 {
64 Asset<Texture2D> texture = this._texture;
65 if (!true)
66 {
67 }
68 long num = 0L;
70 this.SetFrame(rectangle);
71 }
72
73 // Token: 0x060050F3 RID: 20723 RVA: 0x0027EEF0 File Offset: 0x0027D0F0
74 protected override void DrawSelf(SpriteBatch spriteBatch)
75 {
76 float x = this._dimensions.X;
77 Asset<Texture2D> texture = this._texture;
78 Rectangle frame = this._frame;
79 int width = this._frame.Width;
80 Color color = this.<Color>k__BackingField;
81 }
82
83 // Token: 0x040089AD RID: 35245
85
86 // Token: 0x040089AE RID: 35246
88
89 // Token: 0x040089AF RID: 35247
91 private Color <Color>k__BackingField;
92 }
93}
class f__AnonymousType0<< Count > j__TPar
UIImageFramed(Asset< Texture2D > texture, Rectangle frame)
override void DrawSelf(SpriteBatch spriteBatch)
void SetFrame(int frameCountHorizontal, int frameCountVertical, int frameX, int frameY, int sizeOffsetX, int sizeOffsetY)
void SetImage(Asset< Texture2D > texture, Rectangle frame)
CalculatedStyle _dimensions
static Rectangle Frame(this Asset< Texture2D > tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0)
Definition Utils.cs:706