Browse code

resize gui

devnewton authored on 18/12/2016 at 11:43:08
Showing 5 changed files
... ...
@@ -14,27 +14,27 @@ export class GamepadOptions extends AbstractState {
14 14
 
15 15
     create() {
16 16
         super.create();
17
-        let title = this.game.add.text(this.game.world.centerX, 0, 'Choose gamepad', { font: "68px monospace", fill: 'white' });
17
+        let title = this.game.add.text(this.game.world.centerX, 0, 'Choose gamepad', { font: "42px monospace", fill: 'white' });
18 18
         title.scale.x = 2;
19 19
         title.scale.y = 2;
20 20
         title.anchor.setTo(0.5, 0);
21 21
 
22
-        let subtitle = this.game.add.text(0, 0, 'Move stick or press button to show gamepad number', { font: "60px monospace", fill: 'white' });
22
+        let subtitle = this.game.add.text(0, 0, 'Move stick or press button to show gamepad number', { font: "32px monospace", fill: 'white' });
23 23
         subtitle.y = this.game.world.height - subtitle.height;
24 24
 
25
-        new GamepadMenuButton(this.input.gamepad.pad1, 0xFF6666, "Gamepad 1", 500, 200, () => {
25
+        new GamepadMenuButton(this.input.gamepad.pad1, 0xFF6666, "Gamepad 1", 200, 100, () => {
26 26
             this.game.state.start('GamepadOptionsLayout', true, false, 1);
27 27
         });
28
-        new GamepadMenuButton(this.input.gamepad.pad2, 0x66FF66, "Gamepad 2", 500, 350, () => {
28
+        new GamepadMenuButton(this.input.gamepad.pad2, 0x66FF66, "Gamepad 2", 200, 200, () => {
29 29
             this.game.state.start('GamepadOptionsLayout', true, false, 2);
30 30
         });
31
-        new GamepadMenuButton(this.input.gamepad.pad3, 0x6666FF, "Gamepad 3", 500, 500, () => {
31
+        new GamepadMenuButton(this.input.gamepad.pad3, 0x6666FF, "Gamepad 3", 200, 300, () => {
32 32
             this.game.state.start('GamepadOptionsLayout', true, false, 3);
33 33
         });
34
-        new GamepadMenuButton(this.input.gamepad.pad4, 0xFFFF66, "Gamepad 4", 500, 650, () => {
34
+        new GamepadMenuButton(this.input.gamepad.pad4, 0xFFFF66, "Gamepad 4", 200, 400, () => {
35 35
             this.game.state.start('GamepadOptionsLayout', true, false, 4);
36 36
         });
37
-        new MenuButton(this.game, "Back", 500, 800, () => this.game.state.start('Options'));
37
+        new MenuButton(this.game, "Back", 200, 550, () => this.game.state.start('Options'));
38 38
     }
39 39
 }
40 40
 
... ...
@@ -40,11 +40,11 @@ export class GamepadOptionsBindAxisOrButton extends AbstractState {
40 40
 
41 41
     create() {
42 42
         super.create();
43
-        let logo = this.game.add.text(this.game.world.centerX, 0, this.bindings[this.currentBinding].label, { font: "68px monospace", fill: 'white' });
43
+        let logo = this.game.add.text(this.game.world.centerX, 0, this.bindings[this.currentBinding].label, { font: "42px monospace", fill: 'white' });
44 44
         logo.scale.x = 2;
45 45
         logo.scale.y = 2;
46 46
         logo.anchor.setTo(0.5, 0);
47
-        new MenuButton(this.game, "Back", 500, 900, () => this.game.state.start('GamepadOptions'));
47
+        new MenuButton(this.game, "Back", 200, 500, () => this.game.state.start('GamepadOptions'));
48 48
     }
49 49
 
50 50
     update() {
... ...
@@ -20,19 +20,19 @@ export class GamepadOptionsLayout extends AbstractState {
20 20
 
21 21
     create() {
22 22
         super.create();
23
-        let title = this.game.add.text(this.game.world.centerX, 0, 'Choose gamepad layout', { font: "68px monospace", fill: 'white' });
23
+        let title = this.game.add.text(this.game.world.centerX, 0, 'Choose gamepad layout', { font: "42px monospace", fill: 'white' });
24 24
         title.scale.x = 2;
25 25
         title.scale.y = 2;
26 26
         title.anchor.setTo(0.5, 0);
27 27
 
28
-        new MenuButton(this.game, "Xbox", 500, 200, () => {
28
+        new MenuButton(this.game, "Xbox", 200, 200, () => {
29 29
             (this.game as UnderthiefGame).controllers.getPad(this.padIndex).useXboxLayout(this.padIndex);
30 30
             this.game.state.start('Options');
31 31
         });
32
-        new MenuButton(this.game, "Custom", 500, 350, () => {
32
+        new MenuButton(this.game, "Custom", 200, 300, () => {
33 33
             this.game.state.start('GamepadOptionsBindAxis', true, false, this.padIndex);
34 34
         });
35
-        new MenuButton(this.game, "Back", 500, 500, () => this.game.state.start('Options'));
35
+        new MenuButton(this.game, "Back", 200, 500, () => this.game.state.start('Options'));
36 36
     }
37 37
 }
38 38
 
... ...
@@ -16,27 +16,27 @@ export class KeyboardOptions extends AbstractState {
16 16
 
17 17
     create() {
18 18
         super.create();
19
-        let logo = this.game.add.text(this.game.world.centerX, 0, 'Choose keyboard layout',{font: "68px monospace", fill: 'white'});
19
+        let logo = this.game.add.text(this.game.world.centerX, 0, 'Choose keyboard layout',{font: "42px monospace", fill: 'white'});
20 20
         logo.scale.x = 2;
21 21
         logo.scale.y = 2;
22 22
         logo.anchor.setTo(0.5, 0);
23 23
 
24
-        new MenuButton(this.game, "Azerty zsqd j", 500, 300, () => {
24
+        new MenuButton(this.game, "Azerty zsqd j", 200, 100, () => {
25 25
             (<UnderthiefGame>this.game).controllers.getKeyboard().useAzertyLayout();
26 26
             this.game.state.start('Options');
27 27
         });
28
-        new MenuButton(this.game, "Qwerty wsad j", 500, 450, () => {
28
+        new MenuButton(this.game, "Qwerty wsad j", 200, 200, () => {
29 29
             (<UnderthiefGame>this.game).controllers.getKeyboard().useQwertyLayout();
30 30
             this.game.state.start('Options');
31 31
         });
32
-        new MenuButton(this.game, "Others ⬆⬇⬅➡ space", 500, 600, () => {
32
+        new MenuButton(this.game, "Others ⬆⬇⬅➡ space", 200, 300, () => {
33 33
             (<UnderthiefGame>this.game).controllers.getKeyboard().useOtherKeyboardLayout();
34 34
             this.game.state.start('Options');
35 35
         });
36
-        new MenuButton(this.game, "Custom", 500, 750, () => {
36
+        new MenuButton(this.game, "Custom", 200, 400, () => {
37 37
             (<UnderthiefGame>this.game).controllers.getKeyboard().useOtherKeyboardLayout();
38 38
             this.game.state.start('KeyboardOptionsBindKey', true, false);
39 39
         });
40
-        new MenuButton(this.game, "Back", 500, 900, () => this.game.state.start('Options'));
40
+        new MenuButton(this.game, "Back", 200, 600, () => this.game.state.start('Options'));
41 41
     }
42 42
 }
... ...
@@ -36,11 +36,11 @@ export class KeyboardOptionsBindKey extends AbstractState {
36 36
 
37 37
     create() {
38 38
         super.create();
39
-        let logo = this.game.add.text(this.game.world.centerX, 0, this.bindings[this.currentBinding].label, { font: "68px monospace", fill: 'white' });
39
+        let logo = this.game.add.text(this.game.world.centerX, 0, this.bindings[this.currentBinding].label, { font: "42px monospace", fill: 'white' });
40 40
         logo.scale.x = 2;
41 41
         logo.scale.y = 2;
42 42
         logo.anchor.setTo(0.5, 0);
43
-        new MenuButton(this.game, "Back", 500, 900, () => this.game.state.start('KeyboardOptions'));
43
+        new MenuButton(this.game, "Back", 200, 600, () => this.game.state.start('KeyboardOptions'));
44 44
     }
45 45
 
46 46
     update() {