mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-02 11:26:46 +02:00
17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
import { BxEvent } from "@/utils/bx-event";
|
|
|
|
export abstract class BaseGameBarAction {
|
|
abstract $content: HTMLElement;
|
|
|
|
constructor() {}
|
|
reset() {}
|
|
|
|
onClick(e: Event) {
|
|
BxEvent.dispatch(window, BxEvent.GAME_BAR_ACTION_ACTIVATED);
|
|
};
|
|
|
|
render(): HTMLElement {
|
|
return this.$content;
|
|
};
|
|
}
|