Skip to content

Commit

Permalink
Add issue references
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Mar 8, 2023
1 parent a1c5c69 commit 0d565dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Swarm/Game/Scenario/WorldDescription.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ prepForJson (WorldPalette suggestedPalette) cellGrid =

unassignedCharacters :: Set.Set Char
unassignedCharacters =
-- TODO: How can we efficiently use the Unicode categories (in "Data.Char")
-- TODO (#1149): How can we efficiently use the Unicode categories (in "Data.Char")
-- to generate this pool?
Set.difference genericCharacterPool $
Set.fromList $
Expand Down
6 changes: 3 additions & 3 deletions src/Swarm/TUI/Editor/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ handleCtrlLeftClick mouseLoc = do
let getSelected x = snd <$> BL.listSelectedElement x
maybeTerrainType = getSelected $ worldEditor ^. terrainList
maybeEntityPaint = getSelected $ worldEditor ^. entityPaintList
-- TODO: Use hoistMaybe when available
-- TODO (#1151): Use hoistMaybe when available
terrain <- MaybeT . pure $ maybeTerrainType
mouseCoords <- MaybeT $ Brick.zoom gameState $ mouseLocToWorldCoords mouseLoc
uiState . uiWorldEditor . paintedTerrain %= M.insert mouseCoords (terrain, maybeEntityPaint)
Expand Down Expand Up @@ -140,7 +140,7 @@ updateAreaBounds = \case
UpperLeftPending -> do
uiState . uiWorldEditor . editingBounds . boundsSelectionStep .= LowerRightPending mouseCoords
return False
-- TODO: Validate that the lower-right click is below and to the right of the top-left coord
-- TODO (#1152): Validate that the lower-right click is below and to the right of the top-left coord
LowerRightPending upperLeftMouseCoords -> do
uiState . uiWorldEditor . editingBounds . boundsRect
.= Just (upperLeftMouseCoords, mouseCoords)
Expand Down Expand Up @@ -217,7 +217,7 @@ makeSuggestedPalette maybeOriginalScenario cellGrid =
let cell = Cell terrain (Just $ EntityFacade eName eDisplay) []
return ((terrain, Just eName), (T.singleton displayChar, cell))

-- TODO: Filter out terrain-only palette entries that aren't actually
-- TODO (#1153): Filter out terrain-only palette entries that aren't actually
-- used in the map.
terrainOnlyPalette :: Map TerrainEntityNamePair (T.Text, CellPaintDisplay)
terrainOnlyPalette = M.fromList $ map f U.listEnums
Expand Down
2 changes: 1 addition & 1 deletion src/Swarm/TUI/Editor/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ drawWorldEditor toplevelFocusRing uis =
worldEditor = uis ^. uiWorldEditor
maybeAreaBounds = worldEditor ^. editingBounds . boundsRect

-- TODO: Use withFocusRing?
-- TODO (#1150): Use withFocusRing?
mkFormControl n w =
clickable n $ transformation w
where
Expand Down

0 comments on commit 0d565dc

Please sign in to comment.