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
UISlicedImage.cs
Go to the documentation of this file.
1using System;
4using Terraria.UI;
5
7{
8 // Token: 0x02000ACD RID: 2765
9 public class UISlicedImage : UIElement
10 {
11 // Token: 0x170008CE RID: 2254
12 // (get) Token: 0x06005155 RID: 20821 RVA: 0x002802CC File Offset: 0x0027E4CC
13 // (set) Token: 0x06005156 RID: 20822 RVA: 0x002802E4 File Offset: 0x0027E4E4
14 public Color Color
15 {
16 get
17 {
18 Color color = this._color;
20 return color2;
21 }
22 set
23 {
25 }
26 }
27
28 // Token: 0x06005157 RID: 20823 RVA: 0x002802F8 File Offset: 0x0027E4F8
30 {
31 int num = 1;
32 if (num == 0)
33 {
34 }
35 base..ctor();
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: 0x06005158 RID: 20824 RVA: 0x00280330 File Offset: 0x0027E530
45 public void SetImage(Asset<Texture2D> texture)
46 {
47 this._texture = texture;
48 }
49
50 // Token: 0x06005159 RID: 20825 RVA: 0x00280344 File Offset: 0x0027E544
51 protected override void DrawSelf(SpriteBatch spriteBatch)
52 {
53 Asset<Texture2D> texture = this._texture;
54 float x = this._dimensions.X;
55 float y = this._dimensions.Y;
56 float width = this._dimensions.Width;
57 float height = this._dimensions.Height;
62 Color color = this._color;
63 if (texture == null)
64 {
65 }
66 }
67
68 // Token: 0x0600515A RID: 20826 RVA: 0x002803B4 File Offset: 0x0027E5B4
69 public void SetSliceDepths(int top, int bottom, int left, int right)
70 {
75 }
76
77 // Token: 0x0600515B RID: 20827 RVA: 0x002803E0 File Offset: 0x0027E5E0
78 public void SetSliceDepths(int fluff)
79 {
80 }
81
82 // Token: 0x040089E7 RID: 35303
84
85 // Token: 0x040089E8 RID: 35304
86 private Color _color;
87
88 // Token: 0x040089E9 RID: 35305
89 private int _leftSliceDepth;
90
91 // Token: 0x040089EA RID: 35306
92 private int _rightSliceDepth;
93
94 // Token: 0x040089EB RID: 35307
95 private int _topSliceDepth;
96
97 // Token: 0x040089EC RID: 35308
98 private int _bottomSliceDepth;
99 }
100}
class f__AnonymousType0<< Count > j__TPar
override void DrawSelf(SpriteBatch spriteBatch)
void SetImage(Asset< Texture2D > texture)
void SetSliceDepths(int top, int bottom, int left, int right)
CalculatedStyle _dimensions
static int Height(this Asset< Texture2D > asset)
Definition Utils.cs:701
static int Width(this Asset< Texture2D > asset)
Definition Utils.cs:696