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

    Class SensesSelector

    An application that allows a user to configure an actors senses.

    The Actor instance for which to configure senses

    Hierarchy

    • HandlebarsApplication<this> & DocumentSheetV2<
          any,
          RenderContext<any>,
          Configuration<any>,
          RenderOptions,
          this,
      >
      • SensesSelector
    Index

    Constructors

    • Parameters

      • Optionaloptions: {}

      Returns SensesSelector

    Properties

    DEFAULT_OPTIONS: {
        classes: string[];
        form: {
            closeOnSubmit: boolean;
            handler: (
                ...this: any,
                event: SubmitEvent,
                form: HTMLFormElement,
                formData: FormDataExtended,
            ) => Promise<void>;
            submitOnChange: boolean;
        };
        position: { width: number };
        sheetConfig: boolean;
        tag: string;
        window: { icon: string; minimizable: boolean; resizable: boolean };
    } = ...
    PARTS: { footer: { template: string }; form: { template: string } } = ...

    Accessors

    • get title(): string

      Configure the title of the vision configuration window to include the Actor name

      Returns string

    • get convertKeys(): {
          bs: string;
          bse: string;
          dv: string;
          ls: string;
          lv: string;
          sc: string;
          ths: string;
          tr: string;
          ts: string;
      }

      Returns which keys to convert in distance or weight

      Returns {
          bs: string;
          bse: string;
          dv: string;
          ls: string;
          lv: string;
          sc: string;
          ths: string;
          tr: string;
          ts: string;
      }

      Make this a set, senses don't do different types of units

    Methods

    • Protected

      Parameters

      • partId: any

      Returns Promise<
          | undefined
          | {
              actor: ActorPF;
              buttons?: undefined;
              cssClass: string;
              editable: boolean;
              gridUnits: string;
              isMetric: boolean;
              noSystemVision: any;
              senses: any;
          }
          | {
              actor?: undefined;
              buttons?: undefined;
              cssClass?: undefined;
              editable?: undefined;
              gridUnits?: undefined;
              isMetric?: undefined;
              noSystemVision?: undefined;
              senses?: undefined;
          }
          | {
              actor?: undefined;
              buttons: { icon: string; label: string; type: string }[];
              cssClass?: undefined;
              editable?: undefined;
              gridUnits?: undefined;
              isMetric?: undefined;
              noSystemVision?: undefined;
              senses?: undefined;
          },
      >

    • Internal

      Save the new vision details for the actor.

      Parameters

      • ...this: any
      • event: SubmitEvent

        The originating form submission event

      • form: HTMLFormElement

        The form element that was submitted

      • formData: FormDataExtended

        Processed data for the submitted form

        • object

          The parsed form data object

      Returns Promise<void>