tModLoader v2024.11
A mod to make and play Terraria mods
ItemSlot Class Reference

Classes

class  Context
 
struct  ItemTransferInfo
 
class  Options
 

Public Member Functions

delegate void ItemTransferEvent (ItemTransferInfo info)
 

Static Public Member Functions

static bool AccCheck (Item[] itemCollection, Item item, int slot)
 
static void AnnounceTransfer (ItemTransferInfo info)
 
static bool CanExecuteCommand ()
 
static void Draw (SpriteBatch spriteBatch, Item[] inv, int context, int slot, Vector2 position, Color lightColor=default(Color))
 
static void Draw (SpriteBatch spriteBatch, ref Item inv, int context, Vector2 position, Color lightColor=default(Color))
 
static void DrawItem_GetColorAndScale (Item item, float scale, ref Color currentWhite, float sizeLimit, ref Rectangle frame, out Color itemLight, out float finalDrawScale)
 
static float DrawItemIcon (Item item, int context, SpriteBatch spriteBatch, Vector2 screenPositionForItemCenter, float scale, float sizeLimit, Color environmentColor)
 
static void DrawMoney (SpriteBatch sb, string text, float shopx, float shopy, int[] coinsArray, bool horizontal=false)
 
static void DrawRadialCircular (SpriteBatch sb, Vector2 position, Player.SelectionRadial radial, Item[] items)
 
static void DrawRadialDpad (SpriteBatch sb, Vector2 position)
 
static void DrawRadialQuicks (SpriteBatch sb, Vector2 position)
 
static void DrawSavings (SpriteBatch sb, float shopx, float shopy, bool horizontal=false)
 
static bool Equippable (Item[] inv, int context, int slot)
 
static bool Equippable (ref Item inv, int context=0)
 
static Color GetColorByLoadout (int slot, int context)
 
static string GetGamepadInstructions (Item[] inv, int context=0, int slot=0)
 
static string GetGamepadInstructions (ref Item inv, int context=0)
 
static void GetItemLight (ref Color currentColor, int type, bool outInTheWorld=false)
 
static void GetItemLight (ref Color currentColor, Item item, bool outInTheWorld=false)
 
static Color GetItemLight (ref Color currentColor, ref float scale, int type, bool outInTheWorld=false)
 
static void GetItemLight (ref Color currentColor, ref float scale, Item item, bool outInTheWorld=false)
 
static Color GetLoadoutColor (int loadoutIndex)
 
static void Handle (Item[] inv, int context=0, int slot=0)
 
static void Handle (ref Item inv, int context=0)
 
static bool IsABuildingItem (Item item)
 
static bool isEquipLocked (int type)
 
static bool IsMiscEquipment (Item item)
 
static void LeftClick (Item[] inv, int context=0, int slot=0)
 
static void LeftClick (ref Item inv, int context=0)
 
static void MouseHover (int context=0)
 
static void MouseHover (Item[] inv, int context=0, int slot=0)
 
static void MouseHover (ref Item inv, int context=0)
 
static void OverrideHover (Item[] inv, int context=0, int slot=0)
 
static void OverrideHover (ref Item inv, int context=0)
 
static int PickItemMovementAction (Item[] inv, int context, int slot, Item checkItem)
 
static void PickupItemIntoMouse (Item[] inv, int context, int slot, Player player)
 
static void RecordLoadoutChange ()
 
static void RefreshStackSplitCooldown ()
 
static void RightClick (Item[] inv, int context=0, int slot=0)
 
static void RightClick (ref Item inv, int context=0)
 
static void SelectEquipPage (Item item)
 
static void SellOrTrash (Item[] inv, int context, int slot)
 
static void SetGlow (int index, float hue, bool chest)
 
static float ShiftHueByLoadout (float hue, int loadoutIndex)
 
static void SwapEquip (Item[] inv, int context, int slot)
 
static void SwapEquip (ref Item inv, int context=0)
 
static bool TryGetSlotColor (int loadoutIndex, int context, out Color color)
 
static void UpdateInterface ()
 

Static Public Attributes

static float CircularRadialOpacity
 
static bool DrawGoldBGForCraftingMaterial
 
static bool forceClearGlowsOnChest
 
static float QuicksRadialOpacity
 
static bool ShiftForcedOn
 

Properties

static bool ControlInUse [get]
 
static bool NotUsingGamepad [get]
 
static bool ShiftInUse [get]
 

Events

static ItemTransferEvent OnItemTransferred