ExtendedItemScriptHookCallbacks
Index
Type Aliases
AfterDraw
Callback for extended item AfterDraw functions.
Relevant for assets that define Asset.DynamicAfterDraw.
Type parameters
- DataType: ExtendedItemData<any>
- PersistentData: AnimationPersistentData = AnimationPersistentData
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The dynamic draw data
BeforeDraw
Callback for extended item BeforeDraw functions.
Relevant for assets that define Asset.DynamicBeforeDraw.
Type parameters
- DataType: ExtendedItemData<any>
- PersistentData: AnimationPersistentData = AnimationPersistentData
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The dynamic draw data
A record with any and all to-be overriden draw data
Click
Callback for extended item Click script hooks.
Click functions are responsible for managing any mouse clicks within the extended item menu.
Type parameters
- DataType: ExtendedItemData<any>
The items extended item data
The function that is normally called when an archetypical item reaches this point
Draw
Callback for extended item Draw script hooks.
Draw functions are responsible for drawing any UI elements within the extended item menu.
Type parameters
- DataType: ExtendedItemData<any>
The items extended item data
The function that is normally called when an archetypical item reaches this point
Exit
Callback for extended item Exit script hooks.
Exit functions are responsible for cleaning up any UI elements when closing the extended item menu.
Type parameters
- DataType: ExtendedItemData<any>
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
Init
Callback for extended item Init script hooks.
Init functions are responsible for setting the initial properties of an extended item.
Type parameters
- DataType: ExtendedItemData<any>
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The character that has the item equipped
The item in question
Whether to push to changes to the server
Whether to refresh the character. This should generally be true, with custom script hooks being a potential exception.
Whether the items properties were actually updated or not
Load
Callback for extended item Load script hooks.
Load functions are responsible for setting up the UI when initially opening the extended item menu.
Type parameters
- DataType: ExtendedItemData<any>
The items extended item data
The function that is normally called when an archetypical item reaches this point
PublishAction
Callback for extended item PublishAction script hooks.
PublishAction functions are responsible for reporting any changes to an item's properties via a chat message.
Type parameters
- DataType: ExtendedItemData<any>
- OptionType: ExtendedItemOption
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The character that has the item equipped
The item in question
The newly selected extended item option
The previously selected extended item option
ScriptDraw
Callback for extended item ScriptDraw functions.
Relevant for assets that define Asset.DynamicScriptDraw.
Type parameters
- DataType: ExtendedItemData<any>
- PersistentData: AnimationPersistentData = AnimationPersistentData
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The dynamic draw data
SetOption
Callback for extended item SetOption functions.
Type parameters
- DataType: ExtendedItemData<any>
- OptionType: ExtendedItemOption
The items extended item data
The function that is normally called when an archetypical item reaches this point
The character that has the item equipped
The item in question
The newly selected extended item option
The previously selected extended item option
Whether to push to changes to the server
Whether to refresh the character. This should generally be true, with custom script hooks being a potential exception.
Validate
Callback for extended item Validate script hooks.
Validate functions are responsible for validating any change in an item's properties.
Type parameters
- DataType: ExtendedItemData<any>
- OptionType: ExtendedItemOption
The items extended item data
The function (if any) that is normally called when an archetypical item reaches this point
The character that has the item equipped
The item in question
The newly selected extended item option
The previously selected extended item option
Determines whether the validation should allow the new option and previous option to be identical. Defaults to false.
A non-empty message string if the item failed validation, or an empty string otherwise
Namespace with item-specific script hooks used for constructing typical extended items functions.