From 2ba541e369d3419e94a14149f911f5b9e850d9e0 Mon Sep 17 00:00:00 2001 From: Jakob Haag Date: Tue, 2 Jun 2020 11:06:49 +0200 Subject: [PATCH] Resize Button, adjust position and change text --- GoldWars/GoldWars/Entities/HUD.swift | 8 +++++--- GoldWars/GoldWars/RoundTimer.swift | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GoldWars/GoldWars/Entities/HUD.swift b/GoldWars/GoldWars/Entities/HUD.swift index 507ec4d..6ff9a2d 100644 --- a/GoldWars/GoldWars/Entities/HUD.swift +++ b/GoldWars/GoldWars/Entities/HUD.swift @@ -69,12 +69,14 @@ class HUD: GKEntity { finishButton = SingeClickButtonNode( textureName: "yellow_button04", - text: "Finish Round", + text: "Done", isEnabled: true, - position: CGPoint(x: EntityManager.gameEMInstance.scene.size.width * 0.15, y: EntityManager.gameEMInstance.scene.size.height * 0.1), + position: CGPoint( + x: EntityManager.gameEMInstance.scene.size.width * 0.1, + y: EntityManager.gameEMInstance.scene.size.height * 0.1), onButtonPress: { } ) - finishButton.size = CGSize(width: 250, height: 40) + finishButton.size = CGSize(width: 80, height: 40) finishButton.zPosition = 4 super.init() diff --git a/GoldWars/GoldWars/RoundTimer.swift b/GoldWars/GoldWars/RoundTimer.swift index 34c5d3d..8f27a60 100644 --- a/GoldWars/GoldWars/RoundTimer.swift +++ b/GoldWars/GoldWars/RoundTimer.swift @@ -41,7 +41,6 @@ class RoundTimer: Timer { MultiplayerNetwork.sharedInstance.sendPlayerMoves(localRoundData: DataService.sharedInstance.localRoundData) } calculate = true - print("send Player Moves") } if timeLeft <= 0 { if calculate