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

    Class ActionDialog

    Hierarchy

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

    Constructors

    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 title(): string

      A convenience reference to the title of the Application window.

      Returns string

    Methods

    • Parameters

      • options: any

      Returns any

    • Change Attribute

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns void

      Relabel

    • Parameters

      • formConfig: object
      • event: PointerEvent

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns void

    • Toggle Flag

      Parameters

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

        Re-render after

      Returns void

    • Parameters

      • _options: any

      Returns {
          action: ItemAction;
          ammo: Record<
              string,
              {
                  abundant: boolean;
                  data: object;
                  document: ItemPF;
                  id: string;
                  isDefault: boolean;
                  quantity: number;
                  used: number;
              },
          >;
          attacks: ActionUseAttack[];
          attributes: Record<string, string>;
          conditionals: object;
          config: ./config.mjs;
          data: object;
          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;
          rollMode: StringField<{}, any, Mode, Mode>;
          rollModes: InterfaceToObject<RollModes>;
          usesAmmo: boolean;
      }

    • Parameters

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

      Returns Promise<RenderContext>

    • Unfocus Elements

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

      Parameters

      • event: PointerEvent

      Returns void

    • 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.