Cleanup, stop rboptions extending into examine inventory
This commit is contained in:
@@ -69,7 +69,7 @@ defaultSubInvSelectionList =
|
||||
invDisplayParams :: World -> ListDisplayParams
|
||||
invDisplayParams w =
|
||||
defaultListDisplayParams
|
||||
& ldpWidth .~ FixedSelectionWidth topInvW
|
||||
-- & ldpWidth .~ FixedSelectionWidth topInvW
|
||||
& ldpCursorType .~ BorderCursor selcursortype
|
||||
& ldpWidth .~ FixedSelectionWidth (determineInvSelCursorWidth w)
|
||||
where
|
||||
@@ -294,7 +294,8 @@ determineInvSelCursorWidth :: World -> Int
|
||||
determineInvSelCursorWidth w = case _rbOptions w of
|
||||
NoRightButtonOptions -> topInvW
|
||||
EquipOptions{}
|
||||
| ButtonRight `M.member` _mouseButtons (_input w) -> 47
|
||||
| ButtonRight `M.member` _mouseButtons (_input w)
|
||||
&& w ^? hud . hudElement . subInventory == Just NoSubInventory -> 47
|
||||
| otherwise -> topInvW
|
||||
|
||||
combineListSelection :: World -> Maybe Int -> SelectionList ()
|
||||
|
||||
Reference in New Issue
Block a user