mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
Display scenario for obtained achievement (#1175)
# Before ![image](https://user-images.githubusercontent.com/261693/227453439-b08afe02-07f1-40dd-9688-9d77dcef7989.png) # After ![image](https://user-images.githubusercontent.com/261693/227454441-925cecf8-042c-46a6-8fd3-ef749ad50fad.png)
This commit is contained in:
parent
7d7f291450
commit
d52c36d05c
@ -87,12 +87,20 @@ singleAchievementDetails attainedMap x =
|
||||
Nothing -> emptyWidget
|
||||
Just attainment ->
|
||||
padTop (Pad 1) $
|
||||
hBox
|
||||
[ txt "Obtained: "
|
||||
, withAttr cyanAttr $
|
||||
str $
|
||||
formatTime defaultTimeLocale "%l:%M%P on %b %e, %Y" $
|
||||
attainment ^. obtainedAt
|
||||
vBox
|
||||
[ hBox
|
||||
[ txt "Obtained: "
|
||||
, withAttr cyanAttr $
|
||||
str $
|
||||
formatTime defaultTimeLocale "%l:%M%P on %b %e, %Y" $
|
||||
attainment ^. obtainedAt
|
||||
]
|
||||
, flip (maybe emptyWidget) (attainment ^. maybeScenarioPath) $ \s ->
|
||||
hBox
|
||||
[ txt "Scenario: "
|
||||
, withAttr cyanAttr $
|
||||
str s
|
||||
]
|
||||
]
|
||||
, padTop (Pad 1) $
|
||||
hBox
|
||||
|
Loading…
Reference in New Issue
Block a user