DialogMenu
Index
Interfaces
InitProperties
C
optionalfocusGroup
MenuButtonData
Type parameters
click
Type declaration
Parameters
button: HTMLButtonElement
The button in question
ev: MouseEvent
The mouse event associated with the button click
properties: T
The InitProperties associated with the specific dialog menu
optionalequippedItem: Item
The equipped item in question (if any)
Returns any
optionalvalidate
An object mapping labels to custom validation functions for button clicks.
MenuButtonValidateData
An object representing the validation output of a menubar button, determining whether it should be clickable or not
state
The button's validation state:
null
: Validation successful"hide"
: Validation failure; hide the button"disabled"
: Validation failure; disable the button but do not hide it
optionalstatus
An optional status message to-be returned if the validation fails.
ReloadOptions
Customization options for DialogMenu.Reload
optionalreset
Whether to hard reset and reconstruct the button grid, rather than just re-evaluating the existing button's states via a soft reset.
optionalresetDialogItems
Whether to regenerate the subscreen's underlying item or activity list (see DialogBuildActivities and DialogInventoryBuild).
Defaults to true
if ReloadOptions.reset is specified.
optionalresetScrollbar
Reset the position of the scroll bar to the checked button, or, if unavailable, the top of the button grid.
Defaults to true
if ReloadOptions.reset is specified.
optionalstatus
The to-be assigned custom status message
optionalstatusTimer
Display the ReloadOptions.status message on a timer; units are in ms
ReloadParam
newProperties
oldProperties
root
textCache
Type Aliases
MenuButtonValidator
A custom validation function for determining whether the button should be enabled, disabled or hidden.
Type parameters
Type declaration
Parameters
button: HTMLButtonElement
The button in question
properties: T
The InitProperties associated with the specific dialog menu
optionalequippedItem: Item | null
The equipped item in question (if any)
Returns MenuButtonValidateData | null
All valid init properties that a DialogMenu subclass may choose to implement.
Init properties represent a set of DialogMenu.Init-initialized properties which are exclusively active during the matching screen's lifetime.