Davide Tantillo 93c56d08d0 c3 backup
2025-11-03 15:16:29 +01:00

18 lines
749 B
TypeScript

interface ButtonInstanceEventMap<InstType = IButtonInstance> extends WorldInstanceEventMap<InstType> {
"click": InstanceEvent<InstType>;
}
/** Represents the Button object.
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/plugin-interfaces/button | IButtonInstance documentation } */
declare class IButtonInstance extends IDOMInstance
{
addEventListener<K extends keyof ButtonInstanceEventMap<this>>(type: K, listener: (ev: ButtonInstanceEventMap<this>[K]) => any): void;
removeEventListener<K extends keyof ButtonInstanceEventMap<this>>(type: K, listener: (ev: ButtonInstanceEventMap<this>[K]) => any): void;
text: string;
tooltip: string;
isEnabled: boolean;
isChecked: boolean;
}