UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

16 lines 883 B
import type { SupportedLocale } from "../../../Engine.js"; import { type SettingOptions, type SettingThreshold, SettingTrigger } from "../../../settings/Settings.js"; import { Button, type ButtonOptions } from "../Button.js"; import type { UiComponent } from "../UiComponent.js"; export type TriggerButtonBehavior = "integer" | "percentage"; export type TriggerButtonOptions = ThisType<TriggerButton> & ButtonOptions & { readonly renderLabel?: boolean; }; export declare class TriggerButton extends Button { readonly options: TriggerButtonOptions; readonly behavior: TriggerButtonBehavior; readonly setting: SettingTrigger | SettingThreshold; constructor(parent: UiComponent, setting: SettingTrigger | SettingThreshold, _locale: SettingOptions<SupportedLocale>, options: TriggerButtonOptions); toString(): string; } //# sourceMappingURL=TriggerButton.d.ts.map