[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
1 changed files with 12 additions and 1 deletions

View File

@ -334,7 +334,11 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
success = false;
break;
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;
case 2:
if (this.transferButtonContainer.visible) {
@ -368,6 +372,13 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
case 2:
success = false;
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) {
success = this.setCursor(this.cursor + 1);