change auto-format to better style
This commit is contained in:
parent
6c28c49802
commit
fa1b40b263
@ -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
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user