Compare commits
1 Commits
main
...
hyun/fulls
Author | SHA1 | Date |
---|---|---|
Hyun Ahn | e8c22da4a4 |
|
@ -58,7 +58,8 @@ export enum Button {
|
||||||
QUICK_START,
|
QUICK_START,
|
||||||
AUTO,
|
AUTO,
|
||||||
SPEED_UP,
|
SPEED_UP,
|
||||||
SLOW_DOWN
|
SLOW_DOWN,
|
||||||
|
FULLSCREEN
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PokeballCounts {
|
export interface PokeballCounts {
|
||||||
|
@ -910,6 +911,7 @@ export default class BattleScene extends Phaser.Scene {
|
||||||
this.ui.revertMode();
|
this.ui.revertMode();
|
||||||
this.playSound('select');
|
this.playSound('select');
|
||||||
break;
|
break;
|
||||||
|
case Mode.FULLSCREEN:
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@ import * as Utils from "../utils";
|
||||||
|
|
||||||
export enum MenuOptions {
|
export enum MenuOptions {
|
||||||
SETTINGS,
|
SETTINGS,
|
||||||
ACHIEVEMENTS
|
ACHIEVEMENTS,
|
||||||
|
FULLSCREEN,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class MenuUiHandler extends UiHandler {
|
export default class MenuUiHandler extends UiHandler {
|
||||||
|
@ -73,6 +74,11 @@ export default class MenuUiHandler extends UiHandler {
|
||||||
this.scene.ui.setOverlayMode(Mode.ACHIEVEMENTS);
|
this.scene.ui.setOverlayMode(Mode.ACHIEVEMENTS);
|
||||||
success = true;
|
success = true;
|
||||||
break;
|
break;
|
||||||
|
case MenuOptions.FULLSCREEN:
|
||||||
|
this.scene.scale.startFullscreen();
|
||||||
|
this.scene.ui.setOverlayMode(Mode.FULLSCREEN);
|
||||||
|
success = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else if (button === Button.CANCEL) {
|
} else if (button === Button.CANCEL) {
|
||||||
success = true;
|
success = true;
|
||||||
|
|
|
@ -38,7 +38,8 @@ export enum Mode {
|
||||||
GAME_MODE_SELECT,
|
GAME_MODE_SELECT,
|
||||||
MENU,
|
MENU,
|
||||||
SETTINGS,
|
SETTINGS,
|
||||||
ACHIEVEMENTS
|
ACHIEVEMENTS,
|
||||||
|
FULLSCREEN
|
||||||
};
|
};
|
||||||
|
|
||||||
const transitionModes = [
|
const transitionModes = [
|
||||||
|
@ -53,7 +54,8 @@ const noTransitionModes = [
|
||||||
Mode.OPTION_SELECT,
|
Mode.OPTION_SELECT,
|
||||||
Mode.GAME_MODE_SELECT,
|
Mode.GAME_MODE_SELECT,
|
||||||
Mode.MENU,
|
Mode.MENU,
|
||||||
Mode.SETTINGS
|
Mode.SETTINGS,
|
||||||
|
Mode.FULLSCREEN
|
||||||
];
|
];
|
||||||
|
|
||||||
export default class UI extends Phaser.GameObjects.Container {
|
export default class UI extends Phaser.GameObjects.Container {
|
||||||
|
|
Loading…
Reference in New Issue