Allowing cursor in shop to cycle horizontally

This commit is contained in:
Wlowscha 2025-01-02 02:37:38 +01:00
parent 10e0f9f0de
commit 66280ba7b7
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -397,8 +397,8 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
}
} else if (this.cursor) {
success = this.setCursor(this.cursor - 1);
} else if (this.rowCursor === 1 && this.rerollButtonContainer.visible) {
success = this.setRowCursor(0);
} else {
success = this.setCursor(this.getRowItems(this.rowCursor) - 1);
}
break;
case Button.RIGHT:
@ -427,8 +427,8 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
}
} else if (this.cursor < this.getRowItems(this.rowCursor) - 1) {
success = this.setCursor(this.cursor + 1);
} else if (this.rowCursor === 1 && this.transferButtonContainer.visible) {
success = this.setRowCursor(0);
} else {
success = this.setCursor(0);
}
break;
}