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

◆ TileInteractionsMouseOver_Containers()

void Terraria.Player.TileInteractionsMouseOver_Containers ( int myX,
int myY )
inlineprivate

Definition at line 32968 of file Player.cs.

32969 {
32970 LocalizedText[] array = Lang.chestType;
32971 int[] array2 = Chest.chestTypeToIcon;
32972 Tile tile = Main.tile[myX, myY];
32973 if (tile.type == 467)
32974 {
32975 array = Lang.chestType2;
32976 array2 = Chest.chestTypeToIcon2;
32977 }
32978 int num = myX;
32979 int num2 = myY;
32980 if (tile.frameX % 36 != 0)
32981 {
32982 num--;
32983 }
32984 if (tile.frameY % 36 != 0)
32985 {
32986 num2--;
32987 }
32988 int num3 = Chest.FindChest(num, num2);
32989 cursorItemIconID = -1;
32990 if (num3 < 0)
32991 {
32992 cursorItemIconText = array[0].Value;
32993 }
32994 else
32995 {
32996 if (Main.chest[num3].name != "")
32997 {
32998 cursorItemIconText = Main.chest[num3].name;
32999 }
33000 else
33001 {
33002 cursorItemIconText = array[tile.frameX / 36].Value;
33003 }
33004 if (cursorItemIconText == array[tile.frameX / 36].Value)
33005 {
33006 cursorItemIconID = array2[tile.frameX / 36];
33007 cursorItemIconText = "";
33008 }
33009 }
33010 if (cursorItemIconID == 3988)
33011 {
33012 cursorItemIconID = 306;
33013 }
33014 noThrow = 2;
33015 cursorItemIconEnabled = true;
33016 }
string cursorItemIconText
Definition Player.cs:1497
bool cursorItemIconEnabled
Definition Player.cs:1489
int cursorItemIconID
Definition Player.cs:1493

References System.array, Terraria.Main.chest, Terraria.Lang.chestType, Terraria.Lang.chestType2, Terraria.Chest.chestTypeToIcon, Terraria.Chest.chestTypeToIcon2, Terraria.Chest.FindChest(), Terraria.Tile.frameX, Terraria.Tile.frameY, Terraria.Main.tile, and Terraria.Tile.type.