Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory search/filter mode #1250

Merged
merged 12 commits into from
May 12, 2023
Prev Previous commit
Next Next commit
display current search at the bottom of the inventory panel
  • Loading branch information
byorgey committed May 10, 2023
commit 0e3417d385ca4ea3ac271993b76936741e2a5a21
13 changes: 12 additions & 1 deletion src/Swarm/TUI/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,18 @@ drawGameUI s =
hBox
[ hLimitPercent 25 $
vBox
[ vLimitPercent 50 $ panel highlightAttr fr (FocusablePanel RobotPanel) plainBorder $ drawRobotPanel s
[ vLimitPercent 50 $
panel
highlightAttr
fr
(FocusablePanel RobotPanel)
( plainBorder
& bottomLabels . centerLabel
.~ fmap
(txt . (" Search: " <>) . (<>" "))
(s ^. uiState . uiInventorySearch)
)
$ drawRobotPanel s
, panel
highlightAttr
fr
Expand Down