Save zoom level of the game and restore it when quitting the login scenes

SelectCompanionScene with zoom on mobile
This commit is contained in:
GRL 2021-06-02 16:08:31 +02:00
parent 6fd119c199
commit 3d9e2ad49a
6 changed files with 40 additions and 14 deletions

View file

@ -1,9 +1,12 @@
import { SelectCharacterScene } from "./SelectCharacterScene";
import {waScaleManager} from "../Services/WaScaleManager";
export class SelectCharacterMobileScene extends SelectCharacterScene {
create(){
super.create();
waScaleManager.zoomModifier = 2;
this.onResize();
this.selectedRectangle.destroy();
}