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
UIPanel.cs
Go to the documentation of this file.
1using System;
4using Terraria.UI;
5
7{
8 // Token: 0x02000AC5 RID: 2757
9 public class UIPanel : UIElement
10 {
11 // Token: 0x0600511D RID: 20765 RVA: 0x0027F664 File Offset: 0x0027D864
12 public UIPanel()
13 {
14 Color color;
16 base..ctor();
18 if (borderTexture == null)
19 {
20 if (borderTexture == null)
21 {
22 }
23 return;
24 }
26 if (backgroundTexture == null)
27 {
28 if (backgroundTexture == null)
29 {
30 }
31 return;
32 }
33 base.SetPadding(0f);
34 }
35
36 // Token: 0x0600511E RID: 20766 RVA: 0x0027F6BC File Offset: 0x0027D8BC
38 {
39 Color color;
41 base..ctor();
42 if (this._borderTexture == null)
43 {
45 }
47 if (backgroundTexture == null)
48 {
50 }
53 if (backgroundTexture == null)
54 {
55 }
56 base.SetPadding(0f);
57 }
58
59 // Token: 0x0600511F RID: 20767 RVA: 0x0027F724 File Offset: 0x0027D924
60 private void DrawPanel(SpriteBatch spriteBatch, Texture2D texture, Color color)
61 {
62 float x = this._dimensions.X;
63 float y = this._dimensions.Y;
64 float width = this._dimensions.Width;
65 float height = this._dimensions.Height;
66 int cornerSize = this._cornerSize;
67 int cornerSize2 = this._cornerSize;
68 int cornerSize3 = this._cornerSize;
69 int cornerSize4 = this._cornerSize;
70 int cornerSize5 = this._cornerSize;
71 int barSize = this._barSize;
72 int cornerSize6 = this._cornerSize;
73 int cornerSize7 = this._cornerSize;
74 int barSize2 = this._barSize;
75 int cornerSize8 = this._cornerSize;
76 int cornerSize9 = this._cornerSize;
77 int barSize3 = this._barSize;
78 int cornerSize10 = this._cornerSize;
79 int cornerSize11 = this._cornerSize;
80 int barSize4 = this._barSize;
81 int cornerSize12 = this._cornerSize;
82 int barSize5 = this._barSize;
83 int cornerSize13 = this._cornerSize;
84 int cornerSize14 = this._cornerSize;
85 int barSize6 = this._barSize;
86 int cornerSize15 = this._cornerSize;
87 int barSize7 = this._barSize;
88 int cornerSize16 = this._cornerSize;
89 int cornerSize17 = this._cornerSize;
90 int barSize8 = this._barSize;
91 }
92
93 // Token: 0x06005120 RID: 20768 RVA: 0x0027F83C File Offset: 0x0027DA3C
94 protected override void DrawSelf(SpriteBatch spriteBatch)
95 {
96 if (this._backgroundTexture != null)
97 {
98 Color backgroundColor = this.BackgroundColor;
99 }
100 if (this._borderTexture != null)
101 {
103 return;
104 }
105 }
106
107 // Token: 0x040089C3 RID: 35267
108 private int _cornerSize;
109
110 // Token: 0x040089C4 RID: 35268
111 private int _barSize;
112
113 // Token: 0x040089C5 RID: 35269
115
116 // Token: 0x040089C6 RID: 35270
118
119 // Token: 0x040089C7 RID: 35271
121
122 // Token: 0x040089C8 RID: 35272
124 }
125}
class f__AnonymousType0<< Count > j__TPar
UIPanel(Asset< Texture2D > customBackground, Asset< Texture2D > customborder, int customCornerSize=12, int customBarSize=4)
Definition UIPanel.cs:37
override void DrawSelf(SpriteBatch spriteBatch)
Definition UIPanel.cs:94
void DrawPanel(SpriteBatch spriteBatch, Texture2D texture, Color color)
Definition UIPanel.cs:60
CalculatedStyle _dimensions