• Trying to register an action with the UI? You may be looking for @Register.usableActions

    Registers a "usable" action type. This is solely used for generating an ID that can be associated with custom UsableActions. A custom UsableActionType provides an ID used for translation, icons, etc.

    IE: If a UsableAction is registered with your custom UsableActionType:

    • If your definition doesn't have a translate handler, the translation will be handled automatically with a translation in the "usableActionType" dictionary.
    • If your definition doesn't have a custom icon provided, it will automatically attempt to use the icon at <your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png.

    Parameters

    • name: string

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc