@augments{DragDropApplicationMixin<HandlebarsApplicationMixin>}

Hierarchy

  • any
    • ExperienceDistributor

Constructors

Properties

Special actor data array

_bonusXP: number = 0

Bonus XP granted

DEFAULT_OPTIONS: {
    actions: {
        cancel: ((...this: any, event: any) => Promise<void>);
        give: ((...this: any, event: any) => Promise<void>);
        split: ((...this: any, event: any) => Promise<void>);
    };
    classes: string[];
    dragDrop: {
        dragSelector: null;
        dropSelector: string;
    }[];
    form: {
        closeOnSubmit: boolean;
        handler: ((...this: any, event: any) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    position: {
        height: number;
        width: number;
    };
    sheetConfig: boolean;
    tag: string;
    window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    };
} = ...

Type declaration

  • actions: {
        cancel: ((...this: any, event: any) => Promise<void>);
        give: ((...this: any, event: any) => Promise<void>);
        split: ((...this: any, event: any) => Promise<void>);
    }
    • cancel: ((...this: any, event: any) => Promise<void>)
        • (...this, event): Promise<void>
        • Internal

          Cancel distribution and close dialog

          Parameters

          • Rest...this: any
          • event: any

          Returns Promise<void>

    • give: ((...this: any, event: any) => Promise<void>)
        • (...this, event): Promise<void>
        • Internal

          Give all XP to all actors

          Parameters

          • Rest...this: any
          • event: any

          Returns Promise<void>

    • split: ((...this: any, event: any) => Promise<void>)
        • (...this, event): Promise<void>
        • Internal

          Distribute XP evenly between actors

          Parameters

          • Rest...this: any
          • event: any

          Returns Promise<void>

  • classes: string[]
  • dragDrop: {
        dragSelector: null;
        dropSelector: string;
    }[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((...this: any, event: any) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((...this: any, event: any) => Promise<void>)
        • (...this, event): Promise<void>
        • Internal

          Give all XP to all actors

          Parameters

          • Rest...this: any
          • event: any

          Returns Promise<void>

    • submitOnChange: boolean
    • submitOnClose: boolean
  • position: {
        height: number;
        width: number;
    }
    • height: number
    • width: number
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    }
    • minimizable: boolean
    • resizable: boolean
    • title: string
PARTS: {
    footer: {
        template: string;
    };
    form: {
        scrollable: string[];
        template: string;
    };
} = ...

Accessors

Methods

  • Internal

    The event handler for changes to form input elements

    Parameters

    • formConfig: ApplicationFormConfiguration

      The configuration of the form being changed

    • event: Event

      The triggering event

    Returns void

  • Internal

    Returns Promise<{
        actors: {
            characters: ExperienceDistributorActor[];
            npcs: ExperienceDistributorActor[];
        };
        bonusXP: number;
        buttons: {
            action: string;
            icon: string;
            label: string;
            type: string;
        }[];
        xp: {
            split: string;
            total: string;
        };
    }>