diff --git a/src/ui/filter-bar.ts b/src/ui/filter-bar.ts index 374e1df44d4..8ef910f954a 100644 --- a/src/ui/filter-bar.ts +++ b/src/ui/filter-bar.ts @@ -91,7 +91,7 @@ export class FilterBar extends Phaser.GameObjects.Container { * @param index the index of the column to retrieve * @returns the associated DropDownColumn if it exists, undefined otherwise */ - getColumn(index: number) : DropDownColumn { + public getColumn(index: number): DropDownColumn { return this.columns[index]; } @@ -194,7 +194,7 @@ export class FilterBar extends Phaser.GameObjects.Container { return this.getFilter(col).getVals(); } - resetSelection(col: DropDownColumn): void { + public resetSelection(col: DropDownColumn): void { this.dropDowns[col].resetToDefault(); this.updateFilterLabels(); } diff --git a/src/ui/pokedex-ui-handler.ts b/src/ui/pokedex-ui-handler.ts index ed6a9b55244..6b03a1dd782 100644 --- a/src/ui/pokedex-ui-handler.ts +++ b/src/ui/pokedex-ui-handler.ts @@ -892,7 +892,7 @@ export default class PokedexUiHandler extends MessageUiHandler { success = true; } else if (this.filterMode && !this.filterBar.getFilter(this.filterBarCursor).hasDefaultValues()) { this.filterBar.resetSelection(this.filterBarCursor); - this.updateStarters; + this.updateStarters(); success = true; } else if (this.filterTextMode && !(this.filterText.getValue(this.filterTextCursor) === this.filterText.defaultText)) { this.filterText.resetSelection(this.filterTextCursor); diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index ccee83147d8..cf3b3fb8276 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -1088,7 +1088,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { /** * Set default value for the caught dropdown, which only shows caught mons */ - resetCaughtDropdown(): void { + public resetCaughtDropdown(): void { const caughtDropDown: DropDown = this.filterBar.getFilter(DropDownColumn.CAUGHT); caughtDropDown.resetToDefault(); @@ -1338,7 +1338,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { } else { this.filterBar.resetSelection(this.filterBarCursor); } - this.updateStarters; + this.updateStarters(); success = true; } else if (this.statsMode) { this.toggleStatsMode(false);