Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    A generic helper for drawing a standard Control Icon.

    Index

    Constructors

    • Parameters

      • Optionaloptions: {
            borderColor?: ColorSource;
            elevation?: number;
            size?: number;
            texture?: string | Texture<Resource>;
            tint?: ColorSource;
        } = {}
        • OptionalborderColor?: ColorSource

          The border color

        • Optionalelevation?: number

          The elevation

        • Optionalsize?: number

          The size of the icon

        • Optionaltexture?: string | Texture<Resource>

          The (URL of the) icon texture

        • Optionaltint?: ColorSource

          The icon tint

      Returns ControlIcon

    Properties

    bg: Graphics

    The background of this control icon.

    border: Graphics

    The border of this control icon.

    icon: Sprite

    The icon of this control icon.

    renderFlags: RenderFlags

    Status flags which are applied at render-time to update the PlaceableObject. If an object defines RenderFlags, it should at least include flags for "redraw" and "refresh".

    tooltip: PreciseText

    The tooltip of this control icon.

    RENDER_FLAG_PRIORITY: string = "INTERFACE"
    RENDER_FLAGS: { redraw: { propagate: string[] }; refresh: {} } = ...

    Accessors

    • get elevation(): number

      The elevation of the control icon, which is displayed in its tooltip text.

      Returns number

    • get size(): number

      The size of the control icon.

      Returns number

    • get texture(): string | Texture<Resource>

      The (URL of the) icon texture used by this control icon.

      Returns string | Texture<Resource>

    Methods

    • Returns void

    • Parameters

      • options: any

      Returns void

    • Refresh the visualization of this control icon.

      Returns any

    • Protected

      Clear this control icon.

      Returns void

    • Protected

      Draw this control icon.

      Returns Promise<void>

    • Protected

      Refresh the visualization of this control icon.

      Returns void