REDCODE / DOCS

Selecting many things in the sector view

Draft 0.2, 2026-11-21, agreed with the owner the same day (all four recommendations below), and built the same day; hand test pending. A modder asked for volume selection: a 3D box, like a rubber band, that selects the things inside it. The sector view picks one thing at a time today, so this adds multi-select with it: a list of what is selected, where a click flies the camera to a thing and hover buttons give each thing’s actions.

What there is today

The design

Ways to select

Input Selects
Click That thing alone, as now
Ctrl+click Adds that thing, or takes it out if it is in
Shift+drag A box on the screen: everything whose middle falls inside the rectangle, at any depth. With Ctrl as well, added to what is selected
Volume (a toolbar switch) A box in the world: drag on the ground for its base, move the mouse up or down for its height, and click. The box stays in the view, see-through, with a handle on each face to resize it and its inside to drag it. What is inside updates as it changes
Esc Nothing (clears the selection and the volume)
Ctrl+A Everything shown

Shift with a left drag pans today; it would box instead, as in EDGEbuilder. Panning stays on the middle button and on Ctrl+left drag (a Ctrl+click without a drag still adds).

What counts as inside, for both boxes: a thing whose middle is in the box. A Touching switch beside Volume takes everything whose box touches it as well, for long things like roads and walls whose middle is far off. Hidden things are never selected; ghosted ones are.

The volume’s base lies on the height of what is under the cursor where the drag starts, or the camera’s target height over empty space. The base is level with the world (no turning, unverified whether a turned box is wanted).

The selected list

A side panel on the right of the view, resizable like the animation view’s list, shown once anything is selected.

The current thing is drawn in the accent colour, and the rest of the selection in a paler accent, so the current one stands out.

The package and the API

Additive, so EDGEbuilder’s sector view can use the same selection:

Decisions for the owner

# Question Recommendation
1 Shift+drag boxes, as in EDGEbuilder, and pan moves to the middle button and Ctrl+drag Yes: one mapping for the EDGE tools
2 What counts as inside: the thing’s middle, with a Touching switch Yes: predictable for small things, and Touching covers roads and walls
3 The volume: drag the base, then the height, then a click; face handles to resize Yes, level with the world. A turned volume later if modders ask
4 The list on the right, current thing drawn apart, first 500 rows drawn Yes

Order

Built in one piece once agreed, with a hand test in testing. EDGEbuilder hears of the package’s additions on EDGEbuilder #8.

As built (2026-11-21)

Built the same day. What differs from the design above:

Where it is:

Part Where
The page half highlight(ids, current), idsInRect, idsInBox, idsShown, onBoxSelect and Shift+drag in src/page.ts; the volume in src/volume.ts
REDcode The selection, the list and its actions, Volume and Touching in webview/sectorViewer.ts; addMeshes and copy in sectorAction (src/cr2wEditor.ts); Add to Project takes several files and asks once (src/extension.ts); openSector’s select takes a list

Checked in Chrome over the real bridge, on exterior_-22_7_0_0:

Chrome drew 2 frames a second there, so how it feels is the hand test’s.

Not in this design

Next: every copy of a mesh (the owner, 2026-11-22)

Asked in the Add to Project retest: a modder with sector meshes in the project cannot tell where they are in the sector view. Agreed: both places, built after the release now in test (with M2 and Lip Sync L1).

The Properties tab (a modder’s request, 2026-11-24)

Asked by the owner for a modder: a third tab beside Selections and Overlaps with only the properties every selected thing shares, so a mass edit is made in one place, with a question that says how many edits it makes. Built the same day: