create folder for settings in ui folder
parent
2bc5a7665e
commit
d9d455f317
|
@ -33,9 +33,6 @@ import TrainerData from './system/trainer-data';
|
|||
import SoundFade from 'phaser3-rex-plugins/plugins/soundfade';
|
||||
import { pokemonPrevolutions } from './data/pokemon-evolutions';
|
||||
import PokeballTray from './ui/pokeball-tray';
|
||||
import { Setting, settingOptions } from './system/settings';
|
||||
import SettingsUiHandler from './ui/settings-ui-handler';
|
||||
import MessageUiHandler from './ui/message-ui-handler';
|
||||
import { Species } from './data/enums/species';
|
||||
import InvertPostFX from './pipelines/invert';
|
||||
import { Achv, ModifierAchv, MoneyAchv, achvs } from './system/achv';
|
||||
|
|
|
@ -6,7 +6,7 @@ import pad_xbox360 from "./configs/pad_xbox360";
|
|||
import pad_dualshock from "./configs/pad_dualshock";
|
||||
import {Button} from "./enums/buttons";
|
||||
import {Mode} from "./ui/ui";
|
||||
import SettingsGamepadUiHandler from "./ui/settings-gamepad-ui-handler";
|
||||
import SettingsGamepadUiHandler from "./ui/settings/settings-gamepad-ui-handler";
|
||||
import {SettingGamepad} from "./system/settings-gamepad";
|
||||
import {
|
||||
getCurrenlyAssignedIconFromInputIndex, getCurrentlyAssignedIconToSettingName,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import BattleScene from "../battle-scene";
|
||||
import {SettingDefaults, SettingOptions} from "./settings";
|
||||
import SettingsGamepadUiHandler from "../ui/settings-gamepad-ui-handler";
|
||||
import {Mode} from "#app/ui/ui";
|
||||
import SettingsGamepadUiHandler from "../ui/settings/settings-gamepad-ui-handler";
|
||||
import {Mode} from "../ui/ui";
|
||||
import {truncateString} from "../utils";
|
||||
import {Button} from "../enums/buttons";
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ import BattleScene from "../battle-scene";
|
|||
import { hasTouchscreen } from "../touch-controls";
|
||||
import { updateWindowType } from "../ui/ui-theme";
|
||||
import { PlayerGender } from "./game-data";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import SettingsUiHandler from "#app/ui/settings-ui-handler";
|
||||
import { Mode } from "../ui/ui";
|
||||
import SettingsUiHandler from "../ui/settings/settings-ui-handler";
|
||||
|
||||
export enum Setting {
|
||||
Game_Speed = "GAME_SPEED",
|
||||
|
|
|
@ -4,9 +4,9 @@ import {InputsController} from "./inputs-controller";
|
|||
import MessageUiHandler from "./ui/message-ui-handler";
|
||||
import StarterSelectUiHandler from "./ui/starter-select-ui-handler";
|
||||
import {Setting, settingOptions} from "./system/settings";
|
||||
import SettingsUiHandler from "./ui/settings-ui-handler";
|
||||
import SettingsUiHandler from "./ui/settings/settings-ui-handler";
|
||||
import {Button} from "./enums/buttons";
|
||||
import SettingsGamepadUiHandler from "#app/ui/settings-gamepad-ui-handler";
|
||||
import SettingsGamepadUiHandler from "./ui/settings/settings-gamepad-ui-handler";
|
||||
|
||||
export interface ActionKeys {
|
||||
[key in Button]: () => void;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import UiHandler from "./ui-handler";
|
||||
import UiHandler from "../ui-handler";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import {Mode} from "./ui";
|
||||
import {Button} from "../enums/buttons";
|
||||
import {addWindow} from "./ui-theme";
|
||||
import {Mode} from "../ui";
|
||||
import {Button} from "../../enums/buttons";
|
||||
import {addWindow} from "../ui-theme";
|
||||
import {addTextObject, TextStyle} from "#app/ui/text";
|
||||
import Phaser from "phaser";
|
||||
import {SettingGamepad} from "../system/settings-gamepad";
|
||||
import {SettingGamepad} from "../../system/settings-gamepad";
|
||||
|
||||
|
||||
export default class GamepadBindingUiHandler extends UiHandler {
|
|
@ -1,7 +1,7 @@
|
|||
import UiHandler from "#app/ui/ui-handler";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import {Mode} from "#app/ui/ui";
|
||||
import {Button} from "#app/enums/buttons";
|
||||
import UiHandler from "../ui-handler";
|
||||
import BattleScene from "../../battle-scene";
|
||||
import {Mode} from "../ui";
|
||||
import {Button} from "../../enums/buttons";
|
||||
|
||||
|
||||
export default class KeyboardBindingUiHandler extends UiHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import BattleScene from "../battle-scene";
|
||||
import AbstractOptionSelectUiHandler from "./abstact-option-select-ui-handler";
|
||||
import { Mode } from "./ui";
|
||||
import BattleScene from "../../battle-scene";
|
||||
import AbstractOptionSelectUiHandler from "../abstact-option-select-ui-handler";
|
||||
import { Mode } from "../ui";
|
||||
|
||||
export default class OptionSelectUiHandler extends AbstractOptionSelectUiHandler {
|
||||
constructor(scene: BattleScene, mode: Mode = Mode.OPTION_SELECT) {
|
|
@ -1,15 +1,15 @@
|
|||
import BattleScene from "../battle-scene";
|
||||
import {TextStyle, addTextObject} from "./text";
|
||||
import {Mode} from "./ui";
|
||||
import UiHandler from "./ui-handler";
|
||||
import {addWindow} from "./ui-theme";
|
||||
import {Button} from "../enums/buttons";
|
||||
import BattleScene from "../../battle-scene";
|
||||
import {TextStyle, addTextObject} from "../text";
|
||||
import {Mode} from "../ui";
|
||||
import UiHandler from "../ui-handler";
|
||||
import {addWindow} from "../ui-theme";
|
||||
import {Button} from "../../enums/buttons";
|
||||
import {
|
||||
SettingGamepad,
|
||||
settingGamepadDefaults,
|
||||
settingGamepadOptions
|
||||
} from "../system/settings-gamepad";
|
||||
import {truncateString} from "../utils";
|
||||
} from "../../system/settings-gamepad";
|
||||
import {truncateString} from "../../utils";
|
||||
import {
|
||||
getCurrentlyAssignedIconToSettingName,
|
||||
getKeyForSettingName
|
|
@ -1,7 +1,7 @@
|
|||
import UiHandler from "#app/ui/ui-handler";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import {Mode} from "#app/ui/ui";
|
||||
import {Button} from "#app/enums/buttons";
|
||||
import UiHandler from "../ui-handler";
|
||||
import BattleScene from "../../battle-scene";
|
||||
import {Mode} from "../ui";
|
||||
import {Button} from "../../enums/buttons";
|
||||
|
||||
|
||||
export default class SettingsKeyboardUiHandler extends UiHandler {
|
|
@ -1,11 +1,11 @@
|
|||
import BattleScene from "../battle-scene";
|
||||
import { Setting, reloadSettings, settingDefaults, settingOptions } from "../system/settings";
|
||||
import { hasTouchscreen, isMobile } from "../touch-controls";
|
||||
import { TextStyle, addTextObject } from "./text";
|
||||
import { Mode } from "./ui";
|
||||
import UiHandler from "./ui-handler";
|
||||
import { addWindow } from "./ui-theme";
|
||||
import {Button} from "../enums/buttons";
|
||||
import BattleScene from "../../battle-scene";
|
||||
import { Setting, reloadSettings, settingDefaults, settingOptions } from "../../system/settings";
|
||||
import { hasTouchscreen, isMobile } from "../../touch-controls";
|
||||
import { TextStyle, addTextObject } from "../text";
|
||||
import { Mode } from "../ui";
|
||||
import UiHandler from "../ui-handler";
|
||||
import { addWindow } from "../ui-theme";
|
||||
import {Button} from "../../enums/buttons";
|
||||
|
||||
export default class SettingsUiHandler extends UiHandler {
|
||||
private settingsContainer: Phaser.GameObjects.Container;
|
|
@ -1,6 +1,6 @@
|
|||
import BattleScene from "../battle-scene";
|
||||
import { DailyRunScoreboard } from "./daily-run-scoreboard";
|
||||
import OptionSelectUiHandler from "./option-select-ui-handler";
|
||||
import OptionSelectUiHandler from "./settings/option-select-ui-handler";
|
||||
import { Mode } from "./ui";
|
||||
import * as Utils from "../utils";
|
||||
import { TextStyle, addTextObject } from "./text";
|
||||
|
|
12
src/ui/ui.ts
12
src/ui/ui.ts
|
@ -12,13 +12,13 @@ import SummaryUiHandler from './summary-ui-handler';
|
|||
import StarterSelectUiHandler from './starter-select-ui-handler';
|
||||
import EvolutionSceneHandler from './evolution-scene-handler';
|
||||
import TargetSelectUiHandler from './target-select-ui-handler';
|
||||
import SettingsUiHandler from './settings-ui-handler';
|
||||
import SettingsGamepadUiHandler from "./settings-gamepad-ui-handler";
|
||||
import SettingsUiHandler from './settings/settings-ui-handler';
|
||||
import SettingsGamepadUiHandler from "./settings/settings-gamepad-ui-handler";
|
||||
import { TextStyle, addTextObject } from './text';
|
||||
import AchvBar from './achv-bar';
|
||||
import MenuUiHandler from './menu-ui-handler';
|
||||
import AchvsUiHandler from './achvs-ui-handler';
|
||||
import OptionSelectUiHandler from './option-select-ui-handler';
|
||||
import OptionSelectUiHandler from './settings/option-select-ui-handler';
|
||||
import EggHatchSceneHandler from './egg-hatch-scene-handler';
|
||||
import EggListUiHandler from './egg-list-ui-handler';
|
||||
import EggGachaUiHandler from './egg-gacha-ui-handler';
|
||||
|
@ -37,9 +37,9 @@ import UnavailableModalUiHandler from './unavailable-modal-ui-handler';
|
|||
import OutdatedModalUiHandler from './outdated-modal-ui-handler';
|
||||
import SessionReloadModalUiHandler from './session-reload-modal-ui-handler';
|
||||
import {Button} from "../enums/buttons";
|
||||
import GamepadBindingUiHandler from "./gamepad-binding-ui-handler";
|
||||
import SettingsKeyboardUiHandler from "#app/ui/settings-keyboard-ui-handler";
|
||||
import KeyboardBindingUiHandler from "#app/ui/keyboard-binding-ui-handler";
|
||||
import GamepadBindingUiHandler from "./settings/gamepad-binding-ui-handler";
|
||||
import SettingsKeyboardUiHandler from "#app/ui/settings/settings-keyboard-ui-handler";
|
||||
import KeyboardBindingUiHandler from "#app/ui/settings/keyboard-binding-ui-handler";
|
||||
|
||||
export enum Mode {
|
||||
MESSAGE,
|
||||
|
|
Loading…
Reference in New Issue