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

    Class ActionDialog

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • ActionDialog
    Index

    Constructors

    • Parameters

      • options: { actionUse: ActionUse }

        Application options

      • _oldOptions: object

      Returns ActionDialog

    Properties

    ammoUsage: Record<string, AttackAmmoUsage>
    attributes: Record<string, string>
    base: object
    conditionals: object
    flags: undefined | Record<string, boolean>
    rollData: object
    useOptions: undefined | UseOptions
    DEFAULT_FULL_ATTACK: boolean = true
    DEFAULT_OPTIONS: {
        actions: {
            fullAttack: Object;
            openAmmoSelect: Object;
            selectAmmo: Object;
            setAllAmmo: Object;
            setDefaultAmmo: Object;
            singleAttack: Object;
        };
        classes: string[];
        form: { closeOnSubmit: boolean; submitOnChange: boolean };
        id: string;
        position: { width: number };
        tag: string;
        window: { icon: string };
    } = ...
    PARTS: { footer: { template: string }; main: { template: string } } = ...

    Accessors

    • get actionUse(): ActionUse

      Returns ActionUse

    • get actor(): ActorPF

      Returns ActorPF

    • get damageMult(): null | number

      Returns null | number

    • get item(): undefined | ItemPF

      Returns undefined | ItemPF

    • get noPenaltyIncrements(): number
      Experimental

      Number of Increments with No Penalty

      Returns number

    • get promise(): Promise<any>

      Returns Promise<any>

    • get title(): string

      A convenience reference to the title of the Application window.

      Returns string

    Methods

    • Initialize data to

      Returns void

    • Parameters

      • options: any

      Returns any

    • Change Attribute

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns void

      Relabel

    • Parameters

      • formConfig: object
      • event: PointerEvent

      Returns void

    • Parameters

      • options: any

      Returns void

    • Pointer Enter event delegate

      Parameters

      • event: PointerEvent

      Returns void

    • Pointer Leave event delegate

      Parameters

      • event: PointerEvent

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns void

    • Toggle Conditional

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns void

    • Toggle Flag

      Parameters

      • event: PointerEvent
      • target: HTMLElement
      • render: boolean = false

        Re-render after

      Returns void

    • Handle Popover (Ammo Menu) Toggling

      Parameters

      • event: ToggleEvent

      Returns void

    • Parameters

      • _options: any

      Returns {
          action: ItemAction;
          ammo: Record<string, any>;
          attacks: ActionUseAttack[];
          attributes: Record<string, string>;
          conditionals: object;
          config: config;
          data: object;
          fields: {
              boolean: BooleanField<
                  DefaultOptions,
                  AssignmentType<SimpleMerge<DefaultOptions, DefaultOptions>>,
                  InitializedType<SimpleMerge<DefaultOptions, DefaultOptions>>,
                  InitializedType<SimpleMerge<DefaultOptions, DefaultOptions>>,
              >;
              number: NumberField<
                  DefaultOptions,
                  AssignmentType<DefaultOptions>,
                  InitializedType<DefaultOptions>,
                  InitializedType<DefaultOptions>,
              >;
          };
          flags: undefined
          | Record<string, boolean>;
          hasAttack: boolean;
          hasDamage: boolean;
          hasDamageAbility: boolean;
          hasFlags: boolean;
          hasTemplate: boolean;
          id: string;
          isAttack: boolean;
          isFeat: boolean;
          isHealing: boolean;
          isMelee: boolean;
          isMeleeWeaponAttackAction: boolean;
          isNaturalAttack: boolean;
          isRanged: boolean;
          isRangedWeaponAttackAction: boolean;
          isSpell: boolean;
          isThrown: boolean;
          isWeapon: boolean;
          isWeaponAttack: boolean;
          item: undefined | ItemPF;
          maxIncrement: number;
          rollMode: any;
          rollModes: InterfaceToObject<RollModes>;
          usesAmmo: boolean;
      }

    • Parameters

      • context: any
      • options: any

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns void

    • Parameters

      • partId: any
      • context: any
      • options: any

      Returns Promise<RenderContext>

    • Parameters

      • partId: any
      • newElement: any
      • priorElement: any
      • state: any

      Returns void

    • Reset Extra Attacks Visualization

      Undim extra attacks when single attack button hover ends

      Returns void

    • Parameters

      • type: any
      • enabled: boolean = true

      Returns void

    • Unfocus Elements

      This is called by every click to ensure ammo selection is closed.

      Parameters

      • event: PointerEvent

      Returns void

    • Visualize Extra Attacks State

      Dim extra attacks when hovering single attack button

      Returns void

    • Experimental

      Get Current Range Penalty

      Returns number

      • Penalty, 0 or higher
    • Returns void

    • Returns void

    • Set ammo type attack at index

      Parameters

      • attackIndex: number
      • ammoId: string = null

      Returns void

    • Returns Promise<any>

      • Attack configuration object or null if rejected
    • Initialize application and wait for its result.

      This simply initializes the application with provided options, renders it and returns app.promise

      Parameters

      • actionUse: ActionUse

        Action Use instance

      • Optionaloptions: object = {}

        Application options

      Returns Promise<void | object>

      • Resolved configuration, or void if cancelled.