diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index 605d66d..2d9f876 100644 --- a/src/Main.hs +++ b/src/Main.hs | |||
@@ -142,7 +142,8 @@ stateOutline = do | |||
142 | toDesc x | 142 | toDesc x |
143 | factionIndex id = fromJust $ elemIndex (view faction' $ faction id) factions | 143 | factionIndex id = fromJust $ elemIndex (view faction' $ faction id) factions |
144 | colsAllG top . ([maybe "" show $ view seqVal seq] :) <$> mapM factionColumn [0..(length factions - 1)] | 144 | colsAllG top . ([maybe "" show $ view seqVal seq] :) <$> mapM factionColumn [0..(length factions - 1)] |
145 | layoutTableToString <$> rowGs <*> pure (Just (roundStr round : factions, repeat def)) <*> pure (repeat def) <*> pure unicodeBoldHeaderS | 145 | -- layoutTableToString <$> rowGs <*> pure (Just (roundStr round : factions, repeat def)) <*> pure (repeat def) <*> pure unicodeBoldHeaderS |
146 | tableString <$> pure (repeat def) <*> pure unicodeBoldHeaderS <*> pure (titlesH $ roundStr round : factions) <*> rowGs | ||
146 | 147 | ||
147 | focusNotes :: GameState -> String | 148 | focusNotes :: GameState -> String |
148 | focusNotes st | 149 | focusNotes st |
@@ -431,7 +432,8 @@ dumpLog :: Sh GameState () | |||
431 | dumpLog = use gLog >>= mapMOf (each . _1) toName >>= shellPutStrLn . toTable | 432 | dumpLog = use gLog >>= mapMOf (each . _1) toName >>= shellPutStrLn . toTable |
432 | where | 433 | where |
433 | toTable :: Seq (String, String) -> String | 434 | toTable :: Seq (String, String) -> String |
434 | toTable (map (rowG . toListOf both) . toList -> table) = layoutTableToString table (Just (["Entity", "String"], [def, def])) [def, def] unicodeBoldHeaderS | 435 | -- toTable (map (rowG . toListOf both) . toList -> table) = layoutTableToString table (Just (["Entity", "String"], [def, def])) [def, def] unicodeBoldHeaderS |
436 | toTable (map (rowG . toListOf both) . toList -> table) = tableString [def, def] unicodeBoldHeaderS (titlesH ["Entity", "String"]) table | ||
435 | 437 | ||
436 | printVal :: Completable (Formula Stats) -> Sh GameState () | 438 | printVal :: Completable (Formula Stats) -> Sh GameState () |
437 | printVal = withArg $ \formula -> withFocus $ \focusId -> do | 439 | printVal = withArg $ \formula -> withFocus $ \focusId -> do |