tModLoader v2024.04
A mod to make and play Terraria mods
ChestUI Class Reference


class  ButtonID

Static Public Member Functions

static void DepositAll (ContainerTransferContext context)
static void Draw (SpriteBatch spritebatch)
static void GetContainerUsageInfo (out bool sync, out Item[] chestinv)
static bool IsBlockedFromTransferIntoChest (Item item, Item[] container)
static void LootAll ()
static long MoveCoins (Item[] pInv, Item[] cInv, ContainerTransferContext context)
static void QuickStack (ContainerTransferContext context, bool voidStack=false)
static void RenameChest ()
static void RenameChestCancel ()
static void RenameChestSubmit (Player player)
static void Restock ()
static bool TryPlacingInChest (Item I, bool justCheck, int itemSlotContext)
static void UpdateHover (int ID, bool hovering)

Static Public Attributes

static bool[] ButtonHovered = new bool[ButtonID.Count]
static float[] ButtonScale = new float[ButtonID.Count]
const float buttonScaleMaximum = 1f
const float buttonScaleMinimum = 0.75f