From 5feb8318735c5e62473fd72d611f9bde043992ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chauntalle=20Schu=CC=88le?= Date: Thu, 14 May 2020 14:09:45 +0200 Subject: [PATCH] =?UTF-8?q?Bug:=20couldn't=20exit=20Modal=20showing=20Basi?= =?UTF-8?q?s=20Informationen,=20now=20possible=20through=20Button=20zuru?= =?UTF-8?q?=CC=88ck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GoldWars/GoldWars/Entities/Modal.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GoldWars/GoldWars/Entities/Modal.swift b/GoldWars/GoldWars/Entities/Modal.swift index 8796202..ca588ad 100644 --- a/GoldWars/GoldWars/Entities/Modal.swift +++ b/GoldWars/GoldWars/Entities/Modal.swift @@ -21,6 +21,9 @@ class Modal: GKEntity{ case .BaseDetails: addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint)) addComponent(ModalContentComponent(header: "Basis Information", body: "Diese Basis enthält \(base.unitCount) Einheiten", footer: "", anchorPoint: anchorPoint)) + addComponent(ButtonComponent(iconName: "", text: "Zurück", position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 120), isEnabled: true, onButtonPress: { + self.removeModalEntities(entityManager: self.modalEntityManager) + })) case .BaseAttack: addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint)) addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 50)))