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

◆ TileInteractionsMouseOver_Containers()

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

Definition at line 33427 of file Player.cs.

33428 {
33429 LocalizedText[] array = Lang.chestType;
33430 int[] array2 = Chest.chestTypeToIcon;
33431 Tile tile = Main.tile[myX, myY];
33432 if (tile.type == 467)
33433 {
33434 array = Lang.chestType2;
33435 array2 = Chest.chestTypeToIcon2;
33436 }
33437 int num = myX;
33438 int num2 = myY;
33439 if (tile.frameX % 36 != 0)
33440 {
33441 num--;
33442 }
33443 if (tile.frameY % 36 != 0)
33444 {
33445 num2--;
33446 }
33447 int num3 = Chest.FindChest(num, num2);
33448 cursorItemIconID = -1;
33449 if (num3 < 0)
33450 {
33451 cursorItemIconText = array[0].Value;
33452 }
33453 else
33454 {
33455 if (Main.chest[num3].name != "")
33456 {
33457 cursorItemIconText = Main.chest[num3].name;
33458 }
33459 else
33460 {
33461 cursorItemIconText = array[tile.frameX / 36].Value;
33462 }
33463 if (cursorItemIconText == array[tile.frameX / 36].Value)
33464 {
33465 cursorItemIconID = array2[tile.frameX / 36];
33466 cursorItemIconText = "";
33467 }
33468 }
33469 if (cursorItemIconID == 3988)
33470 {
33471 cursorItemIconID = 306;
33472 }
33473 noThrow = 2;
33474 cursorItemIconEnabled = true;
33475 }
string Value
Retrieves the text value. This is the actual text the user should see.
Contains the localization value corresponding to a key for the current game language....
string cursorItemIconText
Definition Player.cs:2010
bool cursorItemIconEnabled
Definition Player.cs:2002
int cursorItemIconID
Definition Player.cs:2006

References Terraria.Main.chest, Terraria.Lang.chestType, Terraria.Lang.chestType2, Terraria.Chest.chestTypeToIcon, Terraria.Chest.chestTypeToIcon2, Terraria.Player.cursorItemIconEnabled, Terraria.Player.cursorItemIconID, Terraria.Player.cursorItemIconText, Terraria.Chest.FindChest(), Terraria.Tile.frameX, Terraria.Tile.frameY, Terraria.Player.noThrow, Terraria.Main.tile, Terraria.Tile.type, and Terraria.Localization.LocalizedText.Value.

Referenced by Terraria.Player.TileInteractionsCheckLongDistance(), and Terraria.Player.TileInteractionsMouseOver().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: