Skip to content

Commit

Permalink
Make launch options message take up a whole line, even when blank (#1315
Browse files Browse the repository at this point in the history
)

This way the new game menu doesn't wiggle up and down depending on whether the launch options message is displayed.
  • Loading branch information
byorgey committed Jun 9, 2023
1 parent b382494 commit 6691300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swarm/TUI/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ drawNewGameMenuUI (l :| ls) launchOptions = case displayedFor of

launchOptionsMessage = case (displayedFor, snd <$> BL.listSelectedElement l) of
(Nothing, Just (SISingle _)) -> hCenter $ txt "Press 'o' for launch options, or 'Enter' to launch with defaults"
_ -> emptyWidget
_ -> txt " "

drawScenarioItem (SISingle (s, si)) = padRight (Pad 1) (drawStatusInfo s si) <+> txt (s ^. scenarioName)
drawScenarioItem (SICollection nm _) = padRight (Pad 1) (withAttr boldAttr $ txt " > ") <+> txt nm
Expand Down

0 comments on commit 6691300

Please sign in to comment.