Update changes in menu values
This commit is contained in:
@@ -21,6 +21,14 @@ slTitleOptionsEff title ops defstr eff u =
|
||||
, _scSelectionList = makeOptionsSelectionList (Just 0) u ops
|
||||
}
|
||||
|
||||
refreshOptionsSelectionList :: Universe -> Universe
|
||||
refreshOptionsSelectionList u = u & uvScreenLayers . ix 0 %~ f
|
||||
where
|
||||
f sl = case sl of
|
||||
OptionScreen {_scOptions = mops} -> sl & scSelectionList . slItems .~ optionsToSelections u mops
|
||||
_ -> sl
|
||||
|
||||
|
||||
--makeOptionsSelectionList :: Maybe Int -> Universe -> [MenuOption] -> Maybe String -> SelectionList
|
||||
--makeOptionsSelectionList mselpos u mos defstr = SelectionList
|
||||
makeOptionsSelectionList :: Maybe Int -> Universe -> [MenuOption] -> SelectionList
|
||||
|
||||
Reference in New Issue
Block a user