From a97933fe4c85a71603aab08f023c7496885c88f6 Mon Sep 17 00:00:00 2001 From: SquillWall Date: Mon, 10 Jun 2024 16:19:06 -0400 Subject: [PATCH] [Bug] Fix inputs being annoying in the corner of the screen again (#2054) --- src/ui/starter-select-ui-handler.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 0b1da238c6c..9536fb0cc2e 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -706,6 +706,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler { this.variantIconElement.setOrigin(0.0, 0.0); this.variantLabel = addTextObject(this.scene, this.instructionRowX + this.instructionRowTextOffset, this.instructionRowY, i18next.t("starterSelectUiHandler:cycleVariant"), TextStyle.PARTY, { fontSize: instructionTextSize }); + this.hideInstructions(); + this.starterSelectMessageBoxContainer = this.scene.add.container(0, this.scene.game.canvas.height / 6); this.starterSelectMessageBoxContainer.setVisible(false); this.starterSelectContainer.add(this.starterSelectMessageBoxContainer); @@ -1574,6 +1576,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler { iconElement.setTexture(gamepadType, iconPath); iconElement.setPosition(this.instructionRowX, this.instructionRowY); controlLabel.setPosition(this.instructionRowX + this.instructionRowTextOffset, this.instructionRowY); + iconElement.setVisible(true); + controlLabel.setVisible(true); this.instructionsContainer.add([iconElement, controlLabel]); this.instructionRowY += 8; if (this.instructionRowY >= 24) { @@ -1585,6 +1589,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { updateInstructions(): void { this.instructionRowX = 0; this.instructionRowY = 0; + this.hideInstructions(); this.instructionsContainer.removeAll(); let gamepadType; if (this.scene.inputMethod === "gamepad") {