UNPKG

@kitten-science/kitten-scientists

Version:

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

25 lines 1.22 kB
import type { SettingMax } from "../../settings/Settings.js"; import { MaxButton } from "./buttons/MaxButton.js"; import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js"; import type { UiComponent } from "./UiComponent.js"; export type SettingMaxListItemOptions = ThisType<SettingMaxListItem> & SettingListItemOptions & { readonly onRefreshMax?: () => void; readonly onSetMax: () => void | Promise<void>; }; export declare class SettingMaxListItem extends SettingListItem<SettingMax> { readonly options: SettingMaxListItemOptions; readonly maxButton: MaxButton; /** * Create a UI element for a setting that can have a maximum. * This will result in an element with a labeled checkbox and a "Max" indicator, * which controls the respective `max` property in the setting model. * * @param host The userscript instance. * @param label The label for the setting. * @param setting The setting model. * @param options Options for the list item. */ constructor(parent: UiComponent, setting: SettingMax, label: string, options: SettingMaxListItemOptions); toString(): string; } //# sourceMappingURL=SettingMaxListItem.d.ts.map