Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class TokenHUDPF

    Extension of core Token HUD

    PF1 v11

    Hierarchy

    • TokenHUD
      • TokenHUDPF
    Index

    Constructors

    • Applications are constructed by providing an object of configuration options.

      Parameters

      • Optionaloptions: {}

        Options used to configure the Application instance (default: {})

      Returns TokenHUDPF

    Properties

    actor: ActorPF
    DEFAULT_OPTIONS: {
        actions: {
            useItem: {
                buttons: number[];
                handler: (...this: any, event: PointerEvent, target: HTMLElement) => void;
            };
        };
    } = ...

    The default configuration options which are assigned to every instance of this Application class.

    Methods

    • Actions performed after any render of the Application.

      Parameters

      • context: any

        Prepared context data

      • options: any

        Provided render options

      Returns void

    • Add listeners to token HUD quick action element.

      Parameters

      • html: DocumentFragment

        Quick actions element

      Returns void

      • Convert click listeners to actions
    • Add quick action buttons to token HUD.

      Parameters

      • app: TokenHUD<RenderContext, Configuration, RenderOptions>

        HUD app

      • html: HTMLElement

        HUD element

      Returns Promise<void>

    • Parameters

      • ...this: any
      • event: PointerEvent

        Click event

      • target: HTMLElement

        Target element

      Returns void