mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
Simplifying imports of ui files
This commit is contained in:
parent
e4a6a3de82
commit
eb36c5524e
@ -1,4 +1,4 @@
|
|||||||
import type { ScoreboardCategory } from "#ui/containers/daily-run-scoreboard";
|
import type { ScoreboardCategory } from "#ui/daily-run-scoreboard";
|
||||||
|
|
||||||
export interface GetDailyRankingsRequest {
|
export interface GetDailyRankingsRequest {
|
||||||
category: ScoreboardCategory;
|
category: ScoreboardCategory;
|
||||||
|
@ -121,13 +121,13 @@ import { vouchers } from "#system/voucher";
|
|||||||
import { trainerConfigs } from "#trainers/trainer-config";
|
import { trainerConfigs } from "#trainers/trainer-config";
|
||||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||||
import type { Localizable } from "#types/locales";
|
import type { Localizable } from "#types/locales";
|
||||||
import { AbilityBar } from "#ui/containers/ability-bar";
|
import { AbilityBar } from "#ui/ability-bar";
|
||||||
import { ArenaFlyout } from "#ui/containers/arena-flyout";
|
import { ArenaFlyout } from "#ui/arena-flyout";
|
||||||
import { CandyBar } from "#ui/containers/candy-bar";
|
import { CandyBar } from "#ui/candy-bar";
|
||||||
import { CharSprite } from "#ui/containers/char-sprite";
|
import { CharSprite } from "#ui/char-sprite";
|
||||||
import { PartyExpBar } from "#ui/containers/party-exp-bar";
|
import { PartyExpBar } from "#ui/party-exp-bar";
|
||||||
import { PokeballTray } from "#ui/containers/pokeball-tray";
|
import { PokeballTray } from "#ui/pokeball-tray";
|
||||||
import { PokemonInfoContainer } from "#ui/containers/pokemon-info-container";
|
import { PokemonInfoContainer } from "#ui/pokemon-info-container";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
import { UI } from "#ui/ui";
|
import { UI } from "#ui/ui";
|
||||||
import { addUiThemeOverrides } from "#ui/ui-theme";
|
import { addUiThemeOverrides } from "#ui/ui-theme";
|
||||||
|
@ -6,7 +6,7 @@ import { PokemonSpecies } from "#data/pokemon-species";
|
|||||||
import { BiomeId } from "#enums/biome-id";
|
import { BiomeId } from "#enums/biome-id";
|
||||||
import { PartyMemberStrength } from "#enums/party-member-strength";
|
import { PartyMemberStrength } from "#enums/party-member-strength";
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import type { Starter } from "#ui/handlers/starter-select-ui-handler";
|
import type { Starter } from "#ui/starter-select-ui-handler";
|
||||||
import { isNullOrUndefined, randSeedGauss, randSeedInt, randSeedItem } from "#utils/common";
|
import { isNullOrUndefined, randSeedGauss, randSeedInt, randSeedItem } from "#utils/common";
|
||||||
import { getEnumValues } from "#utils/enums";
|
import { getEnumValues } from "#utils/enums";
|
||||||
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
||||||
|
@ -46,8 +46,8 @@ import {
|
|||||||
} from "#mystery-encounters/mystery-encounter-requirements";
|
} from "#mystery-encounters/mystery-encounter-requirements";
|
||||||
import { getRandomPartyMemberFunc, trainerConfigs } from "#trainers/trainer-config";
|
import { getRandomPartyMemberFunc, trainerConfigs } from "#trainers/trainer-config";
|
||||||
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
import { isNullOrUndefined, randSeedInt, randSeedShuffle } from "#utils/common";
|
import { isNullOrUndefined, randSeedInt, randSeedShuffle } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
|||||||
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
||||||
import { trainerConfigs } from "#trainers/trainer-config";
|
import { trainerConfigs } from "#trainers/trainer-config";
|
||||||
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
||||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { randSeedInt, randSeedShuffle } from "#utils/common";
|
import { randSeedInt, randSeedShuffle } from "#utils/common";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -37,7 +37,7 @@ import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encou
|
|||||||
import { MoveRequirement } from "#mystery-encounters/mystery-encounter-requirements";
|
import { MoveRequirement } from "#mystery-encounters/mystery-encounter-requirements";
|
||||||
import { DANCING_MOVES } from "#mystery-encounters/requirement-groups";
|
import { DANCING_MOVES } from "#mystery-encounters/requirement-groups";
|
||||||
import { PokemonData } from "#system/pokemon-data";
|
import { PokemonData } from "#system/pokemon-data";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ import {
|
|||||||
MoneyRequirement,
|
MoneyRequirement,
|
||||||
} from "#mystery-encounters/mystery-encounter-requirements";
|
} from "#mystery-encounters/mystery-encounter-requirements";
|
||||||
import i18next from "#plugins/i18n";
|
import i18next from "#plugins/i18n";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { randSeedItem } from "#utils/common";
|
import { randSeedItem } from "#utils/common";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
import type { MysteryEncounter } from "#mystery-encounters/mystery-encounter";
|
import type { MysteryEncounter } from "#mystery-encounters/mystery-encounter";
|
||||||
import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
||||||
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
/** i18n namespace for the encounter */
|
/** i18n namespace for the encounter */
|
||||||
|
@ -42,7 +42,7 @@ import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encou
|
|||||||
import { PartySizeRequirement } from "#mystery-encounters/mystery-encounter-requirements";
|
import { PartySizeRequirement } from "#mystery-encounters/mystery-encounter-requirements";
|
||||||
import { PokemonData } from "#system/pokemon-data";
|
import { PokemonData } from "#system/pokemon-data";
|
||||||
import { MusicPreference } from "#system/settings";
|
import { MusicPreference } from "#system/settings";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { isNullOrUndefined, NumberHolder, randInt, randSeedInt, randSeedItem, randSeedShuffle } from "#utils/common";
|
import { isNullOrUndefined, NumberHolder, randInt, randSeedInt, randSeedItem, randSeedShuffle } from "#utils/common";
|
||||||
import { getEnumKeys } from "#utils/enums";
|
import { getEnumKeys } from "#utils/enums";
|
||||||
import { getRandomLocaleEntry } from "#utils/i18n";
|
import { getRandomLocaleEntry } from "#utils/i18n";
|
||||||
|
@ -27,7 +27,7 @@ import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
|||||||
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
||||||
import { PokemonData } from "#system/pokemon-data";
|
import { PokemonData } from "#system/pokemon-data";
|
||||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { isNullOrUndefined, randSeedShuffle } from "#utils/common";
|
import { isNullOrUndefined, randSeedShuffle } from "#utils/common";
|
||||||
import { getEnumValues } from "#utils/enums";
|
import { getEnumValues } from "#utils/enums";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -46,9 +46,9 @@ import type { PokemonData } from "#system/pokemon-data";
|
|||||||
import type { TrainerConfig } from "#trainers/trainer-config";
|
import type { TrainerConfig } from "#trainers/trainer-config";
|
||||||
import { trainerConfigs } from "#trainers/trainer-config";
|
import { trainerConfigs } from "#trainers/trainer-config";
|
||||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { PartyOption, PokemonSelectFilter } from "#ui/handlers/party-ui-handler";
|
import type { PartyOption, PokemonSelectFilter } from "#ui/party-ui-handler";
|
||||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { coerceArray, isNullOrUndefined, randomString, randSeedInt, randSeedItem } from "#utils/common";
|
import { coerceArray, isNullOrUndefined, randomString, randSeedInt, randSeedItem } from "#utils/common";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -31,9 +31,9 @@ import {
|
|||||||
showEncounterText,
|
showEncounterText,
|
||||||
} from "#mystery-encounters/encounter-dialogue-utils";
|
} from "#mystery-encounters/encounter-dialogue-utils";
|
||||||
import { achvs } from "#system/achv";
|
import { achvs } from "#system/achv";
|
||||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
import type { PartyOption } from "#ui/party-ui-handler";
|
||||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { BooleanHolder, isNullOrUndefined, randSeedInt } from "#utils/common";
|
import { BooleanHolder, isNullOrUndefined, randSeedInt } from "#utils/common";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
|
@ -147,8 +147,8 @@ import type { StarterDataEntry, StarterMoveset } from "#types/save-data";
|
|||||||
import type { TurnMove } from "#types/turn-move";
|
import type { TurnMove } from "#types/turn-move";
|
||||||
import { BattleInfo } from "#ui/battle-info";
|
import { BattleInfo } from "#ui/battle-info";
|
||||||
import { EnemyBattleInfo } from "#ui/enemy-battle-info";
|
import { EnemyBattleInfo } from "#ui/enemy-battle-info";
|
||||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
import type { PartyOption } from "#ui/party-ui-handler";
|
||||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { PlayerBattleInfo } from "#ui/player-battle-info";
|
import { PlayerBattleInfo } from "#ui/player-battle-info";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import {
|
import {
|
||||||
|
@ -11,7 +11,7 @@ import { initMoves } from "#moves/move";
|
|||||||
import { initMysteryEncounters } from "#mystery-encounters/mystery-encounters";
|
import { initMysteryEncounters } from "#mystery-encounters/mystery-encounters";
|
||||||
import { initAchievements } from "#system/achv";
|
import { initAchievements } from "#system/achv";
|
||||||
import { initVouchers } from "#system/voucher";
|
import { initVouchers } from "#system/voucher";
|
||||||
import { initStatsKeys } from "#ui/handlers/game-stats-ui-handler";
|
import { initStatsKeys } from "#ui/game-stats-ui-handler";
|
||||||
|
|
||||||
/** Initialize the game. */
|
/** Initialize the game. */
|
||||||
export function initializeGame() {
|
export function initializeGame() {
|
||||||
|
196
src/items/reward.ts
Normal file
196
src/items/reward.ts
Normal file
@ -0,0 +1,196 @@
|
|||||||
|
import type { RewardId } from "#enums/reward-id";
|
||||||
|
import type { RarityTier } from "#enums/reward-tier";
|
||||||
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
|
import type { Exact } from "#types/type-helpers";
|
||||||
|
import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/party-ui-handler";
|
||||||
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @module
|
||||||
|
* The term "Reward" refers to items the player can access in the post-battle screen (although
|
||||||
|
* they may be used in other places of the code as well).
|
||||||
|
|
||||||
|
* Examples include (but are not limited to):
|
||||||
|
* - Potions and other healing items
|
||||||
|
* - Held items and trainer items
|
||||||
|
* - Money items such as nugget and ancient relic
|
||||||
|
|
||||||
|
* Rewards have a basic structure with a name, description, and icon. These are used to display
|
||||||
|
* the reward in the reward select screen. All rewards have an .apply() method, which applies the
|
||||||
|
* effect, for example:
|
||||||
|
* - Apply healing to a pokemon
|
||||||
|
* - Assign a held item to a pokemon, or a trainer item to the player
|
||||||
|
* - Add money
|
||||||
|
|
||||||
|
* Some rewards, once clicked, simply have their effect---these are Rewards that add money, pokéball,
|
||||||
|
* vouchers, or global effect such as Sacred Ash.
|
||||||
|
* Most rewards require extra parameters. They are divided into subclasses depending on the parameters
|
||||||
|
* that they need, in particular:
|
||||||
|
* - PokemonReward requires to pass a Pokemon (to apply healing, assign item...)
|
||||||
|
* - PokemonMoveReward requires to pass a Pokemon and a move (for Elixir, or PP Up)
|
||||||
|
* Plus some edge cases for Memory Mushroom and DNA Splicers.
|
||||||
|
|
||||||
|
* The parameters to be passed are generated by the .applyReward() function in {@linkcode SelectRewardPhase}.
|
||||||
|
* This function takes care of opening the party screen and letting the player select a party pokemon,
|
||||||
|
* a move, etc. depending on what is required. Once the parameters are generated, instead of calling
|
||||||
|
* .apply() directly, we call the .applyReward() method in BattleScene, which also plays the sound.
|
||||||
|
* [This method could perhaps be removed].
|
||||||
|
|
||||||
|
* Rewards are assigned RewardId, and there are also RewardCategoryId. For example, TM is a RewardCategoryId,
|
||||||
|
* while CommonTM, RareTM etc are RewardIds. There is _not_ a RewardId for _each_ move. Similarly,
|
||||||
|
* some specific categories of held items are assigned their own RewardId, but they all fall under a single
|
||||||
|
* RewardCategoryId.
|
||||||
|
|
||||||
|
* rewardInitObj plays a similar role to allHeldItems, except instead of containing all possible reward
|
||||||
|
* instances, it instead contains functions that generate those rewards. Here, the keys used are strings
|
||||||
|
* rather than RewardId, the difference exists because here we want to distinguish unique held items
|
||||||
|
* for example. The entries of rewardInitObj are used in the RewardPool.
|
||||||
|
|
||||||
|
* There are some more derived classes, in particular:
|
||||||
|
* RewardGenerator, which creates Reward instances from a certain group (e.g. TMs, nature mints, or berries);
|
||||||
|
* and RewardOption, which is displayed during the select reward phase at the end of each encounter.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Type helper to exactly match objects and nothing else.
|
||||||
|
* @todo merge with `Exact` later on
|
||||||
|
*/
|
||||||
|
export type MatchExact<T> = T extends object ? Exact<T> : T;
|
||||||
|
|
||||||
|
export abstract class Reward {
|
||||||
|
// TODO: If all we care about for categorization is the reward's ID's _category_, why not do it there?
|
||||||
|
public id: RewardId;
|
||||||
|
public localeKey: string;
|
||||||
|
public iconImage: string;
|
||||||
|
public group: string; // TODO: Make a union type of all groups
|
||||||
|
public soundName: string;
|
||||||
|
public tier: RarityTier;
|
||||||
|
|
||||||
|
constructor(localeKey: string | null, iconImage: string | null, group?: string, soundName?: string) {
|
||||||
|
this.localeKey = localeKey!; // TODO: is this bang correct?
|
||||||
|
this.iconImage = iconImage!; // TODO: is this bang correct?
|
||||||
|
this.group = group!; // TODO: is this bang correct?
|
||||||
|
this.soundName = soundName ?? "se/restore";
|
||||||
|
}
|
||||||
|
|
||||||
|
get name(): string {
|
||||||
|
return i18next.t(`${this.localeKey}.name`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: These should be getters
|
||||||
|
get description(): string {
|
||||||
|
return i18next.t(`${this.localeKey}.description`);
|
||||||
|
}
|
||||||
|
|
||||||
|
get iconName(): string {
|
||||||
|
return this.iconImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Should this be abstract?
|
||||||
|
/**
|
||||||
|
* Check whether this reward should be applied.
|
||||||
|
*/
|
||||||
|
// TODO: This is erroring on stuff with `undefined`
|
||||||
|
shouldApply(_params: MatchExact<Parameters<this["apply"]>[0]>): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Apply this Reward's effects. */
|
||||||
|
// TODO: Remove `boolean` return from all superclasses' type signatures
|
||||||
|
abstract apply(_params?: unknown): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A {@linkcode RewardGenerator} represents a dynamic generator for a given type of reward.
|
||||||
|
* These can be customized by lieu of {@linkcode generateReward} to alter the generation result.
|
||||||
|
*/
|
||||||
|
export abstract class RewardGenerator {
|
||||||
|
/**
|
||||||
|
* Dynamically generate a new reward.
|
||||||
|
* @param pregenArgs - An optional argument taken by super classes to customize the reward generated.
|
||||||
|
* @returns The generated reward, or `null` if none are able to be produced
|
||||||
|
*/
|
||||||
|
// TODO: Remove null from signature in favor of adding a condition or similar (reduces bangs needed)
|
||||||
|
abstract generateReward(pregenArgs?: unknown): Reward | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Rewards that are applied to individual Pokemon. */
|
||||||
|
export abstract class PokemonReward extends Reward {
|
||||||
|
public selectFilter: PokemonSelectFilter | undefined;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
localeKey: string,
|
||||||
|
iconImage: string,
|
||||||
|
selectFilter?: PokemonSelectFilter,
|
||||||
|
group?: string,
|
||||||
|
soundName?: string,
|
||||||
|
) {
|
||||||
|
super(localeKey, iconImage, group, soundName);
|
||||||
|
this.selectFilter = selectFilter;
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract override apply(_params: PokemonRewardParams): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export abstract class PokemonMoveReward extends PokemonReward {
|
||||||
|
public moveSelectFilter: PokemonMoveSelectFilter | undefined;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
localeKey: string,
|
||||||
|
iconImage: string,
|
||||||
|
id: RewardId,
|
||||||
|
selectFilter?: PokemonSelectFilter,
|
||||||
|
moveSelectFilter?: PokemonMoveSelectFilter,
|
||||||
|
group?: string,
|
||||||
|
) {
|
||||||
|
super(localeKey, iconImage, selectFilter, group);
|
||||||
|
this.moveSelectFilter = moveSelectFilter;
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
apply(_params: PokemonMoveRewardParams): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PokemonRewardParams {
|
||||||
|
pokemon: PlayerPokemon;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PokemonMoveRewardParams {
|
||||||
|
pokemon: PlayerPokemon;
|
||||||
|
moveIndex: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PokemonMoveRecallRewardParams {
|
||||||
|
pokemon: PlayerPokemon;
|
||||||
|
moveIndex: number;
|
||||||
|
cost?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PokemonFusionRewardParams {
|
||||||
|
pokemon: PlayerPokemon;
|
||||||
|
pokemon2: PlayerPokemon;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class RewardOption {
|
||||||
|
public type: Reward;
|
||||||
|
public upgradeCount: number;
|
||||||
|
public tier: RarityTier;
|
||||||
|
public cost: number;
|
||||||
|
|
||||||
|
constructor(type: Reward, upgradeCount: number, tier: RarityTier, cost = 0) {
|
||||||
|
this.type = type;
|
||||||
|
this.upgradeCount = upgradeCount;
|
||||||
|
this.tier = tier;
|
||||||
|
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class EmptyReward extends Reward {
|
||||||
|
constructor() {
|
||||||
|
super("", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
override apply(): void {}
|
||||||
|
}
|
@ -115,8 +115,8 @@ import {
|
|||||||
import type { PokemonMove } from "#moves/pokemon-move";
|
import type { PokemonMove } from "#moves/pokemon-move";
|
||||||
import { getVoucherTypeIcon, getVoucherTypeName, VoucherType } from "#system/voucher";
|
import { getVoucherTypeIcon, getVoucherTypeName, VoucherType } from "#system/voucher";
|
||||||
import type { ModifierTypeFunc, WeightedModifierTypeWeightFunc } from "#types/modifier-types";
|
import type { ModifierTypeFunc, WeightedModifierTypeWeightFunc } from "#types/modifier-types";
|
||||||
import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/handlers/party-ui-handler";
|
import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/party-ui-handler";
|
||||||
import { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
import { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
import { getModifierTierTextTint } from "#ui/text";
|
import { getModifierTierTextTint } from "#ui/text";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import {
|
import {
|
||||||
|
@ -21,9 +21,9 @@ import type { EnemyPokemon } from "#field/pokemon";
|
|||||||
import { PokemonHeldItemModifier } from "#modifiers/modifier";
|
import { PokemonHeldItemModifier } from "#modifiers/modifier";
|
||||||
import { PokemonPhase } from "#phases/pokemon-phase";
|
import { PokemonPhase } from "#phases/pokemon-phase";
|
||||||
import { achvs } from "#system/achv";
|
import { achvs } from "#system/achv";
|
||||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
import type { PartyOption } from "#ui/party-ui-handler";
|
||||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { BooleanHolder } from "#utils/common";
|
import { BooleanHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -9,9 +9,9 @@ import { doShinySparkleAnim } from "#field/anims";
|
|||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import type { EggLapsePhase } from "#phases/egg-lapse-phase";
|
import type { EggLapsePhase } from "#phases/egg-lapse-phase";
|
||||||
import { achvs } from "#system/achv";
|
import { achvs } from "#system/achv";
|
||||||
import { EggCounterContainer } from "#ui/containers/egg-counter-container";
|
import { EggCounterContainer } from "#ui/egg-counter-container";
|
||||||
import { PokemonInfoContainer } from "#ui/containers/pokemon-info-container";
|
import type { EggHatchSceneUiHandler } from "#ui/egg-hatch-scene-ui-handler";
|
||||||
import type { EggHatchSceneUiHandler } from "#ui/handlers/egg-hatch-scene-ui-handler";
|
import { PokemonInfoContainer } from "#ui/pokemon-info-container";
|
||||||
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
||||||
|
@ -10,7 +10,7 @@ import { LearnMoveSituation } from "#enums/learn-move-situation";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { cos, sin } from "#field/anims";
|
import { cos, sin } from "#field/anims";
|
||||||
import type { PlayerPokemon, Pokemon } from "#field/pokemon";
|
import type { PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||||
import type { EvolutionSceneUiHandler } from "#ui/handlers/evolution-scene-ui-handler";
|
import type { EvolutionSceneUiHandler } from "#ui/evolution-scene-ui-handler";
|
||||||
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
||||||
|
@ -8,7 +8,7 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import type { PlayerPokemon, Pokemon } from "#field/pokemon";
|
import type { PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||||
import { EvolutionPhase } from "#phases/evolution-phase";
|
import { EvolutionPhase } from "#phases/evolution-phase";
|
||||||
import { achvs } from "#system/achv";
|
import { achvs } from "#system/achv";
|
||||||
import type { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
import type { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
import { fixedInt } from "#utils/common";
|
import { fixedInt } from "#utils/common";
|
||||||
|
|
||||||
export class FormChangePhase extends EvolutionPhase {
|
export class FormChangePhase extends EvolutionPhase {
|
||||||
|
@ -10,8 +10,8 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
import type { Move } from "#moves/move";
|
import type { Move } from "#moves/move";
|
||||||
import { PlayerPartyMemberPokemonPhase } from "#phases/player-party-member-pokemon-phase";
|
import { PlayerPartyMemberPokemonPhase } from "#phases/player-party-member-pokemon-phase";
|
||||||
import { EvolutionSceneUiHandler } from "#ui/handlers/evolution-scene-ui-handler";
|
import { EvolutionSceneUiHandler } from "#ui/evolution-scene-ui-handler";
|
||||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class LearnMovePhase extends PlayerPartyMemberPokemonPhase {
|
export class LearnMovePhase extends PlayerPartyMemberPokemonPhase {
|
||||||
|
@ -3,8 +3,8 @@ import { SwitchType } from "#enums/switch-type";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import { BattlePhase } from "#phases/battle-phase";
|
import { BattlePhase } from "#phases/battle-phase";
|
||||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
import type { PartyOption } from "#ui/party-ui-handler";
|
||||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { isNullOrUndefined, toDmgValue } from "#utils/common";
|
import { isNullOrUndefined, toDmgValue } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { ChallengeType } from "#enums/challenge-type";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { MapModifier, MoneyInterestModifier } from "#modifiers/modifier";
|
import { MapModifier, MoneyInterestModifier } from "#modifiers/modifier";
|
||||||
import { BattlePhase } from "#phases/battle-phase";
|
import { BattlePhase } from "#phases/battle-phase";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { BooleanHolder, randSeedInt } from "#utils/common";
|
import { BooleanHolder, randSeedInt } from "#utils/common";
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@ import {
|
|||||||
TmModifierType,
|
TmModifierType,
|
||||||
} from "#modifiers/modifier-type";
|
} from "#modifiers/modifier-type";
|
||||||
import { BattlePhase } from "#phases/battle-phase";
|
import { BattlePhase } from "#phases/battle-phase";
|
||||||
import type { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import type { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import { SHOP_OPTIONS_ROW_LIMIT } from "#ui/handlers/modifier-select-ui-handler";
|
import { SHOP_OPTIONS_ROW_LIMIT } from "#ui/modifier-select-ui-handler";
|
||||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { isNullOrUndefined, NumberHolder } from "#utils/common";
|
import { isNullOrUndefined, NumberHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ import { ChallengeType } from "#enums/challenge-type";
|
|||||||
import type { SpeciesId } from "#enums/species-id";
|
import type { SpeciesId } from "#enums/species-id";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { overrideHeldItems, overrideModifiers } from "#modifiers/modifier";
|
import { overrideHeldItems, overrideModifiers } from "#modifiers/modifier";
|
||||||
import { SaveSlotUiMode } from "#ui/handlers/save-slot-select-ui-handler";
|
import { SaveSlotUiMode } from "#ui/save-slot-select-ui-handler";
|
||||||
import type { Starter } from "#ui/handlers/starter-select-ui-handler";
|
import type { Starter } from "#ui/starter-select-ui-handler";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { isNullOrUndefined } from "#utils/common";
|
import { isNullOrUndefined } from "#utils/common";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
|
@ -3,7 +3,7 @@ import { DynamicPhaseType } from "#enums/dynamic-phase-type";
|
|||||||
import { SwitchType } from "#enums/switch-type";
|
import { SwitchType } from "#enums/switch-type";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { BattlePhase } from "#phases/battle-phase";
|
import { BattlePhase } from "#phases/battle-phase";
|
||||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the party selector UI and transitions into a {@linkcode SwitchSummonPhase}
|
* Opens the party selector UI and transitions into a {@linkcode SwitchSummonPhase}
|
||||||
|
@ -16,8 +16,8 @@ import type { Modifier } from "#modifiers/modifier";
|
|||||||
import { getDailyRunStarterModifiers, regenerateModifierPoolThresholds } from "#modifiers/modifier-type";
|
import { getDailyRunStarterModifiers, regenerateModifierPoolThresholds } from "#modifiers/modifier-type";
|
||||||
import { vouchers } from "#system/voucher";
|
import { vouchers } from "#system/voucher";
|
||||||
import type { SessionSaveData } from "#types/save-data";
|
import type { SessionSaveData } from "#types/save-data";
|
||||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { SaveSlotUiMode } from "#ui/handlers/save-slot-select-ui-handler";
|
import { SaveSlotUiMode } from "#ui/save-slot-select-ui-handler";
|
||||||
import { isLocal, isLocalServerConnected, isNullOrUndefined } from "#utils/common";
|
import { isLocal, isLocalServerConnected, isNullOrUndefined } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ApiBase } from "#api/api-base";
|
import { ApiBase } from "#api/api-base";
|
||||||
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#types/api/pokerogue-daily-api";
|
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#types/api/pokerogue-daily-api";
|
||||||
import type { RankingEntry } from "#ui/containers/daily-run-scoreboard";
|
import type { RankingEntry } from "#ui/daily-run-scoreboard";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A wrapper for daily-run PokéRogue API requests.
|
* A wrapper for daily-run PokéRogue API requests.
|
||||||
|
@ -72,7 +72,7 @@ import type {
|
|||||||
VoucherCounts,
|
VoucherCounts,
|
||||||
VoucherUnlocks,
|
VoucherUnlocks,
|
||||||
} from "#types/save-data";
|
} from "#types/save-data";
|
||||||
import { RUN_HISTORY_LIMIT } from "#ui/handlers/run-history-ui-handler";
|
import { RUN_HISTORY_LIMIT } from "#ui/run-history-ui-handler";
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { executeIf, fixedInt, isLocal, NumberHolder, randInt, randSeedItem } from "#utils/common";
|
import { executeIf, fixedInt, isLocal, NumberHolder, randInt, randSeedItem } from "#utils/common";
|
||||||
import { decrypt, encrypt } from "#utils/data";
|
import { decrypt, encrypt } from "#utils/data";
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import Overrides from "#app/overrides";
|
import Overrides from "#app/overrides";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
import type { UiHandler } from "#ui/handlers/ui-handler";
|
import type { UiHandler } from "#ui/ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export enum Tutorial {
|
export enum Tutorial {
|
||||||
|
@ -3,16 +3,16 @@ import type { InputsController } from "#app/inputs-controller";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { Setting, SettingKeys, settingIndex } from "#system/settings";
|
import { Setting, SettingKeys, settingIndex } from "#system/settings";
|
||||||
import type { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import type { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { PokedexPageUiHandler } from "#ui/handlers/pokedex-page-ui-handler";
|
import { PokedexPageUiHandler } from "#ui/pokedex-page-ui-handler";
|
||||||
import { PokedexUiHandler } from "#ui/handlers/pokedex-ui-handler";
|
import { PokedexUiHandler } from "#ui/pokedex-ui-handler";
|
||||||
import { RunInfoUiHandler } from "#ui/handlers/run-info-ui-handler";
|
import { RunInfoUiHandler } from "#ui/run-info-ui-handler";
|
||||||
import { StarterSelectUiHandler } from "#ui/handlers/starter-select-ui-handler";
|
|
||||||
import { SettingsAudioUiHandler } from "#ui/settings-audio-ui-handler";
|
import { SettingsAudioUiHandler } from "#ui/settings-audio-ui-handler";
|
||||||
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
||||||
import { SettingsGamepadUiHandler } from "#ui/settings-gamepad-ui-handler";
|
import { SettingsGamepadUiHandler } from "#ui/settings-gamepad-ui-handler";
|
||||||
import { SettingsKeyboardUiHandler } from "#ui/settings-keyboard-ui-handler";
|
import { SettingsKeyboardUiHandler } from "#ui/settings-keyboard-ui-handler";
|
||||||
import { SettingsUiHandler } from "#ui/settings-ui-handler";
|
import { SettingsUiHandler } from "#ui/settings-ui-handler";
|
||||||
|
import { StarterSelectUiHandler } from "#ui/starter-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
|
|
||||||
type ActionKeys = Record<Button, () => void>;
|
type ActionKeys = Record<Button, () => void>;
|
||||||
|
@ -3,9 +3,9 @@ import { Stat } from "#enums/stat";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiTheme } from "#enums/ui-theme";
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
import type { EnemyPokemon } from "#field/pokemon";
|
import type { EnemyPokemon } from "#field/pokemon";
|
||||||
|
import { BattleFlyout } from "#ui/battle-flyout";
|
||||||
import type { BattleInfoParamList } from "#ui/battle-info";
|
import type { BattleInfoParamList } from "#ui/battle-info";
|
||||||
import { BattleInfo } from "#ui/battle-info";
|
import { BattleInfo } from "#ui/battle-info";
|
||||||
import { BattleFlyout } from "#ui/containers/battle-flyout";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import { getLocalizedSpriteKey } from "#utils/common";
|
import { getLocalizedSpriteKey } from "#utils/common";
|
||||||
|
@ -15,8 +15,8 @@ import {
|
|||||||
} from "#events/arena";
|
} from "#events/arena";
|
||||||
import type { TurnEndEvent } from "#events/battle-scene";
|
import type { TurnEndEvent } from "#events/battle-scene";
|
||||||
import { BattleSceneEventType } from "#events/battle-scene";
|
import { BattleSceneEventType } from "#events/battle-scene";
|
||||||
import { TimeOfDayWidget } from "#ui/containers/time-of-day-widget";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { TimeOfDayWidget } from "#ui/time-of-day-widget";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import { fixedInt } from "#utils/common";
|
import { fixedInt } from "#utils/common";
|
||||||
import { toCamelCase, toTitleCase } from "#utils/strings";
|
import { toCamelCase, toTitleCase } from "#utils/strings";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -2,7 +2,7 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { EggCountChangedEvent } from "#events/egg";
|
import type { EggCountChangedEvent } from "#events/egg";
|
||||||
import { EggEventType } from "#events/egg";
|
import { EggEventType } from "#events/egg";
|
||||||
import type { EggHatchSceneUiHandler } from "#ui/handlers/egg-hatch-scene-ui-handler";
|
import type { EggHatchSceneUiHandler } from "#ui/egg-hatch-scene-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import type { DropDownColumn } from "#enums/drop-down-column";
|
import type { DropDownColumn } from "#enums/drop-down-column";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiTheme } from "#enums/ui-theme";
|
import type { UiTheme } from "#enums/ui-theme";
|
||||||
import type { DropDown } from "#ui/containers/dropdown";
|
import type { DropDown } from "#ui/dropdown";
|
||||||
import { DropDownType } from "#ui/containers/dropdown";
|
import { DropDownType } from "#ui/dropdown";
|
||||||
import type { StarterContainer } from "#ui/containers/starter-container";
|
import type { StarterContainer } from "#ui/starter-container";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { UiTheme } from "#enums/ui-theme";
|
import type { UiTheme } from "#enums/ui-theme";
|
||||||
import type { StarterContainer } from "#ui/containers/starter-container";
|
import type { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
import type { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
import type { StarterContainer } from "#ui/starter-container";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
import type { UI } from "#ui/ui";
|
import type { UI } from "#ui/ui";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
|
@ -4,8 +4,8 @@ import { Gender } from "#data/gender";
|
|||||||
import type { PokemonSpecies } from "#data/pokemon-species";
|
import type { PokemonSpecies } from "#data/pokemon-species";
|
||||||
import { DexAttr } from "#enums/dex-attr";
|
import { DexAttr } from "#enums/dex-attr";
|
||||||
import { getVariantTint } from "#sprites/variant";
|
import { getVariantTint } from "#sprites/variant";
|
||||||
import type { PokemonIconAnimHelper } from "#ui/utils/pokemon-icon-anim-helper";
|
import type { PokemonIconAnimHelper } from "#ui/pokemon-icon-anim-helper";
|
||||||
import { PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
import { PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A container for a Pokemon's sprite and icons to get displayed in the egg summary screen
|
* A container for a Pokemon's sprite and icons to get displayed in the egg summary screen
|
||||||
|
@ -8,7 +8,7 @@ import type { Pokemon } from "#field/pokemon";
|
|||||||
import { getVariantTint } from "#sprites/variant";
|
import { getVariantTint } from "#sprites/variant";
|
||||||
import type { DexEntry } from "#types/dex-data";
|
import type { DexEntry } from "#types/dex-data";
|
||||||
import type { StarterDataEntry } from "#types/save-data";
|
import type { StarterDataEntry } from "#types/save-data";
|
||||||
import { ConfirmUiHandler } from "#ui/handlers/confirm-ui-handler";
|
import { ConfirmUiHandler } from "#ui/confirm-ui-handler";
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt, getShinyDescriptor } from "#utils/common";
|
import { fixedInt, getShinyDescriptor } from "#utils/common";
|
||||||
|
@ -2,9 +2,9 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { NavigationManager } from "#ui/navigation-menu";
|
import { NavigationManager } from "#ui/navigation-menu";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addBBCodeTextObject, getTextColor, getTextStyleOptions } from "#ui/text";
|
import { addBBCodeTextObject, getTextColor, getTextStyleOptions } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt, rgbHexToRgba } from "#utils/common";
|
import { fixedInt, rgbHexToRgba } from "#utils/common";
|
||||||
import { argbFromRgba } from "@material/material-color-utilities";
|
import { argbFromRgba } from "@material/material-color-utilities";
|
||||||
|
@ -8,8 +8,8 @@ import { achvs, getAchievementDescription } from "#system/achv";
|
|||||||
import type { Voucher } from "#system/voucher";
|
import type { Voucher } from "#system/voucher";
|
||||||
import { getVoucherTypeIcon, getVoucherTypeName, vouchers } from "#system/voucher";
|
import { getVoucherTypeIcon, getVoucherTypeName, vouchers } from "#system/voucher";
|
||||||
import type { AchvUnlocks, VoucherUnlocks } from "#types/save-data";
|
import type { AchvUnlocks, VoucherUnlocks } from "#types/save-data";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -3,9 +3,9 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { getTextColor } from "#ui/text";
|
import { getTextColor } from "#ui/text";
|
||||||
import { toTitleCase } from "#utils/strings";
|
import { toTitleCase } from "#utils/strings";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { AbstractOptionSelectUiHandler } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { AbstractOptionSelectUiHandler } from "#ui/abstract-option-select-ui-handler";
|
||||||
|
|
||||||
export class AutoCompleteUiHandler extends AbstractOptionSelectUiHandler {
|
export class AutoCompleteUiHandler extends AbstractOptionSelectUiHandler {
|
||||||
modalContainer: Phaser.GameObjects.Container;
|
modalContainer: Phaser.GameObjects.Container;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
|
|
||||||
export abstract class AwaitableUiHandler extends UiHandler {
|
export abstract class AwaitableUiHandler extends UiHandler {
|
||||||
protected awaitingActionInput: boolean;
|
protected awaitingActionInput: boolean;
|
||||||
|
@ -5,8 +5,8 @@ import { Command } from "#enums/command";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { CommandPhase } from "#phases/command-phase";
|
import type { CommandPhase } from "#phases/command-phase";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { Button } from "#enums/buttons";
|
|||||||
import { getStatKey, PERMANENT_STATS } from "#enums/stat";
|
import { getStatKey, PERMANENT_STATS } from "#enums/stat";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -5,8 +5,8 @@ import { Challenges } from "#enums/challenges";
|
|||||||
import { Color, ShadowColor } from "#enums/color";
|
import { Color, ShadowColor } from "#enums/color";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { getLocalizedSpriteKey } from "#utils/common";
|
import { getLocalizedSpriteKey } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class ChangePasswordFormUiHandler extends FormModalUiHandler {
|
export class ChangePasswordFormUiHandler extends FormModalUiHandler {
|
||||||
|
@ -9,9 +9,9 @@ import { TextStyle } from "#enums/text-style";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { TerastallizeAccessModifier } from "#modifiers/modifier";
|
import { TerastallizeAccessModifier } from "#modifiers/modifier";
|
||||||
import type { CommandPhase } from "#phases/command-phase";
|
import type { CommandPhase } from "#phases/command-phase";
|
||||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class CommandUiHandler extends UiHandler {
|
export class CommandUiHandler extends UiHandler {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { AbstractOptionSelectUiHandler } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { AbstractOptionSelectUiHandler } from "#ui/abstract-option-select-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class ConfirmUiHandler extends AbstractOptionSelectUiHandler {
|
export class ConfirmUiHandler extends AbstractOptionSelectUiHandler {
|
||||||
|
@ -9,7 +9,7 @@ import { GachaType } from "#enums/gacha-types";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { getVoucherTypeIcon, VoucherType } from "#system/voucher";
|
import { getVoucherTypeIcon, VoucherType } from "#system/voucher";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { addTextObject, getEggTierTextTint, getTextStyleOptions } from "#ui/text";
|
import { addTextObject, getEggTierTextTint, getTextStyleOptions } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt, randSeedShuffle } from "#utils/common";
|
import { fixedInt, randSeedShuffle } from "#utils/common";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
|
|
||||||
export class EggHatchSceneUiHandler extends UiHandler {
|
export class EggHatchSceneUiHandler extends UiHandler {
|
||||||
public eggHatchContainer: Phaser.GameObjects.Container;
|
public eggHatchContainer: Phaser.GameObjects.Container;
|
||||||
|
@ -2,12 +2,12 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
|
import { ScrollableGridHelper } from "#ui/scrollable-grid-helper";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
|
||||||
import { ScrollableGridHelper } from "#ui/utils/scrollable-grid-helper";
|
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class EggListUiHandler extends MessageUiHandler {
|
export class EggListUiHandler extends MessageUiHandler {
|
||||||
|
@ -3,12 +3,12 @@ import { getEggTierForSpecies } from "#data/egg";
|
|||||||
import type { EggHatchData } from "#data/egg-hatch-data";
|
import type { EggHatchData } from "#data/egg-hatch-data";
|
||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { HatchedPokemonContainer } from "#ui/containers/hatched-pokemon-container";
|
import { HatchedPokemonContainer } from "#ui/hatched-pokemon-container";
|
||||||
import { PokemonHatchInfoContainer } from "#ui/containers/pokemon-hatch-info-container";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
import { PokemonHatchInfoContainer } from "#ui/pokemon-hatch-info-container";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { ScrollableGridHelper } from "#ui/utils/scrollable-grid-helper";
|
import { ScrollableGridHelper } from "#ui/scrollable-grid-helper";
|
||||||
|
|
||||||
const iconContainerX = 112;
|
const iconContainerX = 112;
|
||||||
const iconContainerY = 9;
|
const iconContainerY = 9;
|
||||||
|
@ -2,7 +2,7 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
|
||||||
export class EvolutionSceneUiHandler extends MessageUiHandler {
|
export class EvolutionSceneUiHandler extends MessageUiHandler {
|
||||||
|
@ -12,9 +12,9 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import type { EnemyPokemon, Pokemon } from "#field/pokemon";
|
import type { EnemyPokemon, Pokemon } from "#field/pokemon";
|
||||||
import type { PokemonMove } from "#moves/pokemon-move";
|
import type { PokemonMove } from "#moves/pokemon-move";
|
||||||
import type { CommandPhase } from "#phases/command-phase";
|
import type { CommandPhase } from "#phases/command-phase";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { fixedInt, getLocalizedSpriteKey, padInt } from "#utils/common";
|
import { fixedInt, getLocalizedSpriteKey, padInt } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||||
import { addTextInputObject, addTextObject, getTextColor } from "#ui/text";
|
import { addTextInputObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import { fixedInt } from "#utils/common";
|
import { fixedInt } from "#utils/common";
|
||||||
|
@ -7,8 +7,8 @@ import { PlayerGender } from "#enums/player-gender";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiTheme } from "#enums/ui-theme";
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
import type { GameData } from "#system/game-data";
|
import type { GameData } from "#system/game-data";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { formatFancyLargeNumber, getPlayTimeString } from "#utils/common";
|
import { formatFancyLargeNumber, getPlayTimeString } from "#utils/common";
|
||||||
import { toTitleCase } from "#utils/strings";
|
import { toTitleCase } from "#utils/strings";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { languageOptions } from "#system/settings-language";
|
import { languageOptions } from "#system/settings-language";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt } from "#utils/common";
|
import { fixedInt } from "#utils/common";
|
||||||
|
@ -7,10 +7,10 @@ import { Button } from "#enums/buttons";
|
|||||||
import { GameDataType } from "#enums/game-data-type";
|
import { GameDataType } from "#enums/game-data-type";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { BgmBar } from "#ui/containers/bgm-bar";
|
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
import type { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
import { BgmBar } from "#ui/bgm-bar";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import { fixedInt, isLocal, sessionIdKey } from "#utils/common";
|
import { fixedInt, isLocal, sessionIdKey } from "#utils/common";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
import { getFrameMs } from "#utils/common";
|
import { getFrameMs } from "#utils/common";
|
||||||
|
|
||||||
export abstract class MessageUiHandler extends AwaitableUiHandler {
|
export abstract class MessageUiHandler extends AwaitableUiHandler {
|
||||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import type { Button } from "#enums/buttons";
|
import type { Button } from "#enums/buttons";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
|
|
||||||
export interface ModalConfig {
|
export interface ModalConfig {
|
||||||
|
@ -11,8 +11,8 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import { HealShopCostModifier, LockModifierTiersModifier, PokemonHeldItemModifier } from "#modifiers/modifier";
|
import { HealShopCostModifier, LockModifierTiersModifier, PokemonHeldItemModifier } from "#modifiers/modifier";
|
||||||
import type { ModifierTypeOption } from "#modifiers/modifier-type";
|
import type { ModifierTypeOption } from "#modifiers/modifier-type";
|
||||||
import { getPlayerShopModifierTypeOptionsForWave, TmModifierType } from "#modifiers/modifier-type";
|
import { getPlayerShopModifierTypeOptionsForWave, TmModifierType } from "#modifiers/modifier-type";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
import { addTextObject, getModifierTierTextTint, getTextColor, getTextStyleOptions } from "#ui/text";
|
import { addTextObject, getModifierTierTextTint, getTextColor, getTextStyleOptions } from "#ui/text";
|
||||||
import { formatMoney, NumberHolder } from "#utils/common";
|
import { formatMoney, NumberHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -9,9 +9,9 @@ import { getEncounterText } from "#mystery-encounters/encounter-dialogue-utils";
|
|||||||
import type { OptionSelectSettings } from "#mystery-encounters/encounter-phase-utils";
|
import type { OptionSelectSettings } from "#mystery-encounters/encounter-phase-utils";
|
||||||
import type { MysteryEncounterOption } from "#mystery-encounters/mystery-encounter-option";
|
import type { MysteryEncounterOption } from "#mystery-encounters/mystery-encounter-option";
|
||||||
import type { MysteryEncounterPhase } from "#phases/mystery-encounter-phases";
|
import type { MysteryEncounterPhase } from "#phases/mystery-encounter-phases";
|
||||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addBBCodeTextObject, getBBCodeFrag } from "#ui/text";
|
import { addBBCodeTextObject, getBBCodeFrag } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||||
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -21,11 +21,11 @@ import type { PokemonMove } from "#moves/pokemon-move";
|
|||||||
import type { CommandPhase } from "#phases/command-phase";
|
import type { CommandPhase } from "#phases/command-phase";
|
||||||
import { getVariantTint } from "#sprites/variant";
|
import { getVariantTint } from "#sprites/variant";
|
||||||
import type { TurnMove } from "#types/turn-move";
|
import type { TurnMove } from "#types/turn-move";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
|
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
|
||||||
import { applyChallenges } from "#utils/challenge-utils";
|
import { applyChallenges } from "#utils/challenge-utils";
|
||||||
import { BooleanHolder, getLocalizedSpriteKey, randInt } from "#utils/common";
|
import { BooleanHolder, getLocalizedSpriteKey, randInt } from "#utils/common";
|
||||||
import { toCamelCase, toTitleCase } from "#utils/strings";
|
import { toCamelCase, toTitleCase } from "#utils/strings";
|
||||||
|
@ -46,12 +46,12 @@ import { getVariantIcon, getVariantTint } from "#sprites/variant";
|
|||||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||||
import type { DexEntry } from "#types/dex-data";
|
import type { DexEntry } from "#types/dex-data";
|
||||||
import type { StarterAttributes } from "#types/save-data";
|
import type { StarterAttributes } from "#types/save-data";
|
||||||
import { BaseStatsOverlay } from "#ui/containers/base-stats-overlay";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
import { BaseStatsOverlay } from "#ui/base-stats-overlay";
|
||||||
import { PokedexInfoOverlay } from "#ui/containers/pokedex-info-overlay";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { StatsContainer } from "#ui/containers/stats-container";
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { PokedexInfoOverlay } from "#ui/pokedex-info-overlay";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { StatsContainer } from "#ui/stats-container";
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor, getTextStyleOptions } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor, getTextStyleOptions } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { allAbilities, allMoves, allSpecies } from "#data/data-lists";
|
import { allAbilities, allMoves, allSpecies } from "#data/data-lists";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import { FilterTextRow } from "#ui/containers/filter-text";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { FilterTextRow } from "#ui/filter-text";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { isNullOrUndefined } from "#utils/common";
|
import { isNullOrUndefined } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -34,23 +34,16 @@ import { getVariantIcon, getVariantTint } from "#sprites/variant";
|
|||||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||||
import type { DexEntry } from "#types/dex-data";
|
import type { DexEntry } from "#types/dex-data";
|
||||||
import type { DexAttrProps, StarterAttributes } from "#types/save-data";
|
import type { DexAttrProps, StarterAttributes } from "#types/save-data";
|
||||||
import {
|
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||||
DropDown,
|
import { DropDown, DropDownLabel, DropDownOption, DropDownState, DropDownType, SortCriteria } from "#ui/dropdown";
|
||||||
DropDownLabel,
|
import { FilterBar } from "#ui/filter-bar";
|
||||||
DropDownOption,
|
import { FilterText, FilterTextRow } from "#ui/filter-text";
|
||||||
DropDownState,
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
DropDownType,
|
import { PokedexMonContainer } from "#ui/pokedex-mon-container";
|
||||||
SortCriteria,
|
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
} from "#ui/containers/dropdown";
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { FilterBar } from "#ui/containers/filter-bar";
|
|
||||||
import { FilterText, FilterTextRow } from "#ui/containers/filter-text";
|
|
||||||
import { PokedexMonContainer } from "#ui/containers/pokedex-mon-container";
|
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
|
||||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
|
||||||
import { BooleanHolder, fixedInt, getLocalizedSpriteKey, padInt, randIntRange, rgbHexToRgba } from "#utils/common";
|
import { BooleanHolder, fixedInt, getLocalizedSpriteKey, padInt, randIntRange, rgbHexToRgba } from "#utils/common";
|
||||||
import type { StarterPreferences } from "#utils/data";
|
import type { StarterPreferences } from "#utils/data";
|
||||||
import { loadStarterPreferences } from "#utils/data";
|
import { loadStarterPreferences } from "#utils/data";
|
||||||
|
@ -2,9 +2,9 @@ import { pokerogueApi } from "#api/pokerogue-api";
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export class RenameFormUiHandler extends FormModalUiHandler {
|
export class RenameFormUiHandler extends FormModalUiHandler {
|
||||||
|
@ -8,8 +8,8 @@ import { TrainerVariant } from "#enums/trainer-variant";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { PokemonData } from "#system/pokemon-data";
|
import type { PokemonData } from "#system/pokemon-data";
|
||||||
import type { RunEntry } from "#types/save-data";
|
import type { RunEntry } from "#types/save-data";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { RunDisplayMode } from "#ui/handlers/run-info-ui-handler";
|
import { RunDisplayMode } from "#ui/run-info-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt, formatLargeNumber } from "#utils/common";
|
import { fixedInt, formatLargeNumber } from "#utils/common";
|
||||||
|
@ -22,8 +22,8 @@ import { getVariantTint } from "#sprites/variant";
|
|||||||
import type { PokemonData } from "#system/pokemon-data";
|
import type { PokemonData } from "#system/pokemon-data";
|
||||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||||
import type { SessionSaveData } from "#types/save-data";
|
import type { SessionSaveData } from "#types/save-data";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { formatFancyLargeNumber, formatLargeNumber, formatMoney, getPlayTimeString } from "#utils/common";
|
import { formatFancyLargeNumber, formatLargeNumber, formatMoney, getPlayTimeString } from "#utils/common";
|
||||||
import { toCamelCase } from "#utils/strings";
|
import { toCamelCase } from "#utils/strings";
|
||||||
|
@ -8,9 +8,9 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import * as Modifier from "#modifiers/modifier";
|
import * as Modifier from "#modifiers/modifier";
|
||||||
import type { PokemonData } from "#system/pokemon-data";
|
import type { PokemonData } from "#system/pokemon-data";
|
||||||
import type { SessionSaveData } from "#types/save-data";
|
import type { SessionSaveData } from "#types/save-data";
|
||||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { RunDisplayMode } from "#ui/handlers/run-info-ui-handler";
|
import { RunDisplayMode } from "#ui/run-info-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { fixedInt, formatLargeNumber, getPlayTimeString, isNullOrUndefined } from "#utils/common";
|
import { fixedInt, formatLargeNumber, getPlayTimeString, isNullOrUndefined } from "#utils/common";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
|
||||||
export class SessionReloadModalUiHandler extends ModalUiHandler {
|
export class SessionReloadModalUiHandler extends ModalUiHandler {
|
||||||
|
@ -50,24 +50,17 @@ import { RibbonData } from "#system/ribbons/ribbon-data";
|
|||||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||||
import type { DexEntry } from "#types/dex-data";
|
import type { DexEntry } from "#types/dex-data";
|
||||||
import type { DexAttrProps, StarterAttributes, StarterDataEntry, StarterMoveset } from "#types/save-data";
|
import type { DexAttrProps, StarterAttributes, StarterDataEntry, StarterMoveset } from "#types/save-data";
|
||||||
import {
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
DropDown,
|
import { DropDown, DropDownLabel, DropDownOption, DropDownState, DropDownType, SortCriteria } from "#ui/dropdown";
|
||||||
DropDownLabel,
|
import { FilterBar } from "#ui/filter-bar";
|
||||||
DropDownOption,
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
DropDownState,
|
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||||
DropDownType,
|
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-helper";
|
||||||
SortCriteria,
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
} from "#ui/containers/dropdown";
|
import { StarterContainer } from "#ui/starter-container";
|
||||||
import { FilterBar } from "#ui/containers/filter-bar";
|
import { StatsContainer } from "#ui/stats-container";
|
||||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
|
||||||
import { StarterContainer } from "#ui/containers/starter-container";
|
|
||||||
import { StatsContainer } from "#ui/containers/stats-container";
|
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
|
||||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { PokemonIconAnimHelper, PokemonIconAnimMode } from "#ui/utils/pokemon-icon-anim-helper";
|
|
||||||
import { applyChallenges, checkStarterValidForChallenge } from "#utils/challenge-utils";
|
import { applyChallenges, checkStarterValidForChallenge } from "#utils/challenge-utils";
|
||||||
import {
|
import {
|
||||||
BooleanHolder,
|
BooleanHolder,
|
||||||
|
@ -25,8 +25,8 @@ import type { PokemonMove } from "#moves/pokemon-move";
|
|||||||
import type { Variant } from "#sprites/variant";
|
import type { Variant } from "#sprites/variant";
|
||||||
import { getVariantTint } from "#sprites/variant";
|
import { getVariantTint } from "#sprites/variant";
|
||||||
import { achvs } from "#system/achv";
|
import { achvs } from "#system/achv";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { addBBCodeTextObject, addTextObject, getBBCodeFrag, getTextColor } from "#ui/text";
|
import { addBBCodeTextObject, addTextObject, getBBCodeFrag, getTextColor } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import {
|
import {
|
||||||
fixedInt,
|
fixedInt,
|
||||||
formatStat,
|
formatStat,
|
||||||
|
@ -7,7 +7,7 @@ import { UiMode } from "#enums/ui-mode";
|
|||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
import type { ModifierBar } from "#modifiers/modifier";
|
import type { ModifierBar } from "#modifiers/modifier";
|
||||||
import { getMoveTargets } from "#moves/move-utils";
|
import { getMoveTargets } from "#moves/move-utils";
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
||||||
|
|
||||||
export type TargetSelectCallback = (targets: BattlerIndex[]) => void;
|
export type TargetSelectCallback = (targets: BattlerIndex[]) => void;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import type { PlayerPokemon } from "#field/pokemon";
|
import type { PlayerPokemon } from "#field/pokemon";
|
||||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { isNullOrUndefined } from "#utils/common";
|
import { isNullOrUndefined } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ import { updateUserInfo } from "#app/account";
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import { sessionIdKey } from "#utils/common";
|
import { sessionIdKey } from "#utils/common";
|
||||||
import { removeCookie } from "#utils/cookies";
|
import { removeCookie } from "#utils/cookies";
|
||||||
|
@ -5,10 +5,10 @@ import type { Device } from "#enums/devices";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { getIconWithSettingName } from "#inputs/config-handler";
|
import { getIconWithSettingName } from "#inputs/config-handler";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
|
||||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { NavigationManager, NavigationMenu } from "#ui/navigation-menu";
|
import { NavigationManager, NavigationMenu } from "#ui/navigation-menu";
|
||||||
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
|
import { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import { toCamelCase } from "#utils/strings";
|
import { toCamelCase } from "#utils/strings";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -6,9 +6,9 @@ import type { SettingType } from "#system/settings";
|
|||||||
import { Setting, SettingKeys } from "#system/settings";
|
import { Setting, SettingKeys } from "#system/settings";
|
||||||
import type { AnyFn } from "#types/type-helpers";
|
import type { AnyFn } from "#types/type-helpers";
|
||||||
import type { InputsIcons } from "#ui/abstract-control-settings-ui-handler";
|
import type { InputsIcons } from "#ui/abstract-control-settings-ui-handler";
|
||||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
|
||||||
import { NavigationManager, NavigationMenu } from "#ui/navigation-menu";
|
import { NavigationManager, NavigationMenu } from "#ui/navigation-menu";
|
||||||
|
import { ScrollBar } from "#ui/scroll-bar";
|
||||||
import { addTextObject, getTextColor } from "#ui/text";
|
import { addTextObject, getTextColor } from "#ui/text";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
@ -3,7 +3,7 @@ import { Device } from "#enums/devices";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { getIconWithSettingName, getKeyWithKeycode } from "#inputs/config-handler";
|
import { getIconWithSettingName, getKeyWithKeycode } from "#inputs/config-handler";
|
||||||
import { AbstractBindingUiHandler } from "#ui/handlers/abstract-binding-ui-handler";
|
import { AbstractBindingUiHandler } from "#ui/abstract-binding-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { Device } from "#enums/devices";
|
|||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import type { UiMode } from "#enums/ui-mode";
|
import type { UiMode } from "#enums/ui-mode";
|
||||||
import { getKeyWithKeycode } from "#inputs/config-handler";
|
import { getKeyWithKeycode } from "#inputs/config-handler";
|
||||||
import { AbstractBindingUiHandler } from "#ui/handlers/abstract-binding-ui-handler";
|
import { AbstractBindingUiHandler } from "#ui/abstract-binding-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { AbstractOptionSelectUiHandler } from "#ui/handlers/abstract-option-select-ui-handler";
|
import { AbstractOptionSelectUiHandler } from "#ui/abstract-option-select-ui-handler";
|
||||||
|
|
||||||
export class OptionSelectUiHandler extends AbstractOptionSelectUiHandler {
|
export class OptionSelectUiHandler extends AbstractOptionSelectUiHandler {
|
||||||
constructor(mode: UiMode = UiMode.OPTION_SELECT) {
|
constructor(mode: UiMode = UiMode.OPTION_SELECT) {
|
||||||
|
84
src/ui/ui.ts
84
src/ui/ui.ts
@ -4,59 +4,59 @@ import { Device } from "#enums/devices";
|
|||||||
import { PlayerGender } from "#enums/player-gender";
|
import { PlayerGender } from "#enums/player-gender";
|
||||||
import { TextStyle } from "#enums/text-style";
|
import { TextStyle } from "#enums/text-style";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { AchvBar } from "#ui/containers/achv-bar";
|
import { AchvBar } from "#ui/achv-bar";
|
||||||
import type { BgmBar } from "#ui/containers/bgm-bar";
|
import { AchvsUiHandler } from "#ui/achvs-ui-handler";
|
||||||
import { SavingIconContainer } from "#ui/containers/saving-icon-handler";
|
import { AutoCompleteUiHandler } from "#ui/autocomplete-ui-handler";
|
||||||
|
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||||
|
import { BallUiHandler } from "#ui/ball-ui-handler";
|
||||||
|
import { BattleMessageUiHandler } from "#ui/battle-message-ui-handler";
|
||||||
|
import type { BgmBar } from "#ui/bgm-bar";
|
||||||
|
import { GameChallengesUiHandler } from "#ui/challenges-select-ui-handler";
|
||||||
|
import { ChangePasswordFormUiHandler } from "#ui/change-password-form-ui-handler";
|
||||||
|
import { CommandUiHandler } from "#ui/command-ui-handler";
|
||||||
|
import { ConfirmUiHandler } from "#ui/confirm-ui-handler";
|
||||||
|
import { EggGachaUiHandler } from "#ui/egg-gacha-ui-handler";
|
||||||
|
import { EggHatchSceneUiHandler } from "#ui/egg-hatch-scene-ui-handler";
|
||||||
|
import { EggListUiHandler } from "#ui/egg-list-ui-handler";
|
||||||
|
import { EggSummaryUiHandler } from "#ui/egg-summary-ui-handler";
|
||||||
|
import { EvolutionSceneUiHandler } from "#ui/evolution-scene-ui-handler";
|
||||||
|
import { FightUiHandler } from "#ui/fight-ui-handler";
|
||||||
|
import { GameStatsUiHandler } from "#ui/game-stats-ui-handler";
|
||||||
import { GamepadBindingUiHandler } from "#ui/gamepad-binding-ui-handler";
|
import { GamepadBindingUiHandler } from "#ui/gamepad-binding-ui-handler";
|
||||||
import { AchvsUiHandler } from "#ui/handlers/achvs-ui-handler";
|
|
||||||
import { AutoCompleteUiHandler } from "#ui/handlers/autocomplete-ui-handler";
|
|
||||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
|
||||||
import { BallUiHandler } from "#ui/handlers/ball-ui-handler";
|
|
||||||
import { BattleMessageUiHandler } from "#ui/handlers/battle-message-ui-handler";
|
|
||||||
import { GameChallengesUiHandler } from "#ui/handlers/challenges-select-ui-handler";
|
|
||||||
import { ChangePasswordFormUiHandler } from "#ui/handlers/change-password-form-ui-handler";
|
|
||||||
import { CommandUiHandler } from "#ui/handlers/command-ui-handler";
|
|
||||||
import { ConfirmUiHandler } from "#ui/handlers/confirm-ui-handler";
|
|
||||||
import { EggGachaUiHandler } from "#ui/handlers/egg-gacha-ui-handler";
|
|
||||||
import { EggHatchSceneUiHandler } from "#ui/handlers/egg-hatch-scene-ui-handler";
|
|
||||||
import { EggListUiHandler } from "#ui/handlers/egg-list-ui-handler";
|
|
||||||
import { EggSummaryUiHandler } from "#ui/handlers/egg-summary-ui-handler";
|
|
||||||
import { EvolutionSceneUiHandler } from "#ui/handlers/evolution-scene-ui-handler";
|
|
||||||
import { FightUiHandler } from "#ui/handlers/fight-ui-handler";
|
|
||||||
import { GameStatsUiHandler } from "#ui/handlers/game-stats-ui-handler";
|
|
||||||
import { LoadingModalUiHandler } from "#ui/handlers/loading-modal-ui-handler";
|
|
||||||
import { LoginFormUiHandler } from "#ui/handlers/login-form-ui-handler";
|
|
||||||
import { MenuUiHandler } from "#ui/handlers/menu-ui-handler";
|
|
||||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
|
||||||
import { MysteryEncounterUiHandler } from "#ui/handlers/mystery-encounter-ui-handler";
|
|
||||||
import { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
|
||||||
import { PokedexPageUiHandler } from "#ui/handlers/pokedex-page-ui-handler";
|
|
||||||
import { PokedexScanUiHandler } from "#ui/handlers/pokedex-scan-ui-handler";
|
|
||||||
import { PokedexUiHandler } from "#ui/handlers/pokedex-ui-handler";
|
|
||||||
import { RegistrationFormUiHandler } from "#ui/handlers/registration-form-ui-handler";
|
|
||||||
import { RenameFormUiHandler } from "#ui/handlers/rename-form-ui-handler";
|
|
||||||
import { RunHistoryUiHandler } from "#ui/handlers/run-history-ui-handler";
|
|
||||||
import { RunInfoUiHandler } from "#ui/handlers/run-info-ui-handler";
|
|
||||||
import { SaveSlotSelectUiHandler } from "#ui/handlers/save-slot-select-ui-handler";
|
|
||||||
import { SessionReloadModalUiHandler } from "#ui/handlers/session-reload-modal-ui-handler";
|
|
||||||
import { StarterSelectUiHandler } from "#ui/handlers/starter-select-ui-handler";
|
|
||||||
import { SummaryUiHandler } from "#ui/handlers/summary-ui-handler";
|
|
||||||
import { TargetSelectUiHandler } from "#ui/handlers/target-select-ui-handler";
|
|
||||||
import { TestDialogueUiHandler } from "#ui/handlers/test-dialogue-ui-handler";
|
|
||||||
import { TitleUiHandler } from "#ui/handlers/title-ui-handler";
|
|
||||||
import type { UiHandler } from "#ui/handlers/ui-handler";
|
|
||||||
import { UnavailableModalUiHandler } from "#ui/handlers/unavailable-modal-ui-handler";
|
|
||||||
import { KeyboardBindingUiHandler } from "#ui/keyboard-binding-ui-handler";
|
import { KeyboardBindingUiHandler } from "#ui/keyboard-binding-ui-handler";
|
||||||
|
import { LoadingModalUiHandler } from "#ui/loading-modal-ui-handler";
|
||||||
|
import { LoginFormUiHandler } from "#ui/login-form-ui-handler";
|
||||||
|
import { MenuUiHandler } from "#ui/menu-ui-handler";
|
||||||
|
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
|
import { MysteryEncounterUiHandler } from "#ui/mystery-encounter-ui-handler";
|
||||||
import { NavigationManager } from "#ui/navigation-menu";
|
import { NavigationManager } from "#ui/navigation-menu";
|
||||||
import { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
import { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
||||||
|
import { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
|
import { PokedexPageUiHandler } from "#ui/pokedex-page-ui-handler";
|
||||||
|
import { PokedexScanUiHandler } from "#ui/pokedex-scan-ui-handler";
|
||||||
|
import { PokedexUiHandler } from "#ui/pokedex-ui-handler";
|
||||||
|
import { RegistrationFormUiHandler } from "#ui/registration-form-ui-handler";
|
||||||
|
import { RenameFormUiHandler } from "#ui/rename-form-ui-handler";
|
||||||
|
import { RunHistoryUiHandler } from "#ui/run-history-ui-handler";
|
||||||
|
import { RunInfoUiHandler } from "#ui/run-info-ui-handler";
|
||||||
|
import { SaveSlotSelectUiHandler } from "#ui/save-slot-select-ui-handler";
|
||||||
|
import { SavingIconContainer } from "#ui/saving-icon-handler";
|
||||||
|
import { SessionReloadModalUiHandler } from "#ui/session-reload-modal-ui-handler";
|
||||||
import { SettingsAudioUiHandler } from "#ui/settings-audio-ui-handler";
|
import { SettingsAudioUiHandler } from "#ui/settings-audio-ui-handler";
|
||||||
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
||||||
import { SettingsGamepadUiHandler } from "#ui/settings-gamepad-ui-handler";
|
import { SettingsGamepadUiHandler } from "#ui/settings-gamepad-ui-handler";
|
||||||
import { SettingsKeyboardUiHandler } from "#ui/settings-keyboard-ui-handler";
|
import { SettingsKeyboardUiHandler } from "#ui/settings-keyboard-ui-handler";
|
||||||
import { SettingsUiHandler } from "#ui/settings-ui-handler";
|
import { SettingsUiHandler } from "#ui/settings-ui-handler";
|
||||||
|
import { StarterSelectUiHandler } from "#ui/starter-select-ui-handler";
|
||||||
|
import { SummaryUiHandler } from "#ui/summary-ui-handler";
|
||||||
|
import { TargetSelectUiHandler } from "#ui/target-select-ui-handler";
|
||||||
|
import { TestDialogueUiHandler } from "#ui/test-dialogue-ui-handler";
|
||||||
import { addTextObject } from "#ui/text";
|
import { addTextObject } from "#ui/text";
|
||||||
|
import { TitleUiHandler } from "#ui/title-ui-handler";
|
||||||
|
import type { UiHandler } from "#ui/ui-handler";
|
||||||
import { addWindow } from "#ui/ui-theme";
|
import { addWindow } from "#ui/ui-theme";
|
||||||
|
import { UnavailableModalUiHandler } from "#ui/unavailable-modal-ui-handler";
|
||||||
import { executeIf } from "#utils/common";
|
import { executeIf } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { AdminUiHandler } from "./handlers/admin-ui-handler";
|
import { AdminUiHandler } from "./handlers/admin-ui-handler";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Button } from "#enums/buttons";
|
import { Button } from "#enums/buttons";
|
||||||
import type { ScrollBar } from "#ui/containers/scroll-bar";
|
import type { ScrollBar } from "#ui/scroll-bar";
|
||||||
import type { UiHandler } from "#ui/handlers/ui-handler";
|
import type { UiHandler } from "#ui/ui-handler";
|
||||||
|
|
||||||
type UpdateGridCallbackFunction = () => void;
|
type UpdateGridCallbackFunction = () => void;
|
||||||
type UpdateDetailsCallbackFunction = (index: number) => void;
|
type UpdateDetailsCallbackFunction = (index: number) => void;
|
||||||
|
@ -6,7 +6,7 @@ import { MoveId } from "#enums/move-id";
|
|||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import type { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
import type { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
@ -8,7 +8,7 @@ import { SpeciesId } from "#enums/species-id";
|
|||||||
import { StatusEffect } from "#enums/status-effect";
|
import { StatusEffect } from "#enums/status-effect";
|
||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { SpeciesId } from "#enums/species-id";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { ExpBoosterModifier } from "#modifiers/modifier";
|
import { ExpBoosterModifier } from "#modifiers/modifier";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { SpeciesId } from "#enums/species-id";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { MapModifier } from "#modifiers/modifier";
|
import { MapModifier } from "#modifiers/modifier";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
describe("Daily Mode", () => {
|
describe("Daily Mode", () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { initStatsKeys } from "#ui/handlers/game-stats-ui-handler";
|
import { initStatsKeys } from "#ui/game-stats-ui-handler";
|
||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
|
|
||||||
async function importModule() {
|
async function importModule() {
|
||||||
|
@ -10,7 +10,7 @@ import { NewBattlePhase } from "#phases/new-battle-phase";
|
|||||||
import { TurnEndPhase } from "#phases/turn-end-phase";
|
import { TurnEndPhase } from "#phases/turn-end-phase";
|
||||||
import { TurnInitPhase } from "#phases/turn-init-phase";
|
import { TurnInitPhase } from "#phases/turn-init-phase";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import type { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import type { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { SpeciesId } from "#enums/species-id";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { DoubleBattleChanceBoosterModifier } from "#modifiers/modifier";
|
import { DoubleBattleChanceBoosterModifier } from "#modifiers/modifier";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import type { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import type { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import { BATTLE_STATS, Stat } from "#enums/stat";
|
|||||||
import { UiMode } from "#enums/ui-mode";
|
import { UiMode } from "#enums/ui-mode";
|
||||||
import { TempStatStageBoosterModifier } from "#modifiers/modifier";
|
import { TempStatStageBoosterModifier } from "#modifiers/modifier";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import type { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import type { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@ import {
|
|||||||
} from "#phases/mystery-encounter-phases";
|
} from "#phases/mystery-encounter-phases";
|
||||||
import { VictoryPhase } from "#phases/victory-phase";
|
import { VictoryPhase } from "#phases/victory-phase";
|
||||||
import type { GameManager } from "#test/test-utils/game-manager";
|
import type { GameManager } from "#test/test-utils/game-manager";
|
||||||
import type { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
import type { MessageUiHandler } from "#ui/message-ui-handler";
|
||||||
import type { MysteryEncounterUiHandler } from "#ui/handlers/mystery-encounter-ui-handler";
|
import type { MysteryEncounterUiHandler } from "#ui/mystery-encounter-ui-handler";
|
||||||
import type { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
|
||||||
import type { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
import type { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
||||||
|
import type { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
import { isNullOrUndefined } from "#utils/common";
|
import { isNullOrUndefined } from "#utils/common";
|
||||||
import { expect, vi } from "vitest";
|
import { expect, vi } from "vitest";
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ import {
|
|||||||
} from "#test/mystery-encounter/encounter-test-utils";
|
} from "#test/mystery-encounter/encounter-test-utils";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
const namespace = "mysteryEncounters/berriesAbound";
|
const namespace = "mysteryEncounters/berriesAbound";
|
||||||
|
@ -20,7 +20,7 @@ import {
|
|||||||
} from "#test/mystery-encounter/encounter-test-utils";
|
} from "#test/mystery-encounter/encounter-test-utils";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
||||||
import { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
import { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
const namespace = "mysteryEncounters/bugTypeSuperfan";
|
const namespace = "mysteryEncounters/bugTypeSuperfan";
|
||||||
|
@ -29,8 +29,8 @@ import {
|
|||||||
} from "#test/mystery-encounter/encounter-test-utils";
|
} from "#test/mystery-encounter/encounter-test-utils";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
import { initSceneWithoutEncounterPhase } from "#test/test-utils/game-manager-utils";
|
||||||
import type { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
|
||||||
import type { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
import type { OptionSelectUiHandler } from "#ui/option-select-ui-handler";
|
||||||
|
import type { PartyUiHandler } from "#ui/party-ui-handler";
|
||||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user