mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-11 23:55:18 +02:00
Refactor Game Bar
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { BxIcon } from "@/utils/bx-icon";
|
||||
import { createButton, ButtonStyle } from "@/utils/html";
|
||||
import { t } from "@/utils/translation";
|
||||
import { BaseGameBarAction } from "./action-base";
|
||||
import { TrueAchievements } from "@/utils/true-achievements";
|
||||
|
||||
@@ -13,7 +12,6 @@ export class TrueAchievementsAction extends BaseGameBarAction {
|
||||
this.$content = createButton({
|
||||
style: ButtonStyle.GHOST,
|
||||
icon: BxIcon.TRUE_ACHIEVEMENTS,
|
||||
title: t('true-achievements'),
|
||||
onClick: this.onClick.bind(this),
|
||||
});
|
||||
}
|
||||
@@ -22,8 +20,4 @@ export class TrueAchievementsAction extends BaseGameBarAction {
|
||||
super.onClick(e);
|
||||
TrueAchievements.open(false);
|
||||
}
|
||||
|
||||
render(): HTMLElement {
|
||||
return this.$content;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user