Border the placement highlight along the footprint perimeter (#47) #133
No reviewers
Labels
No labels
assets
bug
duplicate
enhancement
help wanted
invalid
question
testing
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
liamjd/UntitledColonyBuilder!133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "47-highlight-perimeter-border"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Draws a border around the building placement highlight, outlining the footprint along its actual shape.
Changes
BuildingFootprint.open_sides(cells, cell): static helper next tocalculate_bounds(). It returns the sides of a cell whose neighbour is not in the footprint (the #37 perimeter rule). It checks cell membership rather than bounds, so an L's notch and a C's hollow are outlined too.PlacementController._rebuild_highlight()draws the border as quads in the sameImmediateMesh, surface and material as the fill. The border differs only in vertex alpha (highlight_border_alpha, 0.9). Quad emission moved into_add_highlight_quad().tools/screenshot_placement_border.gd: headed check that drives the real_rebuild_highlight()at near and max zoom.Decisions
highlight_border_ratio= 0.1, which is 0.2 m on a 2 m tile. The ticket's 0.06 m is sub-pixel at the camera'smax_zoomof 120, whereas 0.2 m is still about 2 px there.Verification
test_building_footprint.gd(a lone cell, a block's interior, the cell beside an L's notch). They were red beforeopen_sides()existed.Closes #47
🤖 Generated with Claude Code