terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.UI.ItemSlot Class Reference
+ Collaboration diagram for Terraria.UI.ItemSlot:

Classes

class  Context
 
struct  ItemTransferInfo
 
class  Options
 

Public Types

enum  GUIFakeTooltipContext {
  DefenseIcon = 36 , HousingMenu , PVPMenu , ItemDuplication ,
  CraftGuide , BestiaryDrop , Reforge , Team ,
  AccessoryInfo , BuilderAccessories , Hotbar , Buffs ,
  Loadout
}
 

Public Member Functions

 ItemSlot ()
 
delegate void ItemTransferEvent (ItemSlot.ItemTransferInfo info)
 

Static Public Member Functions

static void AnnounceTransfer (ItemSlot.ItemTransferInfo info)
 
static void SetGlow (int index, float hue, bool chest)
 
static void UpdateInterface ()
 
static void Handle (ref Item inv, int context=0)
 
static void Handle (Item[] inv, int context=0, int slot=0)
 
static void OverrideHover (ref Item inv, int context=0)
 
static bool isEquipLocked (int type)
 
static void OverrideHover (Item[] inv, int context=0, int slot=0)
 
static bool IsMouseItem (Item[] slots, int index)
 
static void LeftClick (ref Item inv, int context=0)
 
static void LeftClick (Item[] inv, int context=0, int slot=0)
 
static int PickItemMovementAction (Item[] inv, int context, int slot, Item checkItem, bool backwardCheck=false, int initialSlot=-1)
 
static void RightClick (ref Item inv, int context=0)
 
static bool RightClick (Item[] inv, int context=0, int slot=0)
 
static void TakeOne (Item[] inv, int context, int slot)
 
static void PickupItemIntoMouse (Item[] inv, int context, int slot, Player player)
 
static void RefreshStackSplitCooldown ()
 
static void AfterItemSwap (int oldType, int newType)
 
static void Draw (SpriteBatch spriteBatch, ref Item inv, int context, Microsoft.Xna.Framework.Vector2 position)
 
static void Draw (SpriteBatch spriteBatch, ref Item inv, int context, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
 
static void SetCursorHighlight (bool hasFocus)
 
static void SetSelectHighlight (bool hasFocus, float highlightScale=-1f)
 
static void SetOverridenScale (float highlightScale)
 
static void Draw (SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position)
 
static void Draw (SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
 
static void Draw (SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor, Microsoft.Xna.Framework.Graphics.Color backColor)
 
static Microsoft.Xna.Framework.Graphics.Color GetColorByLoadout (int slot, int context)
 
static Microsoft.Xna.Framework.Graphics.Color GetHighlightColorByLoadout (int slot, int context)
 
static void RecordLoadoutChange ()
 
static bool TryGetSlotColor (int loadoutIndex, int context, out Microsoft.Xna.Framework.Graphics.Color color)
 
static bool TryGetHighlightedSlotColor (int loadoutIndex, int context, out Microsoft.Xna.Framework.Graphics.Color color)
 
static float ShiftHueByLoadout (float hue, int loadoutIndex)
 
static Microsoft.Xna.Framework.Graphics.Color GetLoadoutColor (int loadoutIndex)
 
static float DrawItemIcon (Item item, int context, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Vector2 screenPositionForItemCenter, float scale, float sizeLimit, Microsoft.Xna.Framework.Graphics.Color environmentColor)
 
static void DrawItem_GetColorAndScale (Item item, float scale, ref Microsoft.Xna.Framework.Graphics.Color currentWhite, float sizeLimit, ref Rectangle frame, out Microsoft.Xna.Framework.Graphics.Color itemLight, out float finalDrawScale)
 
static void MouseHover (int context=0)
 
static void MouseHover (ref Item inv, int context=0)
 
static void UpdateTooltipButton (TransactionButton_Layout button)
 
static void UpdateTooltipContext (int context, int slot)
 
static void MouseHover (Item[] inv, int context=0, int slot=0)
 
static void SwapEquip (ref Item inv, int context=0)
 
static bool SwapEquip (Item[] inv, int context, int slot)
 
static bool Equippable (ref Item inv, int context=0)
 
static bool Equippable (Item[] inv, int context, int slot)
 
static bool IsMiscEquipment (Item item)
 
static bool AccCheck (Item[] itemCollection, Item item, int slot)
 
static void DrawMoney (SpriteBatch sb, string text, float shopx, float shopy, int[] coinsArray, bool horizontal=false, SpriteBatch textSb=null)
 
static void DrawCost (SpriteBatch sb, float shopx, float shopy, long cost, SpriteBatch textSb=null)
 
static void DrawSavings (SpriteBatch sb, Panel_Layout savingsBacking, float shopx, float shopy, Microsoft.Xna.Framework.Vector2 savings1IconOffset, Microsoft.Xna.Framework.Vector2 savings2Offset, Microsoft.Xna.Framework.Vector2 savings3Offset, Microsoft.Xna.Framework.Vector2 savings4Offset, bool horizontal=false, SpriteBatch textSb=null)
 
static void DrawSavings (SpriteBatch sb, float shopx, float shopy, bool horizontal=false, SpriteBatch textSb=null)
 
static void GetItemLight (ref Microsoft.Xna.Framework.Graphics.Color currentColor, Item item, bool outInTheWorld=false)
 
static void GetItemLight (ref Microsoft.Xna.Framework.Graphics.Color currentColor, int type, bool outInTheWorld=false)
 
static void GetItemLight (ref Microsoft.Xna.Framework.Graphics.Color currentColor, ref float scale, Item item, bool outInTheWorld=false)
 
static Microsoft.Xna.Framework.Graphics.Color GetItemLight (ref Microsoft.Xna.Framework.Graphics.Color currentColor, ref float scale, int type, bool outInTheWorld=false)
 
static void DrawRadialCircular (SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position, Player.SelectionRadial radial, Item[] items)
 
static void DrawRadialQuicks (SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position)
 
static void DrawRadialDpad (SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position)
 
static bool IsABuildingItem (Item item)
 
static void SelectEquipPage (Item item)
 

Static Public Attributes

static bool DrawGoldBGForCraftingMaterial
 
static bool ShiftForcedOn
 
static float[] inventoryGlowHue
 
static int[] inventoryGlowTime
 
static bool DuplicationMode
 
static float CircularRadialOpacity
 
static float QuicksRadialOpacity
 
static bool forceClearGlowsOnChest
 

Properties

static bool AltInUse [get, set]
 
static bool ShiftInUse [get, set]
 
static bool ControlInUse [get, set]
 
static bool NotUsingGamepad [get, set]
 
static ItemSlot.ItemTransferEvent OnItemTransferred [set]
 

Static Private Member Functions

static ItemSlot ()
 
static bool OverrideLeftClick (Item[] inv, int context=0, int slot=0)
 
static bool DisableTrashing ()
 
static bool LeftClick_SellOrTrash (Item[] inv, int context, int slot)
 
static void SellOrTrash (Item[] inv, int context, int slot)
 
static string GetOverrideInstructions (Item[] inv, int context, int slot)
 
static void UpdateChestOnServer (int context, int slot)
 
static void PlaceItem (ref Item[] inv, ref Item item, int context=0, int slot=-1, int keepStack=0)
 
static bool TryOpenContainer (Item item, Player player)
 
static bool SwapVanityEquip (Item[] inv, int context, int slot, Player player)
 
static bool TryPickupDyeToCursor (int context, Item[] inv, int slot, Player player)
 
static bool TryItemSwap (Item item)
 
static void HandleShopSlot (Item[] inv, int slot, bool rightClickIsValid, bool leftClickIsValid)
 
static Item DyeSwap (Item item, out bool success)
 
static Item ArmorSwap (Item item, out bool success)
 
static Item EquipSwap (Item item, Item[] inv, int slot, out bool success)
 

Static Private Attributes

static float[] inventoryGlowHueChest
 
static int[] inventoryGlowTimeChest
 
static int _customCurrencyForSavings
 
static int additionalThrowVelocity
 
static int dyeSlotCount
 
static int accSlotToSwapTo
 
static Item[] singleSlotArray
 
static bool[] canFavoriteAt
 
static bool[] canShareAt
 
static Item dummyItem
 
static bool CursorHighlight
 
static bool SelectHighlight
 
static float HighlightScale
 
static float ForceRenderScale
 
static double _lastTimeForVisualEffectsThatLoadoutWasChanged
 
static Microsoft.Xna.Framework.Graphics.Color[,] LoadoutSlotColors
 
static Microsoft.Xna.Framework.Graphics.Color[,] LoadoutHighlightSlotColors
 
static int LastHoverContext
 
static int LastHoverSlot
 
static TransactionButton_Layout LastHoverButton
 
static int LastButtonFrame
 
static Microsoft.Xna.Framework.Vector2 defenderTextOffset
 
static Microsoft.Xna.Framework.Vector2 defenderPigOffset
 

Detailed Description

Definition at line 30 of file ItemSlot.cs.


The documentation for this class was generated from the following file: