@augments{DragDropApplicationMixin<HandlebarsApplicationMixin>}

Hierarchy

  • any
    • ExperienceDistributor

Constructors

Properties

_bonusXP: number = 0
DEFAULT_OPTIONS: {
    actions: {
        cancel: ((event) => Promise<void>);
        give: ((event) => Promise<void>);
        split: ((event) => Promise<void>);
    };
    classes: string[];
    dragDrop: {
        dragSelector: null;
        dropSelector: string;
    }[];
    form: {
        closeOnSubmit: boolean;
        handler: ((event) => 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: ((event) => Promise<void>);
        give: ((event) => Promise<void>);
        split: ((event) => Promise<void>);
    }
    • cancel: ((event) => Promise<void>)
        • (event): Promise<void>
        • Internal

          Cancel distribution and close dialog

          Parameters

          • event: any

          Returns Promise<void>

          Static

    • give: ((event) => Promise<void>)
        • (event): Promise<void>
        • Internal

          Give all XP to all actors

          Parameters

          • event: any

          Returns Promise<void>

          Static

    • split: ((event) => Promise<void>)
        • (event): Promise<void>
        • Internal

          Distribute XP evenly between actors

          Parameters

          • event: any

          Returns Promise<void>

          Static

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

          Give all XP to all actors

          Parameters

          • event: any

          Returns Promise<void>

          Static

    • 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;
    };
} = ...

Type declaration

  • footer: {
        template: string;
    }
    • template: string
  • form: {
        scrollable: string[];
        template: string;
    }
    • 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;
        };
    }>

    Inherit Doc

    Async

Generated using TypeDoc