Compare commits

...

1 Commits

Author SHA1 Message Date
Hyun Ahn e8c22da4a4 save for review 2023-11-24 13:35:50 +09:00
3 changed files with 14 additions and 4 deletions

View File

@ -58,7 +58,8 @@ export enum Button {
QUICK_START,
AUTO,
SPEED_UP,
SLOW_DOWN
SLOW_DOWN,
FULLSCREEN
}
export interface PokeballCounts {
@ -910,6 +911,7 @@ export default class BattleScene extends Phaser.Scene {
this.ui.revertMode();
this.playSound('select');
break;
case Mode.FULLSCREEN:
default:
return;
}

View File

@ -6,7 +6,8 @@ import * as Utils from "../utils";
export enum MenuOptions {
SETTINGS,
ACHIEVEMENTS
ACHIEVEMENTS,
FULLSCREEN,
}
export default class MenuUiHandler extends UiHandler {
@ -73,6 +74,11 @@ export default class MenuUiHandler extends UiHandler {
this.scene.ui.setOverlayMode(Mode.ACHIEVEMENTS);
success = true;
break;
case MenuOptions.FULLSCREEN:
this.scene.scale.startFullscreen();
this.scene.ui.setOverlayMode(Mode.FULLSCREEN);
success = true;
break;
}
} else if (button === Button.CANCEL) {
success = true;

View File

@ -38,7 +38,8 @@ export enum Mode {
GAME_MODE_SELECT,
MENU,
SETTINGS,
ACHIEVEMENTS
ACHIEVEMENTS,
FULLSCREEN
};
const transitionModes = [
@ -53,7 +54,8 @@ const noTransitionModes = [
Mode.OPTION_SELECT,
Mode.GAME_MODE_SELECT,
Mode.MENU,
Mode.SETTINGS
Mode.SETTINGS,
Mode.FULLSCREEN
];
export default class UI extends Phaser.GameObjects.Container {