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

◆ DrawRedirect()

void Terraria.ModLoader.AccessorySlotLoader.DrawRedirect ( Item[] inv,
int context,
int slot,
Vector2 location,
bool isHovered )
inlinepackage

Definition at line 436 of file AccessorySlotLoader.cs.

437 {
438 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
439 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
440 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
441 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
442 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
443 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
444 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
445 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
446 if (context < 0)
447 {
448 if (Get(slot).PreDraw(ContextToEnum(context), inv[slot], location, isHovered))
449 {
450 ItemSlot.Draw(Main.spriteBatch, inv, context, slot, location);
451 }
453 }
454 else
455 {
456 ItemSlot.Draw(Main.spriteBatch, inv, context, slot, location);
457 }
458 }
ModAccessorySlot Get(int id, Player player)
AccessorySlotType ContextToEnum(int context)
virtual void PostDraw(AccessorySlotType context, Item item, Vector2 position, bool isHovered)
static void Draw(SpriteBatch spriteBatch, ref Item inv, int context, Vector2 position, Color lightColor=default(Color))
Definition ItemSlot.cs:1814

References Terraria.ModLoader.AccessorySlotLoader.ContextToEnum(), Terraria.UI.ItemSlot.Draw(), Terraria.ModLoader.AccessorySlotLoader.Get(), Terraria.ModLoader.ModAccessorySlot.PostDraw(), and Terraria.Main.spriteBatch.

Referenced by Terraria.ModLoader.AccessorySlotLoader.DrawSlot().

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