Work on more complicated terminals
This commit is contained in:
@@ -84,9 +84,13 @@ subInventoryDisplay subinv cfig w = case subinv of
|
||||
DisplayTerminal {_termParams = tp} -> pictures
|
||||
[ invHead cfig (_termTitle tp)
|
||||
, renderListAt subInvX 60 cfig
|
||||
. (++ (map (\(str,_) -> (str,white)) (_termOptions tp)))
|
||||
. reverse
|
||||
. take (_termMaxLines tp)
|
||||
$ _termDisplayedLines tp <&> ($ w)
|
||||
, fromMaybe mempty $ do
|
||||
cursori <- _termSel tp <&> (+ _termMaxLines tp)
|
||||
return $ listCursorNSW subInvX 60 cfig cursori white 15 1
|
||||
]
|
||||
CombineInventory mi -> pictures
|
||||
[ invHead cfig "COMBINE"
|
||||
|
||||
Reference in New Issue
Block a user