|
virtual void | ApplyEquipEffects () |
| Override to replace the vanilla effect behavior of the slot with your own. By default calls: Player.VanillaUpdateEquips(FunctionalItem), Player.ApplyEquipFunctional(FunctionalItem, ShowVisuals), Player.ApplyEquipVanity(VanityItem) More...
|
|
virtual bool | CanAcceptItem (Item checkItem, AccessorySlotType context) |
| Override to set conditions on what can be placed in the slot. Default is to return false only when item property FitsAccessoryVanity says can't go in to a vanity slot. Return false to prevent the item going in slot. Return true for dyes, if you want dyes. Example: only wings can go in slot. Receives data: More...
|
|
virtual bool | IsEnabled () |
| Override to set conditions on when the slot is valid for stat/vanity calculations and player usage. Example: the demonHeart is consumed and in Expert mode in Vanilla. More...
|
|
virtual bool | IsHidden () |
| Override to control whether or not drawing will be skipped during the given frame. NOTE: Nothing will be drawn, nor will subsequent drawing hooks be called on this slot for the frame while true More...
|
|
virtual bool | IsVisibleWhenNotEnabled () |
| Override to change the condition on when the slot is visible, but otherwise non-functional for stat/vanity calculations. Defaults to check 'property' IsEmpty More...
|
|
virtual bool | ModifyDefaultSwapSlot (Item item, int accSlotToSwapTo) |
| After checking for empty slots in ItemSlot.AccessorySwap, this allows for changing what the default target slot (accSlotToSwapTo) will be. DOES NOT affect vanilla behaviour of swapping items like for like where existing in a slot Return true to set this slot as the default targetted slot. More...
|
|
virtual void | OnMouseHover (AccessorySlotType context) |
| Allows you to do stuff while the player is hovering over this slot. More...
|
|
virtual void | PostDraw (AccessorySlotType context, Item item, Vector2 position, bool isHovered) |
|
virtual bool | PreDraw (AccessorySlotType context, Item item, Vector2 position, bool isHovered) |
| Allows drawing prior to vanilla ItemSlot.Draw code. Return false to NOT call ItemSlot.Draw More...
|
|
virtual bool | IsLoadingEnabled (Mod mod) |
| Allows you to stop Mod.AddContent from actually adding this content. Useful for items that can be disabled by a config. More...
|
|
virtual void | Load () |
| Allows you to perform one-time loading tasks. Beware that mod content has not finished loading here, things like ModContent lookup tables or ID Sets are not fully populated. More...
|
|
virtual void | SetStaticDefaults () |
| Allows you to modify the properties after initial loading has completed. More...
|
|
virtual void | SetupContent () |
| If you make a new ModType, seal this override, and call SetStaticDefaults in it. More...
|
|
virtual void | Unload () |
| Allows you to safely unload things you added in Load. More...
|
|
|
virtual ? Vector2 | CustomLocation [get] |
|
virtual bool | DrawDyeSlot [get] |
|
virtual bool | DrawFunctionalSlot [get] |
|
virtual bool | DrawVanitySlot [get] |
|
virtual string | DyeBackgroundTexture [get] |
|
Item | DyeItem [get, set] |
|
virtual string | DyeTexture [get] |
|
virtual string | FunctionalBackgroundTexture [get] |
|
Item | FunctionalItem [get, set] |
|
virtual string | FunctionalTexture [get] |
|
bool | HideVisuals [get, set] |
|
bool | IsEmpty [get] |
|
ModAccessorySlotPlayer | ModSlotPlayer [get] |
|
static Player | Player [get] |
|
int | Type [get, set] |
|
virtual string | VanityBackgroundTexture [get] |
|
Item | VanityItem [get, set] |
|
virtual string | VanityTexture [get] |
|
string | FullName [get] |
| The internal name of this, including the mod it is from. More...
|
|
Mod | Mod [get, set] |
| The mod this belongs to. More...
|
|
virtual string | Name [get] |
| The internal name of this. More...
|
|
string | FullName [get] |
| => $"{Mod.Name}/{Name}" More...
|
|
Mod | Mod [get] |
| The mod this belongs to. More...
|
|
string | Name [get] |
| The internal name of this instance. More...
|
|
A ModAccessorySlot instance represents a net new accessory slot instance. You can store fields in the ModAccessorySlot class.