[Bug] Clicking Right from Lock Rarities moves to transfer or check team (#2177)

* Clicking Right from Lock Rarities moves to transfer or check team

* make cursor left movement more natural

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
ifzeroequalsone 2024-08-24 01:12:31 -05:00 committed by GitHub
parent 4867ffb229
commit 7ed71ceb90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,7 +334,11 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
success = false; success = false;
break; break;
case 1: case 1:
success = this.rerollButtonContainer.visible && this.setCursor(0); if (this.transferButtonContainer.visible) {
success = this.setCursor(3);
} else {
success = this.rerollButtonContainer.visible && this.setCursor(0);
}
break; break;
case 2: case 2:
if (this.transferButtonContainer.visible) { if (this.transferButtonContainer.visible) {
@ -368,6 +372,13 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
case 2: case 2:
success = false; success = false;
break; break;
case 3:
if (this.transferButtonContainer.visible) {
success = this.setCursor(1);
} else {
success = this.setCursor(2);
}
break;
} }
} else if (this.cursor < this.getRowItems(this.rowCursor) - 1) { } else if (this.cursor < this.getRowItems(this.rowCursor) - 1) {
success = this.setCursor(this.cursor + 1); success = this.setCursor(this.cursor + 1);