mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-13 16:39:16 +02:00
24 lines
640 B
TypeScript
24 lines
640 B
TypeScript
import { BxIcon } from "@/utils/bx-icon";
|
|
import { createButton, ButtonStyle } from "@/utils/html";
|
|
import { BaseGameBarAction } from "./action-base";
|
|
import { TrueAchievements } from "@/utils/true-achievements";
|
|
|
|
export class TrueAchievementsAction extends BaseGameBarAction {
|
|
$content: HTMLElement;
|
|
|
|
constructor() {
|
|
super();
|
|
|
|
this.$content = createButton({
|
|
style: ButtonStyle.GHOST,
|
|
icon: BxIcon.TRUE_ACHIEVEMENTS,
|
|
onClick: this.onClick.bind(this),
|
|
});
|
|
}
|
|
|
|
onClick(e: Event) {
|
|
super.onClick(e);
|
|
TrueAchievements.getInstance().open(false);
|
|
}
|
|
}
|