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
UIImage.cs
Go to the documentation of this file.
1using System;
5using Terraria.UI;
6
8{
9 // Token: 0x02000AB9 RID: 2745
10 public class UIImage : UIElement
11 {
12 // Token: 0x060050E3 RID: 20707 RVA: 0x0027EC14 File Offset: 0x0027CE14
13 public UIImage(Asset<Texture2D> texture)
14 {
15 int num = 16256;
16 this.ImageScale = (float)num;
17 if (num == 0)
18 {
19 }
20 if (num == 0)
21 {
22 }
23 if (!true)
24 {
25 }
26 base..ctor();
27 this._texture = texture;
28 int num2 = Utils.Width(texture);
29 int num3 = Utils.Height(this._texture);
30 }
31
32 // Token: 0x060050E4 RID: 20708 RVA: 0x0027EC58 File Offset: 0x0027CE58
33 public void SetImage(Asset<Texture2D> texture)
34 {
35 int num = 1;
36 this._texture = texture;
37 if (num == 0)
38 {
39 }
40 int num2 = Utils.Width(texture);
41 int num3 = Utils.Height(this._texture);
42 }
43
44 // Token: 0x060050E5 RID: 20709 RVA: 0x0027EC84 File Offset: 0x0027CE84
45 protected override void DrawSelf(SpriteBatch spriteBatch)
46 {
47 float x = this._dimensions.X;
48 Asset<Texture2D> texture = this._texture;
49 if (this.ScaleToFit)
50 {
51 return;
52 }
53 if (texture == null)
54 {
55 }
56 float imageScale = this.ImageScale;
57 if (texture == null)
58 {
59 }
60 float x2 = this.NormalizedOrigin.X;
61 float y = this.NormalizedOrigin.Y;
63 if (removeFloatingPointsFromDrawPosition)
64 {
66 {
67 }
68 }
70 float rotation = this.Rotation;
71 float x3 = this.NormalizedOrigin.X;
72 float y2 = this.NormalizedOrigin.Y;
73 if (texture2 == null)
74 {
75 }
76 float imageScale2 = this.ImageScale;
77 }
78
79 // Token: 0x040089A2 RID: 35234
81
82 // Token: 0x040089A3 RID: 35235
83 public float ImageScale;
84
85 // Token: 0x040089A4 RID: 35236
86 public float Rotation;
87
88 // Token: 0x040089A5 RID: 35237
89 public bool ScaleToFit;
90
91 // Token: 0x040089A6 RID: 35238
92 public Color Color;
93
94 // Token: 0x040089A7 RID: 35239
96
97 // Token: 0x040089A8 RID: 35240
99 }
100}
class f__AnonymousType0<< Count > j__TPar
void SetImage(Asset< Texture2D > texture)
Definition UIImage.cs:33
override void DrawSelf(SpriteBatch spriteBatch)
Definition UIImage.cs:45
UIImage(Asset< Texture2D > texture)
Definition UIImage.cs:13
CalculatedStyle _dimensions
static int Height(this Asset< Texture2D > asset)
Definition Utils.cs:701
static int Width(this Asset< Texture2D > asset)
Definition Utils.cs:696