change auto-format to better style
This commit is contained in:
parent
6c28c49802
commit
fa1b40b263
@ -18,17 +18,27 @@ class Modal: GKEntity{
|
||||
switch modaltype{
|
||||
case .BaseDetails:
|
||||
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
|
||||
addComponent(ModalContentComponent(header: "Basis Information",
|
||||
addComponent(ModalContentComponent(
|
||||
header: "Basis Information",
|
||||
body: "Diese Basis enthält \(base.unitCount) Einheiten",
|
||||
footer: "",
|
||||
anchorPoint: anchorPoint))
|
||||
anchorPoint: anchorPoint
|
||||
)
|
||||
)
|
||||
case .BaseAttack:
|
||||
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
|
||||
addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80)))
|
||||
addComponent(ModalContentComponent(header: "Angriff",
|
||||
addComponent(SliderComponent(
|
||||
width: 300,
|
||||
position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80)
|
||||
)
|
||||
)
|
||||
addComponent(ModalContentComponent(
|
||||
header: "Angriff",
|
||||
body: "Schicke \(unitCount / 2) Einheiten",
|
||||
footer: "",
|
||||
anchorPoint: anchorPoint))
|
||||
anchorPoint: anchorPoint
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user