pokerogue/src/ui/run-history-ui-handler.ts

394 lines
15 KiB
TypeScript
Raw Normal View History

import { globalScene } from "#app/global-scene";
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
import { GameModes } from "../game-mode";
import { TextStyle, addTextObject } from "./text";
import { Mode } from "./ui";
import { addWindow } from "./ui-theme";
import * as Utils from "../utils";
import type PokemonData from "../system/pokemon-data";
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
import MessageUiHandler from "./message-ui-handler";
import i18next from "i18next";
2024-10-04 13:08:31 +08:00
import { Button } from "../enums/buttons";
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
import { BattleType } from "../battle";
import type { RunEntry } from "../system/game-data";
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
import { PlayerGender } from "#enums/player-gender";
import { TrainerVariant } from "../field/trainer";
[Feature][UI] Save Preview (#4410) * Making 3 Option UI real * idk anymore * Revert "Making 3 Option UI real" This reverts commit beaad44c1eb098a09cfd2d04043d878d24f494c1. * Let's see * Current issues - scrolling upwards and correct cursor landing * argh * Fixed reactive scrolling * Adding ME handling * set up descriptions * Cleaned up UI i think * stupid alder * Added double trainer handling + changed enum name * Apply suggestions from code review Thank you Moka! Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com> * Arrow Visibility now depends on Session Slot hasData * documentation * Simplified calls to revertSessionSlot + changed function name per feedback * Fixed scrollCursor issue. * added comment * Update src/ui/save-slot-select-ui-handler.ts Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com> * Fixed sound played + added better conditional * Balance Team.... * ME related changes * Apply suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com> * Update src/data/mystery-encounters/mystery-encounter.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/data/mystery-encounters/mystery-encounter.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Sending Doubles-fix * eslint.. --------- Co-authored-by: frutescens <info@laptop> Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-09 12:04:13 -07:00
import { RunDisplayMode } from "#app/ui/run-info-ui-handler";
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
export type RunSelectCallback = (cursor: number) => void;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
export const RUN_HISTORY_LIMIT: number = 25;
/**
* RunHistoryUiHandler handles the UI of the Run History Menu
* Run History itself is broken into an array of RunEntryContainer objects that can show the user basic details about their run and allow them to access more details about their run through cursor action.
* It navigates similarly to the UI of the save slot select menu.
* The only valid input buttons are Button.ACTION and Button.CANCEL.
*/
export default class RunHistoryUiHandler extends MessageUiHandler {
private readonly maxRows = 3;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
private runSelectContainer: Phaser.GameObjects.Container;
private runsContainer: Phaser.GameObjects.Container;
private runs: RunEntryContainer[];
private runSelectCallback: RunSelectCallback | null;
private scrollCursor: number = 0;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
private cursorObj: Phaser.GameObjects.NineSlice | null;
private runContainerInitialY: number;
constructor() {
super(Mode.RUN_HISTORY);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
}
override setup() {
const ui = this.getUi();
this.runSelectContainer = globalScene.add.container(0, 0);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runSelectContainer.setVisible(false);
ui.add(this.runSelectContainer);
const loadSessionBg = globalScene.add.rectangle(0, 0, globalScene.game.canvas.width / 6, -globalScene.game.canvas.height / 6, 0x006860);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
loadSessionBg.setOrigin(0, 0);
this.runSelectContainer.add(loadSessionBg);
this.runContainerInitialY = -globalScene.game.canvas.height / 6 + 8;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runsContainer = globalScene.add.container(8, this.runContainerInitialY);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runSelectContainer.add(this.runsContainer);
this.runs = [];
globalScene.loadImage("hall_of_fame_red", "ui");
globalScene.loadImage("hall_of_fame_blue", "ui");
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
// For some reason, the game deletes/unloads the rival sprites. As a result, Run Info cannot access the rival sprites.
// The rivals are loaded here to have some way of accessing those sprites.
globalScene.loadAtlas("rival_f", "trainer");
globalScene.loadAtlas("rival_m", "trainer");
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
}
override show(args: any[]): boolean {
super.show(args);
this.getUi().bringToTop(this.runSelectContainer);
this.runSelectContainer.setVisible(true);
this.populateRuns().then(() => {
this.setScrollCursor(0);
this.setCursor(0);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
//Destroys the cursor if there are no runs saved so far.
if (this.runs.length === 0) {
this.clearCursor();
}
});
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
return true;
}
/**
* Performs a certain action based on the button pressed by the user
* @param button
* The user can navigate through the runs with Button.UP/Button.DOWN.
* Button.ACTION allows the user to access more information about their runs.
* Button.CANCEL allows the user to go back.
*/
override processInput(button: Button): boolean {
const ui = this.getUi();
let success = false;
const error = false;
2024-10-04 13:08:31 +08:00
if ([ Button.ACTION, Button.CANCEL ].includes(button)) {
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
if (button === Button.ACTION) {
const cursor = this.cursor + this.scrollCursor;
if (this.runs[cursor]) {
globalScene.ui.setOverlayMode(Mode.RUN_INFO, this.runs[cursor].entryData, RunDisplayMode.RUN_HISTORY, true);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
} else {
return false;
}
success = true;
return success;
} else {
this.runSelectCallback = null;
success = true;
globalScene.ui.revertMode();
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
}
} else if (this.runs.length > 0) {
switch (button) {
case Button.UP:
if (this.cursor) {
success = this.setCursor(this.cursor - 1);
} else if (this.scrollCursor) {
success = this.setScrollCursor(this.scrollCursor - 1);
} else if (this.runs.length > 1) {
// wrap around to the bottom
success = this.setCursor(Math.min(this.runs.length - 1, this.maxRows - 1));
success = this.setScrollCursor(Math.max(0, this.runs.length - this.maxRows)) || success;
}
break;
case Button.DOWN:
if (this.cursor < Math.min(this.maxRows - 1, this.runs.length - this.scrollCursor - 1)) {
success = this.setCursor(this.cursor + 1);
} else if (this.scrollCursor < this.runs.length - this.maxRows) {
success = this.setScrollCursor(this.scrollCursor + 1);
} else if (this.runs.length > 1) {
// wrap around to the top
success = this.setCursor(0);
success = this.setScrollCursor(0) || success;
}
break;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
}
}
if (success) {
ui.playSelect();
} else if (error) {
ui.playError();
}
return success || error;
}
/**
* This retrieves the player's run history and facilitates the processes necessary for the output display.
* Runs are displayed from newest --> oldest in descending order.
* In the for loop, each run is processed to create an RunEntryContainer used to display and store the run's unique information
*/
private async populateRuns() {
const response = await globalScene.gameData.getRunHistoryData();
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
const timestamps = Object.keys(response);
if (timestamps.length === 0) {
this.showEmpty();
return;
}
const timestampsNo = timestamps.map(Number);
if (timestamps.length > 1) {
timestampsNo.sort((a, b) => b - a);
}
const entryCount = timestamps.length;
for (let s = 0; s < entryCount; s++) {
const entry = new RunEntryContainer(response[timestampsNo[s]], s);
globalScene.add.existing(entry);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runsContainer.add(entry);
this.runs.push(entry);
}
if (this.cursorObj && timestamps.length > 0) {
this.runsContainer.bringToTop(this.cursorObj);
}
}
/**
* If the player has no runs saved so far, this creates a giant window labeled empty instead.
*/
private async showEmpty() {
const emptyWindow = addWindow(0, 0, 304, 165);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runsContainer.add(emptyWindow);
const emptyWindowCoordinates = emptyWindow.getCenter();
const emptyText = addTextObject(0, 0, i18next.t("saveSlotSelectUiHandler:empty"), TextStyle.WINDOW, { fontSize: "128px" });
2024-10-04 13:08:31 +08:00
emptyText.setPosition(emptyWindowCoordinates.x - 18, emptyWindowCoordinates.y - 15);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.runsContainer.add(emptyText);
}
override setCursor(cursor: number): boolean {
const changed = super.setCursor(cursor);
if (!this.cursorObj) {
this.cursorObj = globalScene.add.nineslice(0, 0, "select_cursor_highlight_thick", undefined, 296, 46, 6, 6, 6, 6);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.cursorObj.setOrigin(0, 0);
this.runsContainer.add(this.cursorObj);
}
this.cursorObj.setPosition(4, 4 + (cursor + this.scrollCursor) * 56);
return changed;
}
private setScrollCursor(scrollCursor: number): boolean {
const changed = scrollCursor !== this.scrollCursor;
if (changed) {
this.scrollCursor = scrollCursor;
this.setCursor(this.cursor);
globalScene.tweens.add({
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
targets: this.runsContainer,
y: this.runContainerInitialY - 56 * scrollCursor,
duration: Utils.fixedInt(325),
ease: "Sine.easeInOut"
});
}
return changed;
}
/**
* Called when the player returns back to the menu
* Uses the functions clearCursor() and clearRuns()
*/
override clear() {
super.clear();
this.runSelectContainer.setVisible(false);
this.setScrollCursor(0);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.clearCursor();
this.runSelectCallback = null;
this.clearRuns();
}
private clearCursor() {
if (this.cursorObj) {
this.cursorObj.destroy();
}
this.cursorObj = null;
}
private clearRuns() {
this.runs.splice(0, this.runs.length);
this.runsContainer.removeAll(true);
}
}
/**
* RunEntryContainer : stores/displays an individual run
* slotId: necessary for positioning
* entryData: the data of an individual run
*/
class RunEntryContainer extends Phaser.GameObjects.Container {
private slotId: number;
public entryData: RunEntry;
constructor(entryData: RunEntry, slotId: number) {
super(globalScene, 0, slotId * 56);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.slotId = slotId;
this.entryData = entryData;
this.setup(this.entryData);
}
/**
* This processes the individual run's data for display.
*
* Each RunEntryContainer displayed should have the following information:
* Run Result: Victory || Defeat
* Game Mode + Final Wave
* Time Stamp
*
* The player's party and their levels at the time of the last wave of the run are also displayed.
*/
private setup(run: RunEntry) {
const victory = run.isVictory;
const data = globalScene.gameData.parseSessionData(JSON.stringify(run.entry));
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
const slotWindow = addWindow(0, 0, 304, 52);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(slotWindow);
// Run Result: Victory
if (victory) {
const gameOutcomeLabel = addTextObject(8, 5, `${i18next.t("runHistory:victory")}`, TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(gameOutcomeLabel);
} else { // Run Result: Defeats
const genderIndex = globalScene.gameData.gender ?? PlayerGender.UNSET;
const genderStr = PlayerGender[genderIndex].toLowerCase();
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
// Defeats from wild Pokemon battles will show the Pokemon responsible by the text of the run result.
if (data.battleType === BattleType.WILD || (data.battleType === BattleType.MYSTERY_ENCOUNTER && !data.trainer)) {
const enemyContainer = globalScene.add.container(8, 5);
const gameOutcomeLabel = addTextObject(0, 0, `${i18next.t("runHistory:defeatedWild", { context: genderStr })}`, TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
enemyContainer.add(gameOutcomeLabel);
data.enemyParty.forEach((enemyData, e) => {
const enemyIconContainer = globalScene.add.container(65 + (e * 25), -8);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
enemyIconContainer.setScale(0.75);
enemyData.boss = false;
enemyData["player"] = true;
const enemy = enemyData.toPokemon();
const enemyIcon = globalScene.addPokemonIcon(enemy, 0, 0, 0, 0);
const enemyLevel = addTextObject(32, 20, `${i18next.t("saveSlotSelectUiHandler:lv")}${Utils.formatLargeNumber(enemy.level, 1000)}`, TextStyle.PARTY, { fontSize: "54px", color: "#f8f8f8" });
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
enemyLevel.setShadow(0, 0, undefined);
enemyLevel.setStroke("#424242", 14);
enemyLevel.setOrigin(1, 0);
enemyIconContainer.add(enemyIcon);
enemyIconContainer.add(enemyLevel);
enemyContainer.add(enemyIconContainer);
enemy.destroy();
});
this.add(enemyContainer);
} else if (data.battleType === BattleType.TRAINER || (data.battleType === BattleType.MYSTERY_ENCOUNTER && data.trainer)) { // Defeats from Trainers show the trainer's title and name
const tObj = data.trainer.toTrainer();
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
// Because of the interesting mechanics behind rival names, the rival name and title have to be retrieved differently
const RIVAL_TRAINER_ID_THRESHOLD = 375;
if (data.trainer.trainerType >= RIVAL_TRAINER_ID_THRESHOLD) {
const rivalName = (tObj.variant === TrainerVariant.FEMALE) ? "trainerNames:rival_female" : "trainerNames:rival";
const gameOutcomeLabel = addTextObject(8, 5, `${i18next.t("runHistory:defeatedRival", { context: genderStr })} ${i18next.t(rivalName)}`, TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(gameOutcomeLabel);
} else {
const gameOutcomeLabel = addTextObject(8, 5, `${i18next.t("runHistory:defeatedTrainer", { context: genderStr })}${tObj.getName(0, true)}`, TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(gameOutcomeLabel);
}
}
}
// Game Mode + Waves
// Because Endless (Spliced) tends to have the longest name across languages, the line tends to spill into the party icons.
// To fix this, the Spliced icon is used to indicate an Endless Spliced run
const gameModeLabel = addTextObject(8, 19, "", TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
let mode = "";
switch (data.gameMode) {
case GameModes.DAILY:
mode = i18next.t("gameMode:dailyRun");
break;
case GameModes.SPLICED_ENDLESS:
case GameModes.ENDLESS:
mode = i18next.t("gameMode:endless");
break;
case GameModes.CLASSIC:
mode = i18next.t("gameMode:classic");
break;
case GameModes.CHALLENGE:
mode = i18next.t("gameMode:challenge");
break;
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
}
gameModeLabel.appendText(mode, false);
if (data.gameMode === GameModes.SPLICED_ENDLESS) {
const splicedIcon = globalScene.add.image(0, 0, "icon_spliced");
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
splicedIcon.setScale(0.75);
const coords = gameModeLabel.getTopRight();
2024-10-04 13:08:31 +08:00
splicedIcon.setPosition(coords.x + 5, 27);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(splicedIcon);
// 4 spaces of room for the Spliced icon
gameModeLabel.appendText(" - ", false);
} else {
gameModeLabel.appendText(" - ", false);
}
2024-10-04 13:08:31 +08:00
gameModeLabel.appendText(i18next.t("saveSlotSelectUiHandler:wave") + " " + data.waveIndex, false);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(gameModeLabel);
const timestampLabel = addTextObject(8, 33, new Date(data.timestamp).toLocaleString(), TextStyle.WINDOW);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
this.add(timestampLabel);
// pokemonIconsContainer holds the run's party Pokemon icons and levels
// Icons should be level with each other here, but there are significant number of icons that have a center axis / position far from the norm.
// The code here does not account for icon weirdness.
const pokemonIconsContainer = globalScene.add.container(140, 17);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
data.party.forEach((p: PokemonData, i: number) => {
const iconContainer = globalScene.add.container(26 * i, 0);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
iconContainer.setScale(0.75);
const pokemon = p.toPokemon();
const icon = globalScene.addPokemonIcon(pokemon, 0, 0, 0, 0);
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
const text = addTextObject(32, 20, `${i18next.t("saveSlotSelectUiHandler:lv")}${Utils.formatLargeNumber(pokemon.level, 1000)}`, TextStyle.PARTY, { fontSize: "54px", color: "#f8f8f8" });
[QoL][Feature] Hall of Fame + Run History (#3251) * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/zh_CN/menu-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/run-history-ui-handler.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Fixed SaveSessionData issue + Added loss details + removed Modifiers * Final changes * Updated code with the current repo + mode localization * Final touches before moving to a clean branch * Manual merging * Some more merging + updating * Fixed import * TypeDocs issues * Fixed relevant typedoc issues * Manual merge * More fixes * So many commits for so little * Localization Updates * Very barebones implementation of 'favorite' runs - not planning to implement any time soon though * menu-ui-handler.ts localizations * Update src/locales/ko/run-history-ui-handler.ts Thank you! Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * The German name for Squirtle is silly * Fixed Run-Entry Def * Commented out networking functionality * Commenting out network functionality pt2 * Fixed cursor-close out freeze and replaced hall of fame background * Removed console.log * Fixed cursor freeze bug + changed hall of fame background * cursor freeze bug fix pt 2 * Revert "Disable egg gacha in rewards (#3304)" This reverts commit 3a87c8657fa8c65b306a7b7bc883a834002485c2. * Merging menu-ui-handler.ts * Merging phases.ts * Manual merge for game-data.ts * Manual merge locales/en/config.ts * Manual merge of menu-ui-handler.ts * Manual ui.ts merge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew" This reverts commit 5c6fcf6ec485ab0a967fd714d95928b04435a7ea, reversing changes made to 751bf4a43327118b24bc55cba3a5230f96eb6d27. * Revert "Revert "Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into runHistoryNew"" This reverts commit f6c3580ad096b587f9b30f5d0aeb4bc9d630f726. * Added ending art to victorious runs * Added darker overlay instead * Hall of Fame art * Actual BG Images * some bug fixing * some bug fixing p2 * some minor changes * some minor changes * Changed order of runs displayed to newest --> oldest * console.log for debugging * Export/Import Run History function * added import validation * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Felt coder's guilt for bad buttons implementation * strict-null changes * New Localizations * Update src/locales/fr/menu-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Apply suggestions from code review Thank you! Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Apply suggestions from code review run-info-ui-handler comments fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/menu-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Update src/locales/es/run-history-ui-handler.ts Co-authored-by: Asdar <asdargmng@gmail.com> * Lost this file somehow * Added do not delete comments * Apply suggestions from code review Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * flx Changes * Localizations * Fixing Git test issues * Fixed issues found by Starkrieg * removed console log * Fixed cursor bugs * github pages issue * Update src/ui/run-info-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/ui/run-history-ui-handler.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Corrade's comments * The things I do for Github PAges * Preventing menu freeze * Double trainer battles and fresh start challenge * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Update src/locales/ko/menu-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/pt_BR/run-history-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/pt_BR/menu-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Update src/locales/de/menu-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/run-history-ui-handler.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/menu-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/ko/run-history-ui-handler.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> * Apply suggestions from code review Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Localizations + Error Message Update Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * small fixes * flx-sta suggestions + Localizations Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Update src/locales/it/run-history-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Added dynamic text positioning based on container size + small fixes * Thanks Adri1 ! Quick Fix for localizing wave in RunInfo * Transfered defeat parsing to smaller functions and added page modes * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Run History UI handler documentation * Fixed rival names * some comments * Apply suggestions from code review Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br> * Finished documentation * Fixed incorrect rival name handling * Corrected limit-handling * Update src/locales/fr/run-history-ui-handler.ts Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> * Cleaned up getrunhistorydata() per flx-sta's suggestions * Added some override tags? * Added scopes/override notes to classes/class variables/class functions * Moved code from phases.ts to game-over-phase.ts * Fixing game-data whoops * ughhhhh * Update src/ui/run-history-ui-handler.ts Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com> * Fixed cursor and updated money. Note - need to fix money handling for Asian languages * Money appears according to settings * typedocs blah blah * cleaning up manage data options * Final flx fixes + No Run History handling * Translation update. --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: Enoch <enoch.jwsong@gmail.com> 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: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr> Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Asdar <asdargmng@gmail.com> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: protimita <protimitajp@gmail.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Adrián T. <99520451+Vassiat@users.noreply.github.com>
2024-08-23 11:23:16 -07:00
text.setShadow(0, 0, undefined);
text.setStroke("#424242", 14);
text.setOrigin(1, 0);
iconContainer.add(icon);
iconContainer.add(text);
pokemonIconsContainer.add(iconContainer);
pokemon.destroy();
});
this.add(pokemonIconsContainer);
}
}