mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Moved some ui files to separate folders
This commit is contained in:
parent
f29bfa31cd
commit
989050a477
@ -1,4 +1,4 @@
|
||||
import type { ScoreboardCategory } from "#ui/daily-run-scoreboard";
|
||||
import type { ScoreboardCategory } from "#ui/containers/daily-run-scoreboard";
|
||||
|
||||
export interface GetDailyRankingsRequest {
|
||||
category: ScoreboardCategory;
|
||||
|
@ -121,13 +121,13 @@ import { vouchers } from "#system/voucher";
|
||||
import { trainerConfigs } from "#trainers/trainer-config";
|
||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||
import type { Localizable } from "#types/locales";
|
||||
import { AbilityBar } from "#ui/ability-bar";
|
||||
import { ArenaFlyout } from "#ui/arena-flyout";
|
||||
import { CandyBar } from "#ui/candy-bar";
|
||||
import { CharSprite } from "#ui/char-sprite";
|
||||
import { PartyExpBar } from "#ui/party-exp-bar";
|
||||
import { PokeballTray } from "#ui/pokeball-tray";
|
||||
import { PokemonInfoContainer } from "#ui/pokemon-info-container";
|
||||
import { AbilityBar } from "#ui/containers/ability-bar";
|
||||
import { ArenaFlyout } from "#ui/containers/arena-flyout";
|
||||
import { CandyBar } from "#ui/containers/candy-bar";
|
||||
import { CharSprite } from "#ui/containers/char-sprite";
|
||||
import { PartyExpBar } from "#ui/containers/party-exp-bar";
|
||||
import { PokeballTray } from "#ui/containers/pokeball-tray";
|
||||
import { PokemonInfoContainer } from "#ui/containers/pokemon-info-container";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import { UI } from "#ui/ui";
|
||||
import { addUiThemeOverrides } from "#ui/ui-theme";
|
||||
|
@ -6,7 +6,7 @@ import { PokemonSpecies } from "#data/pokemon-species";
|
||||
import { BiomeId } from "#enums/biome-id";
|
||||
import { PartyMemberStrength } from "#enums/party-member-strength";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
import type { Starter } from "#ui/starter-select-ui-handler";
|
||||
import type { Starter } from "#ui/handlers/starter-select-ui-handler";
|
||||
import { isNullOrUndefined, randSeedGauss, randSeedInt, randSeedItem } from "#utils/common";
|
||||
import { getEnumValues } from "#utils/enums";
|
||||
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
||||
|
@ -46,8 +46,8 @@ import {
|
||||
} from "#mystery-encounters/mystery-encounter-requirements";
|
||||
import { getRandomPartyMemberFunc, trainerConfigs } from "#trainers/trainer-config";
|
||||
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { isNullOrUndefined, randSeedInt, randSeedShuffle } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
||||
|
@ -45,7 +45,7 @@ import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
||||
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
||||
import { trainerConfigs } from "#trainers/trainer-config";
|
||||
import { TrainerPartyCompoundTemplate, TrainerPartyTemplate } from "#trainers/trainer-party-template";
|
||||
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { randSeedInt, randSeedShuffle } from "#utils/common";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
import i18next from "i18next";
|
||||
|
@ -37,7 +37,7 @@ import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encou
|
||||
import { MoveRequirement } from "#mystery-encounters/mystery-encounter-requirements";
|
||||
import { DANCING_MOVES } from "#mystery-encounters/requirement-groups";
|
||||
import { PokemonData } from "#system/pokemon-data";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
import i18next from "i18next";
|
||||
|
||||
|
@ -33,7 +33,7 @@ import {
|
||||
MoneyRequirement,
|
||||
} from "#mystery-encounters/mystery-encounter-requirements";
|
||||
import i18next from "#plugins/i18n";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { randSeedItem } from "#utils/common";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
|
||||
|
@ -18,7 +18,7 @@ import {
|
||||
import type { MysteryEncounter } from "#mystery-encounters/mystery-encounter";
|
||||
import { MysteryEncounterBuilder } from "#mystery-encounters/mystery-encounter";
|
||||
import { MysteryEncounterOptionBuilder } from "#mystery-encounters/mystery-encounter-option";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
/** 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 { PokemonData } from "#system/pokemon-data";
|
||||
import { MusicPreference } from "#system/settings";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { isNullOrUndefined, NumberHolder, randInt, randSeedInt, randSeedItem, randSeedShuffle } from "#utils/common";
|
||||
import { getEnumKeys } from "#utils/enums";
|
||||
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 { PokemonData } from "#system/pokemon-data";
|
||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { isNullOrUndefined, randSeedShuffle } from "#utils/common";
|
||||
import { getEnumValues } from "#utils/enums";
|
||||
import i18next from "i18next";
|
||||
|
@ -46,9 +46,9 @@ import type { PokemonData } from "#system/pokemon-data";
|
||||
import type { TrainerConfig } from "#trainers/trainer-config";
|
||||
import { trainerConfigs } from "#trainers/trainer-config";
|
||||
import type { HeldModifierConfig } from "#types/held-modifier-config";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { PartyOption, PokemonSelectFilter } from "#ui/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import type { PartyOption, PokemonSelectFilter } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { coerceArray, isNullOrUndefined, randomString, randSeedInt, randSeedItem } from "#utils/common";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
import i18next from "i18next";
|
||||
|
@ -31,9 +31,9 @@ import {
|
||||
showEncounterText,
|
||||
} from "#mystery-encounters/encounter-dialogue-utils";
|
||||
import { achvs } from "#system/achv";
|
||||
import type { PartyOption } from "#ui/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import { BooleanHolder, isNullOrUndefined, randSeedInt } from "#utils/common";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
|
@ -147,8 +147,8 @@ import type { IllusionData } from "#types/illusion-data";
|
||||
import type { TurnMove } from "#types/turn-move";
|
||||
import { BattleInfo } from "#ui/battle-info";
|
||||
import { EnemyBattleInfo } from "#ui/enemy-battle-info";
|
||||
import type { PartyOption } from "#ui/party-ui-handler";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { PlayerBattleInfo } from "#ui/player-battle-info";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import {
|
||||
|
@ -12,7 +12,7 @@ import { initMoves } from "#moves/move";
|
||||
import { initMysteryEncounters } from "#mystery-encounters/mystery-encounters";
|
||||
import { initAchievements } from "#system/achv";
|
||||
import { initVouchers } from "#system/voucher";
|
||||
import { initStatsKeys } from "#ui/game-stats-ui-handler";
|
||||
import { initStatsKeys } from "#ui/handlers/game-stats-ui-handler";
|
||||
|
||||
/** Initialize the game. */
|
||||
export function initializeGame() {
|
||||
|
@ -115,8 +115,8 @@ import {
|
||||
import type { PokemonMove } from "#moves/pokemon-move";
|
||||
import { getVoucherTypeIcon, getVoucherTypeName, VoucherType } from "#system/voucher";
|
||||
import type { ModifierTypeFunc, WeightedModifierTypeWeightFunc } from "#types/modifier-types";
|
||||
import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/party-ui-handler";
|
||||
import { PartyUiHandler } from "#ui/party-ui-handler";
|
||||
import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
||||
import { getModifierTierTextTint } from "#ui/text";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import {
|
||||
|
@ -21,9 +21,9 @@ import type { EnemyPokemon } from "#field/pokemon";
|
||||
import { PokemonHeldItemModifier } from "#modifiers/modifier";
|
||||
import { PokemonPhase } from "#phases/pokemon-phase";
|
||||
import { achvs } from "#system/achv";
|
||||
import type { PartyOption } from "#ui/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import { BooleanHolder } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
@ -9,9 +9,9 @@ import { doShinySparkleAnim } from "#field/anims";
|
||||
import type { PlayerPokemon } from "#field/pokemon";
|
||||
import type { EggLapsePhase } from "#phases/egg-lapse-phase";
|
||||
import { achvs } from "#system/achv";
|
||||
import { EggCounterContainer } from "#ui/egg-counter-container";
|
||||
import type { EggHatchSceneHandler } from "#ui/egg-hatch-scene-handler";
|
||||
import { PokemonInfoContainer } from "#ui/pokemon-info-container";
|
||||
import { EggCounterContainer } from "#ui/containers/egg-counter-container";
|
||||
import { PokemonInfoContainer } from "#ui/containers/pokemon-info-container";
|
||||
import type { EggHatchSceneHandler } from "#ui/handlers/egg-hatch-scene-handler";
|
||||
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
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 { cos, sin } from "#field/anims";
|
||||
import type { PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||
import type { EvolutionSceneHandler } from "#ui/evolution-scene-handler";
|
||||
import type { EvolutionSceneHandler } from "#ui/handlers/evolution-scene-handler";
|
||||
import { fixedInt, getFrameMs, randInt } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
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 { EvolutionPhase } from "#phases/evolution-phase";
|
||||
import { achvs } from "#system/achv";
|
||||
import type { PartyUiHandler } from "#ui/party-ui-handler";
|
||||
import type { PartyUiHandler } from "#ui/handlers/party-ui-handler";
|
||||
import { fixedInt } from "#utils/common";
|
||||
|
||||
export class FormChangePhase extends EvolutionPhase {
|
||||
|
@ -10,8 +10,8 @@ import { UiMode } from "#enums/ui-mode";
|
||||
import type { Pokemon } from "#field/pokemon";
|
||||
import type { Move } from "#moves/move";
|
||||
import { PlayerPartyMemberPokemonPhase } from "#phases/player-party-member-pokemon-phase";
|
||||
import { EvolutionSceneHandler } from "#ui/evolution-scene-handler";
|
||||
import { SummaryUiMode } from "#ui/summary-ui-handler";
|
||||
import { EvolutionSceneHandler } from "#ui/handlers/evolution-scene-handler";
|
||||
import { SummaryUiMode } from "#ui/handlers/summary-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class LearnMovePhase extends PlayerPartyMemberPokemonPhase {
|
||||
|
@ -3,8 +3,8 @@ import { SwitchType } from "#enums/switch-type";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { PlayerPokemon } from "#field/pokemon";
|
||||
import { BattlePhase } from "#phases/battle-phase";
|
||||
import type { PartyOption } from "#ui/party-ui-handler";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||
import type { PartyOption } from "#ui/handlers/party-ui-handler";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { isNullOrUndefined, toDmgValue } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { ChallengeType } from "#enums/challenge-type";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { MapModifier, MoneyInterestModifier } from "#modifiers/modifier";
|
||||
import { BattlePhase } from "#phases/battle-phase";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import { BooleanHolder, randSeedInt } from "#utils/common";
|
||||
|
||||
|
@ -24,9 +24,9 @@ import {
|
||||
TmModifierType,
|
||||
} from "#modifiers/modifier-type";
|
||||
import { BattlePhase } from "#phases/battle-phase";
|
||||
import type { ModifierSelectUiHandler } from "#ui/modifier-select-ui-handler";
|
||||
import { SHOP_OPTIONS_ROW_LIMIT } from "#ui/modifier-select-ui-handler";
|
||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||
import type { ModifierSelectUiHandler } from "#ui/handlers/modifier-select-ui-handler";
|
||||
import { SHOP_OPTIONS_ROW_LIMIT } from "#ui/handlers/modifier-select-ui-handler";
|
||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { isNullOrUndefined, NumberHolder } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
||||
|
@ -7,8 +7,8 @@ import { ChallengeType } from "#enums/challenge-type";
|
||||
import type { SpeciesId } from "#enums/species-id";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { overrideHeldItems, overrideModifiers } from "#modifiers/modifier";
|
||||
import { SaveSlotUiMode } from "#ui/save-slot-select-ui-handler";
|
||||
import type { Starter } from "#ui/starter-select-ui-handler";
|
||||
import { SaveSlotUiMode } from "#ui/handlers/save-slot-select-ui-handler";
|
||||
import type { Starter } from "#ui/handlers/starter-select-ui-handler";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import { isNullOrUndefined } from "#utils/common";
|
||||
import { getPokemonSpecies } from "#utils/pokemon-utils";
|
||||
|
@ -3,7 +3,7 @@ import { DynamicPhaseType } from "#enums/dynamic-phase-type";
|
||||
import { SwitchType } from "#enums/switch-type";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { BattlePhase } from "#phases/battle-phase";
|
||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||
import { PartyOption, PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
|
||||
/**
|
||||
* 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 type { SessionSaveData } from "#system/game-data";
|
||||
import { vouchers } from "#system/voucher";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { SaveSlotUiMode } from "#ui/save-slot-select-ui-handler";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { SaveSlotUiMode } from "#ui/handlers/save-slot-select-ui-handler";
|
||||
import { isLocal, isLocalServerConnected, isNullOrUndefined } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ApiBase } from "#api/api-base";
|
||||
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#types/api/pokerogue-daily-api";
|
||||
import type { RankingEntry } from "#ui/daily-run-scoreboard";
|
||||
import type { RankingEntry } from "#ui/containers/daily-run-scoreboard";
|
||||
|
||||
/**
|
||||
* A wrapper for daily-run PokéRogue API requests.
|
||||
|
@ -62,7 +62,7 @@ import {
|
||||
import { VoucherType, vouchers } from "#system/voucher";
|
||||
import { trainerConfigs } from "#trainers/trainer-config";
|
||||
import type { DexData, DexEntry } from "#types/dex-data";
|
||||
import { RUN_HISTORY_LIMIT } from "#ui/run-history-ui-handler";
|
||||
import { RUN_HISTORY_LIMIT } from "#ui/handlers/run-history-ui-handler";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
||||
import { executeIf, fixedInt, isLocal, NumberHolder, randInt, randSeedItem } from "#utils/common";
|
||||
import { decrypt, encrypt } from "#utils/data";
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import Overrides from "#app/overrides";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||
import type { UiHandler } from "#ui/ui-handler";
|
||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
||||
import type { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export enum Tutorial {
|
||||
|
@ -3,16 +3,16 @@ import type { InputsController } from "#app/inputs-controller";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { Setting, SettingKeys, settingIndex } from "#system/settings";
|
||||
import type { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { PokedexPageUiHandler } from "#ui/pokedex-page-ui-handler";
|
||||
import { PokedexUiHandler } from "#ui/pokedex-ui-handler";
|
||||
import { RunInfoUiHandler } from "#ui/run-info-ui-handler";
|
||||
import { PokedexPageUiHandler } from "#ui/containers/pokedex-page-ui-handler";
|
||||
import type { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { PokedexUiHandler } from "#ui/handlers/pokedex-ui-handler";
|
||||
import { RunInfoUiHandler } from "#ui/handlers/run-info-ui-handler";
|
||||
import { StarterSelectUiHandler } from "#ui/handlers/starter-select-ui-handler";
|
||||
import { SettingsAudioUiHandler } from "#ui/settings-audio-ui-handler";
|
||||
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
||||
import { SettingsGamepadUiHandler } from "#ui/settings-gamepad-ui-handler";
|
||||
import { SettingsKeyboardUiHandler } from "#ui/settings-keyboard-ui-handler";
|
||||
import { SettingsUiHandler } from "#ui/settings-ui-handler";
|
||||
import { StarterSelectUiHandler } from "#ui/starter-select-ui-handler";
|
||||
import Phaser from "phaser";
|
||||
|
||||
type ActionKeys = Record<Button, () => void>;
|
||||
|
@ -3,9 +3,9 @@ import { Stat } from "#enums/stat";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiTheme } from "#enums/ui-theme";
|
||||
import type { EnemyPokemon } from "#field/pokemon";
|
||||
import { BattleFlyout } from "#ui/battle-flyout";
|
||||
import type { BattleInfoParamList } from "#ui/battle-info";
|
||||
import { BattleInfo } from "#ui/battle-info";
|
||||
import { BattleFlyout } from "#ui/containers/battle-flyout";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { getLocalizedSpriteKey } from "#utils/common";
|
||||
|
@ -15,8 +15,8 @@ import {
|
||||
} from "#events/arena";
|
||||
import type { TurnEndEvent } 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 { TimeOfDayWidget } from "#ui/time-of-day-widget";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { fixedInt } from "#utils/common";
|
||||
import { toCamelCase, toTitleCase } from "#utils/strings";
|
@ -1,6 +1,6 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
@ -2,7 +2,7 @@ import { globalScene } from "#app/global-scene";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { EggCountChangedEvent } from "#events/egg";
|
||||
import { EggEventType } from "#events/egg";
|
||||
import type { EggHatchSceneHandler } from "#ui/egg-hatch-scene-handler";
|
||||
import type { EggHatchSceneHandler } from "#ui/handlers/egg-hatch-scene-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
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 { TextStyle } from "#enums/text-style";
|
||||
import type { UiTheme } from "#enums/ui-theme";
|
||||
import type { DropDown } from "#ui/dropdown";
|
||||
import { DropDownType } from "#ui/dropdown";
|
||||
import type { StarterContainer } from "#ui/starter-container";
|
||||
import type { DropDown } from "#ui/containers/dropdown";
|
||||
import { DropDownType } from "#ui/containers/dropdown";
|
||||
import type { StarterContainer } from "#ui/containers/starter-container";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { UiTheme } from "#enums/ui-theme";
|
||||
import type { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||
import type { StarterContainer } from "#ui/starter-container";
|
||||
import type { StarterContainer } from "#ui/containers/starter-container";
|
||||
import type { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import type { UI } from "#ui/ui";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
@ -4,8 +4,8 @@ import { Gender } from "#data/gender";
|
||||
import type { PokemonSpecies } from "#data/pokemon-species";
|
||||
import { DexAttr } from "#enums/dex-attr";
|
||||
import { getVariantTint } from "#sprites/variant";
|
||||
import type { PokemonIconAnimHandler } from "#ui/pokemon-icon-anim-handler";
|
||||
import { PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import type { PokemonIconAnimHandler } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
|
||||
/**
|
||||
* A container for a Pokemon's sprite and icons to get displayed in the egg summary screen
|
@ -46,12 +46,12 @@ import { getVariantIcon, getVariantTint } from "#sprites/variant";
|
||||
import type { StarterAttributes } from "#system/game-data";
|
||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||
import type { DexEntry } from "#types/dex-data";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { BaseStatsOverlay } from "#ui/base-stats-overlay";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { PokedexInfoOverlay } from "#ui/pokedex-info-overlay";
|
||||
import { StatsContainer } from "#ui/stats-container";
|
||||
import { BaseStatsOverlay } from "#ui/containers/base-stats-overlay";
|
||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
||||
import { PokedexInfoOverlay } from "#ui/containers/pokedex-info-overlay";
|
||||
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, getTextStyleOptions } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
@ -9,7 +9,7 @@ import { PokemonType } from "#enums/pokemon-type";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { PlayerPokemon } from "#field/pokemon";
|
||||
import { PokemonInfoContainer } from "#ui/pokemon-info-container";
|
||||
import { PokemonInfoContainer } from "#ui/containers/pokemon-info-container";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { padInt, rgbHexToRgba } from "#utils/common";
|
||||
import { getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
@ -8,8 +8,8 @@ import type { Pokemon } from "#field/pokemon";
|
||||
import { getVariantTint } from "#sprites/variant";
|
||||
import type { StarterDataEntry } from "#system/game-data";
|
||||
import type { DexEntry } from "#types/dex-data";
|
||||
import { ConfirmUiHandler } from "#ui/confirm-ui-handler";
|
||||
import { StatsContainer } from "#ui/stats-container";
|
||||
import { StatsContainer } from "#ui/containers/stats-container";
|
||||
import { ConfirmUiHandler } from "#ui/handlers/confirm-ui-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt, getShinyDescriptor } from "#utils/common";
|
@ -2,9 +2,9 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { NavigationManager } from "#ui/navigation-menu";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addBBCodeTextObject, getTextColor, getTextStyleOptions } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt, rgbHexToRgba } from "#utils/common";
|
||||
import { argbFromRgba } from "@material/material-color-utilities";
|
@ -8,8 +8,8 @@ import { achvs, getAchievementDescription } from "#system/achv";
|
||||
import type { AchvUnlocks, VoucherUnlocks } from "#system/game-data";
|
||||
import type { Voucher } from "#system/voucher";
|
||||
import { getVoucherTypeIcon, getVoucherTypeName, vouchers } from "#system/voucher";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
@ -3,11 +3,11 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { getTextColor } from "#ui/text";
|
||||
import { toTitleCase } from "#utils/strings";
|
||||
import { getTextColor } from "./text";
|
||||
|
||||
type AdminUiHandlerService = "discord" | "google";
|
||||
type AdminUiHandlerServiceMode = "Link" | "Unlink";
|
@ -1,6 +1,6 @@
|
||||
import { Button } from "#enums/buttons";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { AbstractOptionSelectUiHandler } from "#ui/abstract-option-select-ui-handler";
|
||||
import { AbstractOptionSelectUiHandler } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
|
||||
export class AutoCompleteUiHandler extends AbstractOptionSelectUiHandler {
|
||||
modalContainer: Phaser.GameObjects.Container;
|
@ -1,7 +1,7 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
|
||||
export abstract class AwaitableUiHandler extends UiHandler {
|
||||
protected awaitingActionInput: boolean;
|
@ -5,8 +5,8 @@ import { Command } from "#enums/command";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { CommandPhase } from "#phases/command-phase";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
||||
|
@ -3,7 +3,7 @@ import { Button } from "#enums/buttons";
|
||||
import { getStatKey, PERMANENT_STATS } from "#enums/stat";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
@ -5,8 +5,8 @@ import { Challenges } from "#enums/challenges";
|
||||
import { Color, ShadowColor } from "#enums/color";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { getLocalizedSpriteKey } from "#utils/common";
|
||||
import i18next from "i18next";
|
@ -1,9 +1,9 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class ChangePasswordFormUiHandler extends FormModalUiHandler {
|
@ -9,9 +9,9 @@ import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { TerastallizeAccessModifier } from "#modifiers/modifier";
|
||||
import type { CommandPhase } from "#phases/command-phase";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/party-ui-handler";
|
||||
import { PartyUiHandler, PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class CommandUiHandler extends UiHandler {
|
@ -1,8 +1,8 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||
import { AbstractOptionSelectUiHandler } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { AbstractOptionSelectUiHandler } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class ConfirmUiHandler extends AbstractOptionSelectUiHandler {
|
@ -9,7 +9,7 @@ import { GachaType } from "#enums/gacha-types";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { getVoucherTypeIcon, VoucherType } from "#system/voucher";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { addTextObject, getEggTierTextTint, getTextStyleOptions } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt, randSeedShuffle } from "#utils/common";
|
@ -1,7 +1,7 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
|
||||
export class EggHatchSceneHandler extends UiHandler {
|
||||
public eggHatchContainer: Phaser.GameObjects.Container;
|
@ -2,10 +2,10 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import { ScrollableGridUiHandler } from "#ui/scrollable-grid-handler";
|
||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { ScrollableGridUiHandler } from "#ui/handlers/scrollable-grid-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import i18next from "i18next";
|
@ -3,12 +3,12 @@ import { getEggTierForSpecies } from "#data/egg";
|
||||
import type { EggHatchData } from "#data/egg-hatch-data";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { HatchedPokemonContainer } from "#ui/hatched-pokemon-container";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { PokemonHatchInfoContainer } from "#ui/pokemon-hatch-info-container";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import { ScrollableGridUiHandler } from "#ui/scrollable-grid-handler";
|
||||
import { HatchedPokemonContainer } from "#ui/containers/hatched-pokemon-container";
|
||||
import { PokemonHatchInfoContainer } from "#ui/containers/pokemon-hatch-info-container";
|
||||
import { ScrollBar } from "#ui/containers/scroll-bar";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { ScrollableGridUiHandler } from "#ui/handlers/scrollable-grid-handler";
|
||||
|
||||
const iconContainerX = 112;
|
||||
const iconContainerY = 9;
|
@ -2,7 +2,7 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
|
||||
export class EvolutionSceneHandler extends MessageUiHandler {
|
@ -12,9 +12,9 @@ import { UiMode } from "#enums/ui-mode";
|
||||
import type { EnemyPokemon, Pokemon } from "#field/pokemon";
|
||||
import type { PokemonMove } from "#moves/pokemon-move";
|
||||
import type { CommandPhase } from "#phases/command-phase";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { fixedInt, getLocalizedSpriteKey, padInt } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
||||
import { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
||||
import { addTextInputObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { fixedInt } from "#utils/common";
|
@ -7,8 +7,8 @@ import { PlayerGender } from "#enums/player-gender";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiTheme } from "#enums/ui-theme";
|
||||
import type { GameData } from "#system/game-data";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { formatFancyLargeNumber, getPlayTimeString } from "#utils/common";
|
||||
import { toTitleCase } from "#utils/strings";
|
@ -1,6 +1,6 @@
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import i18next from "i18next";
|
||||
|
@ -2,10 +2,10 @@ import { pokerogueApi } from "#api/pokerogue-api";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt } from "#utils/common";
|
@ -7,11 +7,10 @@ import { Button } from "#enums/buttons";
|
||||
import { GameDataType } from "#enums/game-data-type";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { AdminMode, getAdminModeName } from "#ui/admin-ui-handler";
|
||||
import type { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||
import { BgmBar } from "#ui/bgm-bar";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { BgmBar } from "#ui/containers/bgm-bar";
|
||||
import type { OptionSelectConfig, OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import type { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { addTextObject, getTextStyleOptions } from "#ui/text";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { fixedInt, isLocal, sessionIdKey } from "#utils/common";
|
||||
@ -20,6 +19,7 @@ import { getEnumValues } from "#utils/enums";
|
||||
import { toCamelCase } from "#utils/strings";
|
||||
import { isBeta } from "#utils/utility-vars";
|
||||
import i18next from "i18next";
|
||||
import { AdminMode, getAdminModeName } from "./admin-ui-handler";
|
||||
|
||||
enum MenuOptions {
|
||||
GAME_SETTINGS,
|
@ -1,6 +1,6 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
||||
import { getFrameMs } from "#utils/common";
|
||||
|
||||
export abstract class MessageUiHandler extends AwaitableUiHandler {
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
||||
import type { Button } from "#enums/buttons";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
|
||||
export interface ModalConfig {
|
@ -11,8 +11,8 @@ import { UiMode } from "#enums/ui-mode";
|
||||
import { HealShopCostModifier, LockModifierTiersModifier, PokemonHeldItemModifier } from "#modifiers/modifier";
|
||||
import type { ModifierTypeOption } from "#modifiers/modifier-type";
|
||||
import { getPlayerShopModifierTypeOptionsForWave, TmModifierType } from "#modifiers/modifier-type";
|
||||
import { AwaitableUiHandler } from "#ui/awaitable-ui-handler";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
||||
import { AwaitableUiHandler } from "#ui/handlers/awaitable-ui-handler";
|
||||
import { addTextObject, getModifierTierTextTint, getTextColor, getTextStyleOptions } from "#ui/text";
|
||||
import { formatMoney, NumberHolder } from "#utils/common";
|
||||
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 { MysteryEncounterOption } from "#mystery-encounters/mystery-encounter-option";
|
||||
import type { MysteryEncounterPhase } from "#phases/mystery-encounter-phases";
|
||||
import { PartyUiMode } from "#ui/party-ui-handler";
|
||||
import { PartyUiMode } from "#ui/handlers/party-ui-handler";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addBBCodeTextObject, getBBCodeFrag } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
||||
import i18next from "i18next";
|
@ -21,9 +21,9 @@ import type { PokemonMove } from "#moves/pokemon-move";
|
||||
import type { CommandPhase } from "#phases/command-phase";
|
||||
import { getVariantTint } from "#sprites/variant";
|
||||
import type { TurnMove } from "#types/turn-move";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import { MoveInfoOverlay } from "#ui/containers/move-info-overlay";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { applyChallenges } from "#utils/challenge-utils";
|
@ -1,11 +1,11 @@
|
||||
import { allAbilities, allMoves, allSpecies } from "#data/data-lists";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { PlayerPokemon } from "#field/pokemon";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { FilterTextRow } from "#ui/filter-text";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import { FilterTextRow } from "#ui/containers/filter-text";
|
||||
import type { OptionSelectItem } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { isNullOrUndefined } from "#utils/common";
|
||||
import i18next from "i18next";
|
||||
|
@ -34,14 +34,21 @@ import { getVariantIcon, getVariantTint } from "#sprites/variant";
|
||||
import type { DexAttrProps, StarterAttributes } from "#system/game-data";
|
||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||
import type { DexEntry } from "#types/dex-data";
|
||||
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||
import { DropDown, DropDownLabel, DropDownOption, DropDownState, DropDownType, SortCriteria } from "#ui/dropdown";
|
||||
import { FilterBar } from "#ui/filter-bar";
|
||||
import { FilterText, FilterTextRow } from "#ui/filter-text";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { PokedexMonContainer } from "#ui/pokedex-mon-container";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import {
|
||||
DropDown,
|
||||
DropDownLabel,
|
||||
DropDownOption,
|
||||
DropDownState,
|
||||
DropDownType,
|
||||
SortCriteria,
|
||||
} from "#ui/containers/dropdown";
|
||||
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 { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { BooleanHolder, fixedInt, getLocalizedSpriteKey, padInt, randIntRange, rgbHexToRgba } from "#utils/common";
|
@ -2,9 +2,9 @@ import { pokerogueApi } from "#api/pokerogue-api";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import i18next from "i18next";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { PlayerPokemon } from "#field/pokemon";
|
||||
import type { InputFieldConfig } from "#ui/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import type { InputFieldConfig } from "#ui/handlers/form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "#ui/handlers/form-modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class RenameFormUiHandler extends FormModalUiHandler {
|
@ -1,6 +1,5 @@
|
||||
import i18next from "i18next";
|
||||
import type { InputFieldConfig } from "./form-modal-ui-handler";
|
||||
import { FormModalUiHandler } from "./form-modal-ui-handler";
|
||||
import { FormModalUiHandler, type InputFieldConfig } from "./form-modal-ui-handler";
|
||||
import type { ModalConfig } from "./modal-ui-handler";
|
||||
|
||||
export class RenameRunFormUiHandler extends FormModalUiHandler {
|
@ -8,8 +8,8 @@ import { TrainerVariant } from "#enums/trainer-variant";
|
||||
import { UiMode } from "#enums/ui-mode";
|
||||
import type { RunEntry } from "#system/game-data";
|
||||
import type { PokemonData } from "#system/pokemon-data";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { RunDisplayMode } from "#ui/run-info-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { RunDisplayMode } from "#ui/handlers/run-info-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt, formatLargeNumber } from "#utils/common";
|
@ -22,8 +22,8 @@ import { getVariantTint } from "#sprites/variant";
|
||||
import type { SessionSaveData } from "#system/game-data";
|
||||
import type { PokemonData } from "#system/pokemon-data";
|
||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { formatFancyLargeNumber, formatLargeNumber, formatMoney, getPlayTimeString } from "#utils/common";
|
||||
import { toCamelCase } from "#utils/strings";
|
@ -8,9 +8,9 @@ import { UiMode } from "#enums/ui-mode";
|
||||
import * as Modifier from "#modifiers/modifier";
|
||||
import type { SessionSaveData } from "#system/game-data";
|
||||
import type { PokemonData } from "#system/pokemon-data";
|
||||
import type { OptionSelectConfig } from "#ui/abstract-option-select-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { RunDisplayMode } from "#ui/run-info-ui-handler";
|
||||
import type { OptionSelectConfig } from "#ui/handlers/abstract-option-select-ui-handler";
|
||||
import { MessageUiHandler } from "#ui/handlers/message-ui-handler";
|
||||
import { RunDisplayMode } from "#ui/handlers/run-info-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { fixedInt, formatLargeNumber, getPlayTimeString, isNullOrUndefined } from "#utils/common";
|
@ -1,6 +1,6 @@
|
||||
import { Button } from "#enums/buttons";
|
||||
import type { ScrollBar } from "#ui/scroll-bar";
|
||||
import type { UiHandler } from "#ui/ui-handler";
|
||||
import type { ScrollBar } from "#ui/containers/scroll-bar";
|
||||
import type { UiHandler } from "#ui/handlers/ui-handler";
|
||||
|
||||
type UpdateGridCallbackFunction = () => void;
|
||||
type UpdateDetailsCallbackFunction = (index: number) => void;
|
@ -1,7 +1,7 @@
|
||||
import { TextStyle } from "#enums/text-style";
|
||||
import type { UiMode } from "#enums/ui-mode";
|
||||
import type { ModalConfig } from "#ui/modal-ui-handler";
|
||||
import { ModalUiHandler } from "#ui/modal-ui-handler";
|
||||
import type { ModalConfig } from "#ui/handlers/modal-ui-handler";
|
||||
import { ModalUiHandler } from "#ui/handlers/modal-ui-handler";
|
||||
import { addTextObject } from "#ui/text";
|
||||
|
||||
export class SessionReloadModalUiHandler extends ModalUiHandler {
|
@ -50,15 +50,22 @@ import type { DexAttrProps, StarterAttributes, StarterDataEntry, StarterMoveset
|
||||
import { RibbonData } from "#system/ribbons/ribbon-data";
|
||||
import { SettingKeyboard } from "#system/settings-keyboard";
|
||||
import type { DexEntry } from "#types/dex-data";
|
||||
import type { OptionSelectItem } from "#ui/abstract-option-select-ui-handler";
|
||||
import { DropDown, DropDownLabel, DropDownOption, DropDownState, DropDownType, SortCriteria } from "#ui/dropdown";
|
||||
import { FilterBar } from "#ui/filter-bar";
|
||||
import { MessageUiHandler } from "#ui/message-ui-handler";
|
||||
import { MoveInfoOverlay } from "#ui/move-info-overlay";
|
||||
import { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/pokemon-icon-anim-handler";
|
||||
import { ScrollBar } from "#ui/scroll-bar";
|
||||
import { StarterContainer } from "#ui/starter-container";
|
||||
import { StatsContainer } from "#ui/stats-container";
|
||||
import {
|
||||
DropDown,
|
||||
DropDownLabel,
|
||||
DropDownOption,
|
||||
DropDownState,
|
||||
DropDownType,
|
||||
SortCriteria,
|
||||
} from "#ui/containers/dropdown";
|
||||
import { FilterBar } from "#ui/containers/filter-bar";
|
||||
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 { PokemonIconAnimHandler, PokemonIconAnimMode } from "#ui/handlers/pokemon-icon-anim-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getTextColor } from "#ui/text";
|
||||
import { addWindow } from "#ui/ui-theme";
|
||||
import { applyChallenges, checkStarterValidForChallenge } from "#utils/challenge-utils";
|
@ -25,8 +25,8 @@ import type { PokemonMove } from "#moves/pokemon-move";
|
||||
import type { Variant } from "#sprites/variant";
|
||||
import { getVariantTint } from "#sprites/variant";
|
||||
import { achvs } from "#system/achv";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { addBBCodeTextObject, addTextObject, getBBCodeFrag, getTextColor } from "#ui/text";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import {
|
||||
fixedInt,
|
||||
formatStat,
|
@ -7,7 +7,7 @@ import { UiMode } from "#enums/ui-mode";
|
||||
import type { Pokemon } from "#field/pokemon";
|
||||
import type { ModifierBar } from "#modifiers/modifier";
|
||||
import { getMoveTargets } from "#moves/move-utils";
|
||||
import { UiHandler } from "#ui/ui-handler";
|
||||
import { UiHandler } from "#ui/handlers/ui-handler";
|
||||
import { fixedInt, isNullOrUndefined } from "#utils/common";
|
||||
|
||||
export type TargetSelectCallback = (targets: BattlerIndex[]) => void;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user