Start adding mouse control of inventory
This commit is contained in:
@@ -30,7 +30,7 @@ regexScope ::
|
||||
Maybe
|
||||
((SSSExtra -> f SSSExtra) -> HUDElement -> f HUDElement, Int)
|
||||
regexScope w = case w ^? hud . hudElement . subInventory of
|
||||
Just NoSubInventory -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just NoSubInventory{} -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just (-1, _) -> di (-1)
|
||||
Just (0, _) -> di (-1)
|
||||
Just (2, _) -> di 2
|
||||
@@ -49,7 +49,7 @@ regexFocus ::
|
||||
Maybe
|
||||
((SSSExtra -> f SSSExtra) -> HUDElement -> f HUDElement, Int)
|
||||
regexFocus w = case w ^? hud . hudElement . subInventory of
|
||||
Just NoSubInventory -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just NoSubInventory{} -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just (-1, _) -> di (-1)
|
||||
Just (2, _) -> di 2
|
||||
_ -> Nothing
|
||||
@@ -71,7 +71,7 @@ inputFocus ::
|
||||
World ->
|
||||
Maybe ((String -> f String) -> World -> f World)
|
||||
inputFocus w = case w ^? hud . hudElement . subInventory of
|
||||
Just NoSubInventory -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just NoSubInventory{} -> case he ^? diSections . sssExtra . sssSelPos . _Just of
|
||||
Just (-1, _) -> di (-1)
|
||||
Just (2, _) -> di 2
|
||||
_ -> Nothing
|
||||
|
||||
Reference in New Issue
Block a user