TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ItemIconCacheVerification()

static void Terraria.Main.ItemIconCacheVerification ( )
inlinestatic

Definition at line 60188 of file Main.cs.

60189 {
60190 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
60191 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
60192 if (_itemIconCacheTime > 0)
60193 {
60194 float num = Vector2.Distance(_itemIconCacheScreenPosition, MouseScreen);
60195 if (num != 0f)
60196 {
60198 }
60199 if (num > 4f)
60200 {
60202 }
60203 if (_itemIconCacheSelectedItemID != player[myPlayer].inventory[player[myPlayer].selectedItem].type)
60204 {
60206 }
60207 }
60208 }
static int _itemIconCacheTime
Definition Main.cs:2576
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
Definition Main.cs:1958
static Vector2 MouseScreen
Fetches the position of the mouse cursor on the screen. Useful for making things visually happen nea...
Definition Main.cs:2938
static int _itemIconCacheSelectedItemID
Definition Main.cs:2574
static Vector2 _itemIconCacheScreenPosition
Definition Main.cs:2572
static Player[] player
Definition Main.cs:1960

References Terraria.Main._itemIconCacheScreenPosition, Terraria.Main._itemIconCacheSelectedItemID, Terraria.Main._itemIconCacheTime, Terraria.Main.MouseScreen, Terraria.Main.myPlayer, and Terraria.Main.player.

Referenced by Terraria.Main.DrawInterface_40_InteractItemIcon().

+ Here is the caller graph for this function: