diff --git a/src/scene/board-scene.ts b/src/scene/board-scene.ts index 656b7bb..fd5a03b 100644 --- a/src/scene/board-scene.ts +++ b/src/scene/board-scene.ts @@ -32,7 +32,7 @@ export default class BoardScene extends BaseScene { playerList.updatePlayerList(this.aznopoly.room.connectedPlayerIds.map(e => ({uuid: e, name: this.aznopoly.room.getPlayerName(e), host: false}))) playerList.updateTitle(""); - this.rollButton = this.add.existing(new AzNopolyButton(this, "Roll Dice", WIDTH - 150, HEIGHT - 100, this.controller.onRollClick.bind(this.controller))); + this.rollButton = this.add.existing(new AzNopolyButton(this, "Roll Dice", WIDTH - 150, HEIGHT - 100, 0, 0, this.controller.onRollClick.bind(this.controller))); this.rollButton.disable(); this.choiceWheel = this.add.existing(new RandomSelectionWheel(this, WIDTH /2, HEIGHT / 2, {width: 300, height: 40})); diff --git a/src/scene/lobby-scene.ts b/src/scene/lobby-scene.ts index 4452e6f..665faed 100644 --- a/src/scene/lobby-scene.ts +++ b/src/scene/lobby-scene.ts @@ -32,7 +32,7 @@ export default class LobbyScene extends BaseScene { private initButton() { if (!this.aznopoly.isHost) return; - const button = new AzNopolyButton(this, "Start Game", WIDTH - 200, HEIGHT - 120, this.controller.onStartClick.bind(this.controller)); + const button = new AzNopolyButton(this, "Start Game", WIDTH - 200, HEIGHT - 120, 0, 0, this.controller.onStartClick.bind(this.controller)); this.add.existing(button); } diff --git a/src/style.ts b/src/style.ts index ebf4b5b..09cac70 100644 --- a/src/style.ts +++ b/src/style.ts @@ -1,4 +1,5 @@ export const COLOR_PRIMARY = 0x4690A9; +export const COLOR_PRIMARY_2 = 0x73c8e4; export const COLOR_CONTRAST = 0x73c8e4; type TextStyle = Phaser.Types.GameObjects.Text.TextStyle; diff --git a/src/ui/button.ts b/src/ui/button.ts index a93d7d4..017cf1c 100644 --- a/src/ui/button.ts +++ b/src/ui/button.ts @@ -33,7 +33,7 @@ export class AzNopolyButton extends Phaser.GameObjects.Container { private onClick: () => void; - constructor(scene: Scene, title: string, x: number, y: number, widthOffset: number, heightOffset: number, onClick: () => void) { + constructor(scene: Phaser.Scene, title: string, x: number, y: number, widthOffset: number, heightOffset: number, onClick: () => void) { super(scene); this.onClick = onClick; diff --git a/src/ui/random-selection-wheel.ts b/src/ui/random-selection-wheel.ts index 25b3637..a3bf9e5 100644 --- a/src/ui/random-selection-wheel.ts +++ b/src/ui/random-selection-wheel.ts @@ -84,7 +84,7 @@ export default class RandomSelectionWheel extends Phaser.GameObjects.Container { this.choiceTexts.forEach((text, i) => { text.setStyle(FONT_STYLE_BODY); if(i === index) { - text.setStyle({color: '#ffffff'}); + text.setStyle({color: '#dddddd'}); } }); }