[Bug] Fix inputs being annoying in the corner of the screen again (#2054)
This commit is contained in:
parent
bcfeaf0639
commit
a97933fe4c
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue