mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Filter changes to starter select screen
This commit is contained in:
parent
977af14570
commit
ce92dfa048
@ -1301,16 +1301,11 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
if (this.filterMode && this.filterBar.openDropDown) {
|
if (this.filterMode && this.filterBar.openDropDown) {
|
||||||
// CANCEL with a filter menu open > close it
|
// CANCEL with a filter menu open > close it
|
||||||
this.filterBar.toggleDropDown(this.filterBarCursor);
|
this.filterBar.toggleDropDown(this.filterBarCursor);
|
||||||
|
|
||||||
// if there are possible starters go the first one of the list
|
|
||||||
if (numberOfStarters > 0) {
|
|
||||||
this.setFilterMode(false);
|
|
||||||
this.scrollCursor = 0;
|
|
||||||
this.updateScroll();
|
|
||||||
this.setCursor(0);
|
|
||||||
}
|
|
||||||
success = true;
|
success = true;
|
||||||
|
} else if (this.filterMode && !this.filterBar.getFilter(this.filterBarCursor).hasDefaultValues()) {
|
||||||
|
this.filterBar.resetSelection(this.filterBarCursor);
|
||||||
|
this.updateStarters;
|
||||||
|
success = true;
|
||||||
} else if (this.statsMode) {
|
} else if (this.statsMode) {
|
||||||
this.toggleStatsMode(false);
|
this.toggleStatsMode(false);
|
||||||
success = true;
|
success = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user