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
CachedGridLayoutSettings.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
4
// Token: 0x02000197 RID: 407
5
public
class
CachedGridLayoutSettings
6
{
7
// Token: 0x06000B5D RID: 2909 RVA: 0x00039444 File Offset: 0x00037644
8
public
bool
Dirty
(
ItemGrid_Layout
layout)
9
{
10
if
(!
true
)
11
{
12
}
13
bool
horizontal = layout.Horizontal;
14
bool
horizontal2
= this.
Horizontal
;
15
ItemGrid_Layout.ReorderStyle
reorder
= layout.Reorder;
16
ItemGrid_Layout.ReorderStyle
reorder2
= this.
Reorder
;
17
int
itemCount = layout.ItemCount;
18
int
itemCount2
= this.
ItemCount
;
19
int
itemLineCount
= layout.
ItemLineCount
;
20
int
itemLineCount2
= this.
ItemLineCount
;
21
float
x = layout.PickingBorder.X;
22
float
y = layout.PickingBorder.Y;
23
float
x2
= this.
PickingBorder
.
X
;
24
float
y2
= this.
PickingBorder
.
Y
;
25
if
(itemLineCount2 == 0)
26
{
27
}
28
float
x3
= layout.PickingOffset.X;
29
float
y3
= layout.PickingOffset.Y;
30
float
x4
= this.
PickingOffset
.
X
;
31
float
y4
= this.
PickingOffset
.
Y
;
32
float
x5
= layout.
ExtraElementSpacing
.
X
;
33
float
y5
= layout.ExtraElementSpacing.Y;
34
float
x6
= this.
ExtraElementSpacing
.
X
;
35
float
y6
= this.
ExtraElementSpacing
.
Y
;
36
ControlAnchor.ControlId
firstAnchorControl
= layout.FirstAnchorControl;
37
ControlAnchor.ControlId
firstAnchorControl2
= this.
FirstAnchorControl
;
38
LayoutCalculator.AnchorType
firstItemAnchor
= layout.FirstItemAnchor;
39
LayoutCalculator.AnchorType
firstItemAnchor2
= this.
FirstItemAnchor
;
40
float
x7
= layout.
FirstItemLocation
.
X
;
41
float
y7
= layout.FirstItemLocation.Y;
42
float
x8
= this.
FirstItemLocation
.
X
;
43
float
y8
= this.
FirstItemLocation
.
Y
;
44
if
(firstItemAnchor == (
LayoutCalculator
.
AnchorType
)0)
45
{
46
}
47
int
screenWidth = this.
ScreenWidth
;
48
int
screenHeight = this.
ScreenHeight
;
49
bool
flag;
50
return
flag;
51
}
52
53
// Token: 0x06000B5E RID: 2910 RVA: 0x000395A8 File Offset: 0x000377A8
54
public
void
Cache
(
ItemGrid_Layout
layout)
55
{
56
bool
horizontal = layout.Horizontal;
57
this.Horizontal
= horizontal;
58
int
itemLineCount
= layout.ItemLineCount;
59
this.ItemLineCount
=
itemLineCount
;
60
Vector2
pickingBorder
= layout.PickingBorder;
61
this.PickingBorder
=
pickingBorder
;
62
Vector2
pickingOffset
= layout.PickingOffset;
63
this.PickingOffset
=
pickingOffset
;
64
Vector2
extraElementSpacing
= layout.ExtraElementSpacing;
65
this.ExtraElementSpacing
=
extraElementSpacing
;
66
ControlAnchor.ControlId
firstAnchorControl
= layout.FirstAnchorControl;
67
this.FirstAnchorControl
=
firstAnchorControl
;
68
Vector2
firstItemLocation
= layout.FirstItemLocation;
69
this.FirstItemLocation
=
firstItemLocation
;
70
if
(
firstItemLocation
==
null
)
71
{
72
}
73
}
74
75
// Token: 0x06000B5F RID: 2911 RVA: 0x00039624 File Offset: 0x00037824
76
public
CachedGridLayoutSettings
()
77
{
78
}
79
80
// Token: 0x04000CB6 RID: 3254
81
public
bool
Horizontal
;
82
83
// Token: 0x04000CB7 RID: 3255
84
public
ItemGrid_Layout.ReorderStyle
Reorder
;
85
86
// Token: 0x04000CB8 RID: 3256
87
public
int
ItemCount
;
88
89
// Token: 0x04000CB9 RID: 3257
90
public
int
ItemLineCount
;
91
92
// Token: 0x04000CBA RID: 3258
93
public
Vector2
PickingBorder
;
94
95
// Token: 0x04000CBB RID: 3259
96
public
Vector2
PickingOffset
;
97
98
// Token: 0x04000CBC RID: 3260
99
public
Vector2
ExtraElementSpacing
;
100
101
// Token: 0x04000CBD RID: 3261
102
public
ControlAnchor.ControlId
FirstAnchorControl
;
103
104
// Token: 0x04000CBE RID: 3262
105
public
LayoutCalculator.AnchorType
FirstItemAnchor
=
LayoutCalculator
.
AnchorType
.TopLeft;
106
107
// Token: 0x04000CBF RID: 3263
108
public
Vector2
FirstItemLocation
;
109
110
// Token: 0x04000CC0 RID: 3264
111
public
int
ScreenWidth
;
112
113
// Token: 0x04000CC1 RID: 3265
114
public
int
ScreenHeight
;
115
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
CachedGridLayoutSettings.Cache
void Cache(ItemGrid_Layout layout)
Definition
CachedGridLayoutSettings.cs:54
CachedGridLayoutSettings.ScreenWidth
int ScreenWidth
Definition
CachedGridLayoutSettings.cs:111
CachedGridLayoutSettings.Reorder
ItemGrid_Layout.ReorderStyle Reorder
Definition
CachedGridLayoutSettings.cs:84
CachedGridLayoutSettings.CachedGridLayoutSettings
CachedGridLayoutSettings()
Definition
CachedGridLayoutSettings.cs:76
CachedGridLayoutSettings.Dirty
bool Dirty(ItemGrid_Layout layout)
Definition
CachedGridLayoutSettings.cs:8
CachedGridLayoutSettings.ItemCount
int ItemCount
Definition
CachedGridLayoutSettings.cs:87
CachedGridLayoutSettings.PickingOffset
Vector2 PickingOffset
Definition
CachedGridLayoutSettings.cs:96
CachedGridLayoutSettings.PickingBorder
Vector2 PickingBorder
Definition
CachedGridLayoutSettings.cs:93
CachedGridLayoutSettings.ExtraElementSpacing
Vector2 ExtraElementSpacing
Definition
CachedGridLayoutSettings.cs:99
CachedGridLayoutSettings.FirstAnchorControl
ControlAnchor.ControlId FirstAnchorControl
Definition
CachedGridLayoutSettings.cs:102
CachedGridLayoutSettings.FirstItemLocation
Vector2 FirstItemLocation
Definition
CachedGridLayoutSettings.cs:108
CachedGridLayoutSettings.ItemLineCount
int ItemLineCount
Definition
CachedGridLayoutSettings.cs:90
CachedGridLayoutSettings.Horizontal
bool Horizontal
Definition
CachedGridLayoutSettings.cs:81
CachedGridLayoutSettings.FirstItemAnchor
LayoutCalculator.AnchorType FirstItemAnchor
Definition
CachedGridLayoutSettings.cs:105
CachedGridLayoutSettings.ScreenHeight
int ScreenHeight
Definition
CachedGridLayoutSettings.cs:114
CachedGridLayoutSettings
Definition
CachedGridLayoutSettings.cs:6
ControlAnchor.ControlId
ControlId
Definition
ControlAnchor.cs:480
ItemGrid_Layout.FirstItemLocation
Vector2 FirstItemLocation
Definition
ItemGrid_Layout.cs:41
ItemGrid_Layout.ExtraElementSpacing
Vector2 ExtraElementSpacing
Definition
ItemGrid_Layout.cs:32
ItemGrid_Layout.ItemLineCount
int ItemLineCount
Definition
ItemGrid_Layout.cs:23
ItemGrid_Layout.ReorderStyle
ReorderStyle
Definition
ItemGrid_Layout.cs:57
ItemGrid_Layout
Definition
ItemGrid_Layout.cs:7
LayoutCalculator.AnchorType
AnchorType
Definition
LayoutCalculator.cs:373
LayoutCalculator
Definition
LayoutCalculator.cs:12
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System
Definition
__ComObject.cs:4
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:701
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
CachedGridLayoutSettings.cs
Generated by
1.10.0