Party Rest Configuration Dialog

Hierarchy

  • any
    • PartyRestConfig

Constructors

Properties

restConfig: any
DEFAULT_OPTIONS: {
    actions: {
        rest: (event: Event, _el: Element) => Promise<void>;
        sheet: {
            buttons: number[];
            handler: (event: Event, target: Element) => void;
        };
        toggle: (event: Event, el: Element) => void;
    };
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: (event: Event, form: Element, formData: FormDataExtended) => void;
        submitOnChange: boolean;
    };
    position: { width: number };
    tag: string;
    window: { minimizable: boolean; resizable: boolean; title: string };
} = ...
PARTS: { footer: { template: string }; form: { template: string } } = ...

Accessors

Methods

  • Parameters

    • config: any
    • updateTime: boolean = true

    Returns void

  • Internal

    Parameters

    • event: Event

      Click event

    • target: Element

      Target element

    Returns void

  • Rest button handler

    Parameters

    • event: Event

      Click event

    • _el: Element

      Clicked element

    Returns Promise<void>

  • Parameters

    • event: Event

      Triggering event

    • form: Element

      Form element

    • formData: FormDataExtended

      Form data

    Returns void

  • Toggle rest category for all participants.

    Parameters

    • event: Event

      Click event

    • el: Element

      Clicked element

    Returns void

  • Internal

    Perform rest on each individual actor

    Parameters

    • config: object

      Rest configuration

    Returns boolean | void

    • False if cancelled, nothing otherwise.
  • Parameters

    • __namedParameters: {
          actors?: never[];
          longTermCare?: boolean;
          restOptions?: {};
          restoreHealth?: boolean;
          restoreUses?: boolean;
          watches?: string;
      } = {}

    Returns Promise<
        {
            actors: any[];
            hours: any;
            longTermCare: boolean;
            restOptions: {};
            restoreHealth: boolean;
            restoreUses: boolean;
            watches: string;
        },
    >