change auto-format to better style

This commit is contained in:
Jakob Haag 2020-05-09 18:31:06 +02:00
parent 6c28c49802
commit fa1b40b263

View File

@ -18,17 +18,27 @@ class Modal: GKEntity{
switch modaltype{ switch modaltype{
case .BaseDetails: case .BaseDetails:
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint)) addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
addComponent(ModalContentComponent(header: "Basis Information", addComponent(ModalContentComponent(
header: "Basis Information",
body: "Diese Basis enthält \(base.unitCount) Einheiten", body: "Diese Basis enthält \(base.unitCount) Einheiten",
footer: "", footer: "",
anchorPoint: anchorPoint)) anchorPoint: anchorPoint
)
)
case .BaseAttack: case .BaseAttack:
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint)) addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80))) addComponent(SliderComponent(
addComponent(ModalContentComponent(header: "Angriff", width: 300,
position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80)
)
)
addComponent(ModalContentComponent(
header: "Angriff",
body: "Schicke \(unitCount / 2) Einheiten", body: "Schicke \(unitCount / 2) Einheiten",
footer: "", footer: "",
anchorPoint: anchorPoint)) anchorPoint: anchorPoint
)
)
} }
} }