Undocumented

interface ExecutableAction {
    actionGroup?: string;
    actionType?: string;
    boundObject?: any;
    category?: string | (() => string);
    checkAble?: boolean;
    checkedHandler?: (() => void);
    disabled?: OptionalPromiseResolvable<boolean>;
    execute: ((...params) => void);
    getTracklist?: ((...params) => Tracklist);
    hotkeyAble?: boolean;
    hotkeyTitle?: OptionalResolvable<string>;
    icon?: OptionalResolvable<string>;
    submenu?: OptionalPromiseResolvable<Action[] | SubmenuItem[]>;
    title?: OptionalResolvable<string>;
    visible?: OptionalPromiseResolvable<boolean>;
}

Hierarchy (view full)

Properties

actionGroup?: string

Undocumented

actionType?: string

Undocumented

boundObject?: any

Undocumented

category?: string | (() => string)

Name of the action's category. Categories are defined in the global actionCategories object. Default is general.

Type declaration

    • (): string
    • Returns string

checkAble?: boolean

Undocumented

checkedHandler?: (() => void)

Type declaration

    • (): void
    • Returns void

Undocumented

disabled?: OptionalPromiseResolvable<boolean>

Undocumented

execute: ((...params) => void)

Type declaration

    • (...params): void
    • Parameters

      • Rest ...params: any[]

      Returns void

Undocumented

getTracklist?: ((...params) => Tracklist)

Type declaration

Undocumented

hotkeyAble?: boolean

Determines whether the action can be tied to a hotkey. Default is false.

hotkeyTitle?: OptionalResolvable<string>

Undocumented

icon?: OptionalResolvable<string>

Icon that shows in menus that contain the action. The icon ids are located in skin/(iconname).svg.

Undocumented

title?: OptionalResolvable<string>

Title of the action.

visible?: OptionalPromiseResolvable<boolean>

Determines whether the action will show up in menus. This can be useful for integrating party mode, for example, by disabling your action when party mode is enabled with visible: uitools.getCanEdit.