Files
better-xcloud/src/modules/game-bar/action-base.ts
2024-10-14 16:45:57 +07:00

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;
};
}