Override and extend the core ItemSheet implementation to handle game system specific item types

Hierarchy

Constructors

Properties

_filters: Set<any>

Track the set of item filters which are applied

_itemUpdates: object[]

Track item updates from the actor sheet.

effectiveSearch: string
items: any[]
searchCompositioning: boolean

Item search

searchDelay: number
searchDelayEvent: null | Timeout
searchRefresh: boolean

Accessors

  • get defaultOptions(): InsertKeys<{
        baseApplication: null | string;
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        editable: boolean;
        filters: Omit<SearchFilterConfiguration, "callback">[];
        height: null | number | "auto";
        id: string;
        left: null | number;
        minimizable: boolean;
        popOut: boolean;
        resizable: boolean;
        scale: null | number;
        scrollY: string[];
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            initial: string;
            navSelector: string;
        }[];
        template: null | string;
        title: string;
        top: null | number;
        viewPermission: 0 | 1 | 2 | 3;
        width: number;
    }, OmitByValue<{
        classes: string[];
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        scrollY: string[];
        width: number;
    }, never>>
  • Returns InsertKeys<{
        baseApplication: null | string;
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        editable: boolean;
        filters: Omit<SearchFilterConfiguration, "callback">[];
        height: null | number | "auto";
        id: string;
        left: null | number;
        minimizable: boolean;
        popOut: boolean;
        resizable: boolean;
        scale: null | number;
        scrollY: string[];
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            initial: string;
            navSelector: string;
        }[];
        template: null | string;
        title: string;
        top: null | number;
        viewPermission: 0 | 1 | 2 | 3;
        width: number;
    }, OmitByValue<{
        classes: string[];
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        scrollY: string[];
        width: number;
    }, never>>

Methods

  • Check if a given material is okay to be added to our materials list for the item sheet.

    Parameters

    • itemType: string

      Whether we're checking weapons or equipment

    • itemSubtype: string

      Item-specific typing to filter with

    • subType: string

      Only relevant with shields, since "other" is used in both shield and general gear

    • material: MaterialType

      The Material object from the registry that has our needed metadata

    Returns boolean

  • Internal

    Parameters

    • elem: Element
    • Optional options: {
          animation: undefined | boolean;
          rollData: undefined | object;
      } = {}

      Additional options

      • animation: undefined | boolean
      • rollData: undefined | object

    Returns Promise<void>

  • Parameters

    • itemType: any
    • itemSubtype: any
    • subType: any
    • chosenMaterial: string = ""

    Returns {
        addons: any[];
        basics: {};
        materials: {};
    }

    • addons: any[]
    • basics: {}
      • materials: {}
      • Prepare item sheet data Start with the base item data and extending with additional properties for rendering.

        Returns Promise<{
            canClassLink: boolean;
            config: config;
            document: ItemPF;
            editable: boolean;
            inContainer: boolean;
            isGM: boolean;
            item: ItemPF;
            itemType: string;
            labels: Record<string, string>;
            name: null | string;
            owned: boolean;
            owner: boolean;
            rollData: object;
            system: any;
            tag: any;
        }>

      Generated using TypeDoc