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
UIKeybindingToggleListItem.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.CompilerServices
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
using
ReLogic.Content
;
5
using
Terraria.UI
;
6
7
namespace
Terraria.GameContent.UI.Elements
8
{
9
// Token: 0x02000AC0 RID: 2752
10
public
class
UIKeybindingToggleListItem
:
UIElement
11
{
12
// Token: 0x060050FD RID: 20733 RVA: 0x0027F0A4 File Offset: 0x0027D2A4
13
public
UIKeybindingToggleListItem
(
Func<string>
getText
,
Func<bool>
getStatus
,
Color
color)
14
{
15
int
num = 1;
16
if
(num == 0)
17
{
18
}
19
base
..ctor();
20
num.m_value
= color;
21
if
(num == 0)
22
{
23
}
24
}
25
26
// Token: 0x060050FE RID: 20734 RVA: 0x0027F0DC File Offset: 0x0027D2DC
27
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
28
{
29
base
.DrawSelf(spriteBatch);
30
float
x = this.
_dimensions
.
X
;
31
float
y = this.
_dimensions
.
Y
;
32
float
width = this.
_dimensions
.
Width
;
33
bool <IsMouseHovering>
k__BackingField
= this.<
IsMouseHovering
>
k__BackingField
;
34
}
35
36
// Token: 0x040089B6 RID: 35254
37
private
Color
_color
;
38
39
// Token: 0x040089B7 RID: 35255
40
private
Func<string>
_TextDisplayFunction
;
41
42
// Token: 0x040089B8 RID: 35256
43
private
Func<bool>
_IsOnFunction
;
44
45
// Token: 0x040089B9 RID: 35257
46
private
Asset<Texture2D>
_toggleTexture
;
47
48
// Token: 0x02000AC1 RID: 2753
49
[
CompilerGenerated
]
50
[Serializable]
51
private
sealed
class <>
c
52
{
53
// Token: 0x060050FF RID: 20735 RVA: 0x0027F1F4 File Offset: 0x0027D3F4
54
// Note: this type is marked as 'beforefieldinit'.
55
static <>
c
()
56
{
57
}
58
59
// Token: 0x06005100 RID: 20736 RVA: 0x0027F204 File Offset: 0x0027D404
60
public <>
c
()
61
{
62
}
63
64
// Token: 0x06005101 RID: 20737 RVA: 0x0027F218 File Offset: 0x0027D418
65
internal
string
<.ctor>b__4_0()
66
{
67
return
"???"
;
68
}
69
70
// Token: 0x06005102 RID: 20738 RVA: 0x0027F22C File Offset: 0x0027D42C
71
internal
bool
<.ctor>
b__4_1
()
72
{
73
}
74
75
// Token: 0x040089BA RID: 35258
76
public
static
readonly
UIKeybindingToggleListItem
.<>
c <>
9;
77
78
// Token: 0x040089BB RID: 35259
79
public
static
Func<string>
<>9
__4_0
;
80
81
// Token: 0x040089BC RID: 35260
82
public
static
Func<bool>
<>9
__4_1
;
83
}
84
}
85
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
ReLogic.Content.Asset
Definition
Asset.cs:10
System.Func
Definition
Func.cs:8
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem._IsOnFunction
Func< bool > _IsOnFunction
Definition
UIKeybindingToggleListItem.cs:43
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem.c
class ??? c
Definition
UIKeybindingToggleListItem.cs:52
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
UIKeybindingToggleListItem.cs:27
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem._color
Color _color
Definition
UIKeybindingToggleListItem.cs:37
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem._TextDisplayFunction
Func< string > _TextDisplayFunction
Definition
UIKeybindingToggleListItem.cs:40
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem._toggleTexture
Asset< Texture2D > _toggleTexture
Definition
UIKeybindingToggleListItem.cs:46
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem.UIKeybindingToggleListItem
UIKeybindingToggleListItem(Func< string > getText, Func< bool > getStatus, Color color)
Definition
UIKeybindingToggleListItem.cs:13
Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem
Definition
UIKeybindingToggleListItem.cs:11
Terraria.UI.UIElement.k__BackingField
UIElement< Parent > k__BackingField
Definition
UIElement.cs:1045
Terraria.UI.UIElement.IsMouseHovering
bool IsMouseHovering
Definition
UIElement.cs:334
Terraria.UI.UIElement._dimensions
CalculatedStyle _dimensions
Definition
UIElement.cs:1172
Terraria.UI.UIElement
Definition
UIElement.cs:15
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
ReLogic.Content
Definition
Asset.cs:7
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System
Definition
__ComObject.cs:4
Terraria.GameContent.UI.Elements
Definition
EmoteButton.cs:9
Terraria.UI
Definition
Alignment.cs:5
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Terraria.UI.CalculatedStyle.X
float X
Definition
CalculatedStyle.cs:62
Terraria.UI.CalculatedStyle.Y
float Y
Definition
CalculatedStyle.cs:65
Terraria.UI.CalculatedStyle.Width
float Width
Definition
CalculatedStyle.cs:68
source
Terraria
GameContent
UI
Elements
UIKeybindingToggleListItem.cs
Generated by
1.10.0