@@ -3,36 +3,6 @@ import { Monogatari } from './../../monogatari';
33
44class GameScreen extends ScreenComponent {
55
6-
7- // static resize (proportionWidth, proportionHeight) {
8- // const mainElement = $_(Monogatari.selector).get (0);
9-
10- // const mainWidth = mainElement.offsetWidth;
11- // const mainHeight = mainElement.offsetHeight;
12-
13- // const h = Math.floor (mainWidth * (proportionHeight/proportionWidth));
14- // let widthCss = '100%';
15- // let heightCss = '100%';
16- // let marginTopCss = 0;
17-
18- // if (h <= mainHeight) {
19- // const marginTop = Math.floor ((mainHeight - h)/2);
20- // marginTopCss = marginTop + 'px';
21- // heightCss = h + 'px';
22-
23- // }
24- // else {
25- // const w = Math.floor (mainHeight * (proportionWidth/proportionHeight));
26- // widthCss = w + 'px';
27- // }
28-
29- // $_('.forceAspectRatio').style ({
30- // width: widthCss,
31- // height: heightCss,
32- // marginTop: marginTopCss
33- // });
34- // }
35-
366 static bind ( selector ) {
377 this . engine . on ( 'click' , '[data-screen="game"] *:not([data-choice])' , function ( ) {
388 Monogatari . debug . debug ( 'Next Statement Listener' ) ;
@@ -44,18 +14,6 @@ class GameScreen extends ScreenComponent {
4414 } ) ;
4515 } ) ;
4616
47- // const forceAspectRatio = Monogatari.setting ('ForceAspectRatio');
48-
49- // if (forceAspectRatio) {
50- // const [w, h] = Monogatari.setting ('AspectRatio').split (':');
51- // const proportionWidth = parseInt(w);
52- // const proportionHeight = parseInt(h);
53-
54- // $_('[data-content="visuals"]').addClass('forceAspectRatio');
55- // GameScreen.resize(proportionWidth, proportionHeight);
56- // $_(window).on('resize', () => GameScreen.resize(proportionWidth, proportionHeight));
57- // }
58-
5917 Monogatari . registerListener ( 'back' , {
6018 keys : 'left' ,
6119 callback : ( ) => {
0 commit comments