save for review
parent
79d0862d3f
commit
e8c22da4a4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue