mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Added localization options
This commit is contained in:
parent
eb2e436b96
commit
0f3dc6a3c6
@ -4,6 +4,7 @@ import { getKeyWithKeycode } from "#app/configs/inputs/configHandler";
|
|||||||
import { Device } from "#enums/devices";
|
import { Device } from "#enums/devices";
|
||||||
import { addTextObject, TextStyle } from "#app/ui/text";
|
import { addTextObject, TextStyle } from "#app/ui/text";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
|
import i18next from "i18next";
|
||||||
|
|
||||||
export default class KeyboardBindingUiHandler extends AbstractBindingUiHandler {
|
export default class KeyboardBindingUiHandler extends AbstractBindingUiHandler {
|
||||||
constructor(mode: UiMode | null = null) {
|
constructor(mode: UiMode | null = null) {
|
||||||
@ -21,7 +22,7 @@ export default class KeyboardBindingUiHandler extends AbstractBindingUiHandler {
|
|||||||
this.newButtonIcon.setOrigin(0.5);
|
this.newButtonIcon.setOrigin(0.5);
|
||||||
this.newButtonIcon.setVisible(false);
|
this.newButtonIcon.setVisible(false);
|
||||||
|
|
||||||
this.actionLabel = addTextObject(0, 0, "Assign button", TextStyle.SETTINGS_LABEL);
|
this.actionLabel = addTextObject(0, 0, i18next.t("settings:assignButton"), TextStyle.SETTINGS_LABEL);
|
||||||
this.actionLabel.setOrigin(0, 0.5);
|
this.actionLabel.setOrigin(0, 0.5);
|
||||||
this.actionLabel.setPositionRelative(this.actionBg, this.actionBg.width - 80, this.actionBg.height / 2);
|
this.actionLabel.setPositionRelative(this.actionBg, this.actionBg.width - 80, this.actionBg.height / 2);
|
||||||
this.actionsContainer.add(this.actionLabel);
|
this.actionsContainer.add(this.actionLabel);
|
||||||
|
Loading…
Reference in New Issue
Block a user