InGameEditorToolbarItem: {
    color?: string;
    iconUrl?: string;
    id: string;
    isActive?: boolean;
    onClick: (() => void);
    tooltip: string;
    type: "button";
} | {
    iconUrl?: string;
    id: string;
    max: float;
    min: float;
    onChange: ((value) => void);
    tooltip: string;
    type: "slider";
    value: float;
} | {
    id: string;
    type: "divider";
}

An item of a toolbar shown by an extension (see InGameEditor.showToolbar).

Type declaration

  • Optional color?: string

    A color shown instead of an icon, for example to choose a color.

  • Optional iconUrl?: string

    An icon (for example the data URL of an SVG), drawn with the color of texts.

  • id: string
  • Optional isActive?: boolean
  • onClick: (() => void)
      • (): void
      • Returns void

  • tooltip: string
  • type: "button"

Type declaration

  • Optional iconUrl?: string

    An icon shown before the slider, as a visual label.

  • id: string
  • max: float
  • min: float
  • onChange: ((value) => void)
      • (value): void
      • Parameters

        • value: float

        Returns void

  • tooltip: string
  • type: "slider"
  • value: float

Type declaration

  • id: string
  • type: "divider"