Continue work on menu screens
This commit is contained in:
@@ -36,11 +36,8 @@ makeOptionsSelectionList mselpos u mos = SelectionList
|
||||
optionsToSelections :: Universe -> [MenuOption] -> [SelectionItem]
|
||||
optionsToSelections u ops = map colStrToSelItem colstrs
|
||||
where
|
||||
maxOptionLength = 3 + maximum (0 : map (optionValueOffset u) visibleops)
|
||||
colstrs = zipWith (menuOptionToString u maxOptionLength) ['A'..] visibleops
|
||||
visibleops = filter notInvisible ops
|
||||
notInvisible InvisibleToggle{} = False
|
||||
notInvisible _ = True
|
||||
maxOptionLength = 3 + maximum (0 : map (optionValueOffset u) ops)
|
||||
colstrs = zipWith (menuOptionToString u maxOptionLength) ['A'..] ops
|
||||
|
||||
colStrToSelItem :: (Color,String) -> SelectionItem
|
||||
colStrToSelItem (col,str) = SelectionItem
|
||||
|
||||
Reference in New Issue
Block a user