feat(editor): selected NPC marker is larger and yellow-cyan tinted

Marker geometry now reacts to npc.selected: 2.5x base radius (vs 1.5x),
saturated yellow with cyan tinge, and full alpha. Marker rebuild also
fires on selection change so the highlight appears immediately rather
than only after the next placement.
This commit is contained in:
Kelsi 2026-05-06 01:51:59 -07:00
parent b491ecb435
commit 63fe5da04e
3 changed files with 12 additions and 5 deletions

View file

@ -122,12 +122,15 @@ void EditorApp::run() {
size_t objCount = objectPlacer_.objectCount();
size_t npcCount = npcSpawner_.spawnCount();
bool objChanged = (objCount != lastObjCount_);
bool npcChanged = (npcCount != lastNpcCount_) || objectsDirty_;
int npcSelIdx = npcSpawner_.getSelectedIndex();
bool npcSelChanged = (npcSelIdx != lastNpcSelIdx_);
bool npcChanged = (npcCount != lastNpcCount_) || objectsDirty_ || npcSelChanged;
if (npcChanged) {
// NPC markers are cheap — always update
viewport_.updateNpcMarkers(npcSpawner_.getSpawns());
lastNpcCount_ = npcCount;
lastNpcSelIdx_ = npcSelIdx;
}
// Show gizmo arrows on selected object or NPC. NPCs only support move