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
UIItemSlot.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
using
Terraria.UI
;
5
6
namespace
Terraria.GameContent.UI.Elements
7
{
8
// Token: 0x02000AB1 RID: 2737
9
public
class
UIItemSlot
:
UIElement
10
{
11
// Token: 0x060050BE RID: 20670 RVA: 0x0027E21C File Offset: 0x0027C41C
12
public
UIItemSlot
(
Item
[]
itemArray
,
int
itemIndex
,
int
itemSlotContext
)
13
{
14
if
(!
true
)
15
{
16
}
17
base
..ctor();
18
this._itemArray
=
itemArray
;
19
this._itemIndex
=
itemIndex
;
20
this._itemSlotContext
=
itemSlotContext
;
21
}
22
23
// Token: 0x060050BF RID: 20671 RVA: 0x0027E248 File Offset: 0x0027C448
24
private
void
HandleItemSlotLogic
()
25
{
26
if
(this.<
IsMouseHovering
>
k__BackingField
)
27
{
28
Player
localPlayer
=
Main
.
LocalPlayer
;
29
int
num = 1;
30
localPlayer.mouseInterface
= num != 0;
31
Vector2
position = this.
_itemArray
.
position
;
32
int
itemSlotContext
= this.
_itemSlotContext
;
33
if
(position ==
null
)
34
{
35
}
36
int
itemSlotContext2
= this.
_itemSlotContext
;
37
int
itemSlotContext3
= this.
_itemSlotContext
;
38
int
itemSlotContext4
= this.
_itemSlotContext
;
39
Item
[]
itemArray
= this.
_itemArray
;
40
if
(itemSlotContext != 0 &&
itemSlotContext
== 0)
41
{
42
throw
new
ArrayTypeMismatchException
();
43
}
44
}
45
}
46
47
// Token: 0x060050C0 RID: 20672 RVA: 0x0027E2B4 File Offset: 0x0027C4B4
48
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
49
{
50
Vector2
position = this.
_itemArray
.
position
;
51
float
x = this.
_dimensions
.
X
;
52
int
num = 16976;
53
if
(num == 0)
54
{
55
}
56
if
(num == 0)
57
{
58
}
59
float
inventoryScale =
Main
.
inventoryScale
;
60
int
itemSlotContext
= this.
_itemSlotContext
;
61
if
(num == 0)
62
{
63
}
64
}
65
66
// Token: 0x04008978 RID: 35192
67
private
Item
[]
_itemArray
;
68
69
// Token: 0x04008979 RID: 35193
70
private
int
_itemIndex
;
71
72
// Token: 0x0400897A RID: 35194
73
private
int
_itemSlotContext
;
74
}
75
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
Terraria.Entity.position
Vector2 position
Definition
Entity.cs:460
Terraria.GameContent.UI.Elements.UIItemSlot._itemIndex
int _itemIndex
Definition
UIItemSlot.cs:70
Terraria.GameContent.UI.Elements.UIItemSlot.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
UIItemSlot.cs:48
Terraria.GameContent.UI.Elements.UIItemSlot.UIItemSlot
UIItemSlot(Item[] itemArray, int itemIndex, int itemSlotContext)
Definition
UIItemSlot.cs:12
Terraria.GameContent.UI.Elements.UIItemSlot._itemArray
Item[] _itemArray
Definition
UIItemSlot.cs:67
Terraria.GameContent.UI.Elements.UIItemSlot.HandleItemSlotLogic
void HandleItemSlotLogic()
Definition
UIItemSlot.cs:24
Terraria.GameContent.UI.Elements.UIItemSlot._itemSlotContext
int _itemSlotContext
Definition
UIItemSlot.cs:73
Terraria.GameContent.UI.Elements.UIItemSlot
Definition
UIItemSlot.cs:10
Terraria.Item
Definition
Item.cs:21
Terraria.Main.inventoryScale
static float inventoryScale
Definition
Main.cs:2253
Terraria.Main.LocalPlayer
static Player LocalPlayer
Definition
Main.cs:5267
Terraria.Main
Definition
Main.cs:67
Terraria.Player
Definition
Player.cs:33
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
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System
Definition
__ComObject.cs:4
Terraria.GameContent.UI.Elements
Definition
EmoteButton.cs:9
Terraria.UI
Definition
Alignment.cs:5
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.UI.CalculatedStyle.X
float X
Definition
CalculatedStyle.cs:62
source
Terraria
GameContent
UI
Elements
UIItemSlot.cs
Generated by
1.10.0