[QoL] Change Dex filter name to Caught (#3361)
* change filter name `Dex` to `Caught` * fix mis changed entry * Update src/locales/fr/filter-bar.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/filter-bar.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/pt_BR/filter-bar.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/filter-bar.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/filter-bar.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_TW/filter-bar.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> --------- Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> Co-authored-by: Enoch <enoch.jwsong@gmail.com> Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
This commit is contained in:
parent
1aa2c219bb
commit
20e52ed9a7
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Gen.",
|
||||
"typeFilter": "Typ",
|
||||
"dexFilter": "Dex.",
|
||||
"caughtFilter": "Gefangen",
|
||||
"unlocksFilter": "Freisch.",
|
||||
"miscFilter": "Sonst.",
|
||||
"sortFilter": "Sort.",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Gen",
|
||||
"typeFilter": "Type",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "Caught",
|
||||
"unlocksFilter": "Unlocks",
|
||||
"miscFilter": "Misc",
|
||||
"sortFilter": "Sort",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Gen.",
|
||||
"typeFilter": "Tipo",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "Caught",
|
||||
"unlocksFilter": "Otros",
|
||||
"miscFilter": "Misc",
|
||||
"sortFilter": "Orden",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Gen",
|
||||
"typeFilter": "Type",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "Capturés",
|
||||
"unlocksFilter": "Débloq.",
|
||||
"miscFilter": "Divers",
|
||||
"sortFilter": "Tri",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Gen",
|
||||
"typeFilter": "Tipo",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "Caught",
|
||||
"unlocksFilter": "Altro",
|
||||
"miscFilter": "Misc",
|
||||
"sortFilter": "Ordina",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "세대",
|
||||
"typeFilter": "타입",
|
||||
"dexFilter": "도감",
|
||||
"caughtFilter": "포획",
|
||||
"unlocksFilter": "해금",
|
||||
"miscFilter": "기타",
|
||||
"sortFilter": "정렬",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "Ger.",
|
||||
"typeFilter": "Tipo",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "Capturado",
|
||||
"unlocksFilter": "Desbloqueios",
|
||||
"miscFilter": "Outros",
|
||||
"sortFilter": "Ordem",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "世代",
|
||||
"typeFilter": "属性",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "捕获",
|
||||
"unlocksFilter": "解锁",
|
||||
"miscFilter": "混合",
|
||||
"sortFilter": "排序",
|
||||
|
|
|
@ -3,7 +3,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales";
|
|||
export const filterBar: SimpleTranslationEntries = {
|
||||
"genFilter": "世代",
|
||||
"typeFilter": "屬性",
|
||||
"dexFilter": "Dex",
|
||||
"caughtFilter": "捕獲",
|
||||
"unlocksFilter": "解鎖",
|
||||
"miscFilter": "混合",
|
||||
"sortFilter": "排序",
|
||||
|
|
|
@ -8,7 +8,7 @@ import { addWindow, WindowVariant } from "./ui-theme";
|
|||
export enum DropDownColumn {
|
||||
GEN,
|
||||
TYPES,
|
||||
DEX,
|
||||
CAUGHT,
|
||||
UNLOCKS,
|
||||
MISC,
|
||||
SORT
|
||||
|
|
|
@ -398,7 +398,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
});
|
||||
this.filterBar.addFilter(DropDownColumn.TYPES, i18next.t("filterBar:typeFilter"), new DropDown(this.scene, 0, 0, typeOptions, this.updateStarters, DropDownType.HYBRID, 0.5));
|
||||
|
||||
// shiny filter
|
||||
// caught filter
|
||||
const shiny1Sprite = this.scene.add.sprite(0, 0, "shiny_icons");
|
||||
shiny1Sprite.setOrigin(0.15, 0.2);
|
||||
shiny1Sprite.setScale(0.6);
|
||||
|
@ -415,7 +415,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
shiny3Sprite.setFrame(getVariantIcon(2));
|
||||
shiny3Sprite.setTint(getVariantTint(2));
|
||||
|
||||
const shinyOptions = [
|
||||
const caughtOptions = [
|
||||
new DropDownOption(this.scene, "SHINY3", new DropDownLabel("", shiny3Sprite)),
|
||||
new DropDownOption(this.scene, "SHINY2", new DropDownLabel("", shiny2Sprite)),
|
||||
new DropDownOption(this.scene, "SHINY", new DropDownLabel("", shiny1Sprite)),
|
||||
|
@ -423,7 +423,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
new DropDownOption(this.scene, "UNCAUGHT", new DropDownLabel(i18next.t("filterBar:uncaught")))
|
||||
];
|
||||
|
||||
this.filterBar.addFilter(DropDownColumn.DEX, i18next.t("filterBar:dexFilter"), new DropDown(this.scene, 0, 0, shinyOptions, this.updateStarters, DropDownType.HYBRID));
|
||||
this.filterBar.addFilter(DropDownColumn.CAUGHT, i18next.t("filterBar:caughtFilter"), new DropDown(this.scene, 0, 0, caughtOptions, this.updateStarters, DropDownType.HYBRID));
|
||||
|
||||
// unlocks filter
|
||||
const passiveLabels = [
|
||||
|
@ -2130,16 +2130,16 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
|
||||
const fitsType = this.filterBar.getVals(DropDownColumn.TYPES).some(type => container.species.isOfType((type as number) - 1));
|
||||
|
||||
const fitsShiny = this.filterBar.getVals(DropDownColumn.DEX).some(variant => {
|
||||
if (variant === "SHINY3") {
|
||||
const fitsCaught = this.filterBar.getVals(DropDownColumn.CAUGHT).some(caught => {
|
||||
if (caught === "SHINY3") {
|
||||
return isVariant3Caught;
|
||||
} else if (variant === "SHINY2") {
|
||||
} else if (caught === "SHINY2") {
|
||||
return isVariant2Caught && !isVariant3Caught;
|
||||
} else if (variant === "SHINY") {
|
||||
} else if (caught === "SHINY") {
|
||||
return isVariantCaught && !isVariant2Caught && !isVariant3Caught;
|
||||
} else if (variant === "NORMAL") {
|
||||
} else if (caught === "NORMAL") {
|
||||
return isCaught && !isVariantCaught && !isVariant2Caught && !isVariant3Caught;
|
||||
} else if (variant === "UNCAUGHT") {
|
||||
} else if (caught === "UNCAUGHT") {
|
||||
return isUncaught;
|
||||
}
|
||||
});
|
||||
|
@ -2196,7 +2196,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
}
|
||||
});
|
||||
|
||||
if (fitsGen && fitsType && fitsShiny && fitsPassive && fitsCostReduction && fitsWin && fitsHA && fitsPokerus) {
|
||||
if (fitsGen && fitsType && fitsCaught && fitsPassive && fitsCostReduction && fitsWin && fitsHA && fitsPokerus) {
|
||||
this.filteredStarterContainers.push(container);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue