Commit graph

140 commits

Author SHA1 Message Date
Kelsi
97da4c38f0 feat(editor): auto-save settings UI, multi-tile zone.json, toast notify
- Auto-save toast notification when auto-save fires
- Edit > Auto-Save Settings: enable/disable toggle, interval slider
  (60-900s), countdown timer display
- Zone manifest now scans output directory for all exported ADT tiles
  and includes them in zone.json (adjacent tiles no longer orphaned)
- Auto-save interval and enabled state exposed via EditorApp accessors
2026-05-05 13:58:07 -07:00
Kelsi
533c218983 feat(editor): select all, recent zones, minimap selection highlights
- Ctrl+A selects all placed objects, context menu has Select All item
- selectAll() added to ObjectPlacer, works with multi-select transforms
- Recent Zones submenu in File menu (last 8 loaded zones, deduplicated)
- Minimap: selected objects shown as white dots with gold ring outline
  vs yellow dots for unselected objects
- Help panel updated with Ctrl+A and Ctrl+Shift+Click documentation
2026-05-05 13:52:02 -07:00
Kelsi
ddf97e9b8a feat(editor): multi-select objects, time-of-day lighting, WOT loading
- Multi-select: Ctrl+Shift+Click adds objects to selection, transforms
  (move/rotate/scale/delete) operate on all selected objects at once
- Time-of-day slider (0-24h) with automatic sun angle, light color,
  ambient, fog, and sky color transitions (dawn/day/dusk/night)
- View > Sky/Lighting menu: color pickers for light/ambient/fog, fog
  distance sliders, preset buttons (Dawn/Noon/Dusk/Night)
- loadADT prefers WOT/WHM open format from custom_zones/output dirs
- Selection count display when multiple objects selected
- setSkyPreset now delegates to setTimeOfDay for consistency
2026-05-05 13:47:23 -07:00
Kelsi
d44eaec487 feat(editor): enhanced info panel with height stats and active texture
- Show active texture name in info panel when in paint mode
- Display terrain height range (min/max/avg) in properties panel
- Document Alt+Click eyedropper shortcut in help panel
2026-05-05 13:41:05 -07:00
Kelsi
d2acdc7620 feat(editor): texture eyedropper, WOT/WHM preference loading
- Texture eyedropper: pickTextureAt() samples dominant texture at world
  position by reading chunk alpha maps. Alt+Click in paint mode or
  click the Eyedropper button to activate
- loadADT now checks custom_zones/ and output/ for WOT/WHM open format
  files first, falling back to ADT binary only if not found
- Fix unused variable warning in scatterPatches
- Document Alt+Click in help panel
2026-05-05 13:39:53 -07:00
Kelsi
86f1a7d109 feat(editor): enhanced About dialog, validation menu, status bar
- About dialog: shows all 6 format replacements, feature counts, tech
- File menu: "Validate Open Formats" shows live per-format status with
  color-coded [OK]/[!!]/[--] indicators and score out of 6
- Status bar: shows quest count alongside objects/NPCs, undo/redo depth
2026-05-05 13:18:13 -07:00
Kelsi
97e7a4c71a feat(editor): complete importOpen, keyboard shortcuts, DBC exporter
- importOpen now loads WHM alpha maps + full WOT metadata (textures,
  layers, holes, water) — was height-only stub
- DBC exporter migrated to nlohmann/json (last naive JSON file)
- Add Z-axis gizmo constraint (Z key) alongside X/Y
- Add Ctrl+Y as alternate redo binding
- Add F1 keyboard shortcut for help panel toggle
- Update help panel: document Z-axis, Ctrl+Y, all shortcuts
2026-05-05 13:15:00 -07:00
Kelsi
6b3cdd325a feat(editor): click-to-place path points for river/road carver
- River/Road tool now uses click-capture mode instead of button-based
  cursor position — click terrain directly to set start and end points
- 3-step flow: Click Start → Click End → Apply Path (with preview text)
- Cancel button available at each step
- Path state tracked on EditorUI with setPathPoint()/clearPath()
- Intercepts terrain clicks before mode-specific handling when active
2026-05-05 13:00:23 -07:00
Kelsi
4e2f704124 fix(editor): undo now covers texture painting, fix stale buffer bug
- Extend undo/redo to snapshot alpha maps and texture layers alongside
  heights — texture painting operations are now fully undoable
- Bracket paint mode with beginStroke/endStroke like sculpt mode
- Fix stale static char buffer in quest objective loop (showed wrong
  objective's description when editing multiple objectives)
- Zero-initialize all quest UI text buffers for null termination safety
- Fix unused variable warnings in terrain_editor.cpp
2026-05-05 12:58:11 -07:00
Kelsi
617228559a feat(editor): quest chain UI with editing, loading, and validation display
- Add chain link combo to quest creation (select next quest in chain)
- Add completion text field to quest creation form
- Quest list shows chain arrows (->chain) for linked quests
- Click quest in list to edit title, level, XP inline
- Delete button for individual quests
- Live chain validation with error display (broken refs, circular chains)
- Load Quests button alongside Save Quests
2026-05-05 12:49:59 -07:00
Kelsi
71b06826b1 milestone(editor): v1.0.0 — complete world editor with full open format pipeline
191 commits, 11.5k lines, 55 files. Both targets clean, zero warnings.

World Editor v1.0.0 feature-complete:
- 6 modes: Sculpt, Paint, Objects, Water, NPCs, Quests
- 30+ terrain generators and tools
- Full painting, object placement, NPC, and quest pipelines
- Project management with git collaboration
- Content pack import/export with validation

All 6 Blizzard formats replaced with novel open alternatives:
- ADT → WOT/WHM (WHM1 magic)
- WDT → zone.json
- BLP → PNG (auto-converted)
- DBC → JSON (auto-converted)
- M2 → WOM (WOM1 magic, auto-converted)
- WMO → WOB (WOB1 magic)

Client integration: auto-loads WOT/WHM terrain + WOM models
Content pipeline: Editor → Export → WCP Pack → Share → Client loads

By Kelsi Davis
2026-05-05 11:54:58 -07:00
Kelsi
b5a798e53a chore(editor): bump version to 0.9.0 — 180 commits, 11.4k lines 2026-05-05 11:28:22 -07:00
Kelsi
6747456f48 fix(editor): improved WCP inspect toast with version and format info 2026-05-05 11:19:35 -07:00
Kelsi
a3b6653e15 feat(editor): quest count and open format save indicator in Info panel 2026-05-05 10:58:11 -07:00
Kelsi
126567a1d0 feat(editor): show scale and rotation info for selected objects 2026-05-05 10:56:48 -07:00
Kelsi
05d7dcd927 feat(editor): show open format indicator in placed objects count 2026-05-05 10:55:07 -07:00
Kelsi
b29aee062a chore(editor): note all 6 Blizzard formats replaced in About dialog 2026-05-05 10:53:49 -07:00
Kelsi
bf83da61d2 chore(editor): update About dialog with open format stats (11k+ lines, 6 formats) 2026-05-05 10:48:31 -07:00
Kelsi
e191f35ed0 feat(editor): content pack inspector and improved import UI 2026-05-05 10:47:18 -07:00
Kelsi
c532a1a787 chore(editor): bump version to 0.8.0 — full open format pipeline 2026-05-05 10:41:43 -07:00
Kelsi
40561fbe7a fix(editor): correct noise type count in About dialog (3 types: value, voronoi, detail) 2026-05-05 10:10:17 -07:00
Kelsi
b4023e13bf chore(editor): bump version to 0.7.0 — full custom content pipeline 2026-05-05 10:08:49 -07:00
Kelsi
a2b69e8e09 feat(editor): Import Content Pack button for loading shared WCP archives 2026-05-05 10:06:57 -07:00
Kelsi
c05c15f6c9 feat(editor): Load Custom Zone menu discovers and loads WOT/WHM zones
- File > Load Custom Zone scans output/ and custom_zones/ for zone.json
- Lists all discovered custom zones with name and quest indicator [Q]
- Tooltip shows description and author on hover
- Click to load the zone's WOT/WHM terrain into the editor
- Parses tile coords from WOT filename for correct positioning
- Full round-trip: export → discover → reload for iterative editing
2026-05-05 10:04:45 -07:00
Kelsi
94e6d5276e feat(editor): git integration for collaborative expansion development
- File > Project > Git submenu: Init, Commit, Push, Pull operations
- Init Git Repo: initializes git in the project directory with initial commit
- Commit Changes: auto-saves zone then commits all changes
- Push/Pull: sync with remote repositories for team collaboration
- Git Status: shows current repo state directly in the menu
- Teams can collaborate on custom expansions using standard git workflows
2026-05-05 09:45:00 -07:00
Kelsi
6f35081013 feat(editor): switch between project zones via File > Project > Switch Zone
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
2026-05-05 09:42:58 -07:00
Kelsi
8c648dff85 chore(editor): bump version to 0.6.0 — 10k lines, projects, open formats 2026-05-05 09:41:08 -07:00
Kelsi
18939af73d feat(editor): project management UI in File menu
- File > Project submenu: New/Save/Load project, add zones
- "Add Current Zone to Project" captures loaded map/tile info
- Project path editable in the menu
- Zone count shown for quick reference
- Foundation for multi-zone custom expansion workflow:
  create project → add zones → edit each → export all as WCP
2026-05-05 09:39:01 -07:00
Kelsi
c28d3f8a99 feat(editor): open terrain format integrated into export workflow
- File > Export Open Format (.wot/.whm) menu item for standalone export
- Every zone export (Ctrl+S, Export Zone) now also writes .wot/.whm
  alongside the ADT/WDT — dual format output
- Export package now contains: ADT + WDT + WOT + WHM + JSON files
- Both Blizzard-compatible (for existing servers) and open format
  (for wowee-native loading and redistribution)
2026-05-05 09:34:49 -07:00
Kelsi
be18ceea73 feat(editor): Export Content Pack button in File menu
- File > Export Content Pack (.wcp) saves zone + packs into WCP archive
- Auto-saves zone first, then bundles into the novel WCP format
- WCP is a custom format unique to wowee (not MPQ, not CASC)
- Output: output/MapName.wcp ready for distribution
- Toast notification on success/failure
2026-05-05 09:29:57 -07:00
Kelsi
f5d8dcf75a chore(editor): bump version to 0.5.0 (130 commits) 2026-05-05 09:24:21 -07:00
Kelsi
dce51d9de6 fix(editor): cleaner cursor info display in Sculpt panel header 2026-05-05 09:21:44 -07:00
Kelsi
da79244fc5 feat(editor): show cursor height and position at top of Sculpt panel 2026-05-05 09:20:28 -07:00
Kelsi
ec8e3a41b5 fix(editor): Clear All shows toast when nothing to clear 2026-05-05 09:19:02 -07:00
Kelsi
d36631d242 fix(editor): Create + Generate button now actually runs generation pipeline
- "Create + Generate" was setting a flag but never calling generateCompleteZone()
- Now properly chains: create terrain → run full procedural pipeline
  (noise → smooth → normals → height paint → slope paint → detail → water → beaches)
- Uses generateAfterCreate_ flag to defer generation until after terrain is created
2026-05-05 09:17:23 -07:00
Kelsi
bdfadc7e76 fix(editor): remove all remaining brush.isActive() checks from UI buttons
- Pick height, Punch Hole, Fill Hole, Delete All in Radius buttons
  no longer require cursor to be actively on terrain
- All buttons now use last known brush position consistently
- Fixes the fundamental UX issue where clicking a UI button moves
  the cursor off terrain, making the button do nothing
2026-05-05 09:14:31 -07:00
Kelsi
560c4a40c0 fix(editor): About dialog now works, moved outside menu bar scope
- About dialog was broken because ImGui::OpenPopup inside BeginMenu
  has wrong ID scope — popup never appeared
- Changed to a proper ImGui::Begin window with showAbout_ flag
- Closeable with X button or clicking About again
- Shows version, author, feature summary, and tech stack
2026-05-05 09:11:46 -07:00
Kelsi
c1f74d9c9c fix(editor): all generator buttons work without cursor on terrain
- Removed isActive() requirement from all "Create at Cursor" buttons
  (Mesa, Crater, Hill, Valley, Stamp, Ridge, Flatten Platform, Holes)
- Buttons now use the last known brush position which persists when
  cursor moves to the UI panel to click the button
- Fixes: "Create Mesa at Cursor can't work if cursor is clicking
  that button" — now it uses wherever the cursor was last on terrain
2026-05-05 09:06:08 -07:00
Kelsi
63f4711eb3 fix(editor): river/road path selection uses last brush pos, edge ramp note
- Set Start/End buttons for river/road no longer require brush to be
  actively on terrain at click time — uses last known brush position
  which persists when cursor moves to the UI panel
- Shows cursor coordinates above the buttons for visual confirmation
- Edge ramp confirmed to only affect terrain heights, not water levels
  (water has its own height independent of terrain)
2026-05-05 09:04:30 -07:00
Kelsi
61f0f39611 fix(editor): ADT doodad/WMO coordinate conversion, auto-find tile on map select
- ADT doodad/WMO positions now converted from ADT space to render coords
  via core::coords::adtToWorld() — fixes objects appearing at wrong positions
  when loading existing WoW maps
- Selecting a map in the Load dialog now auto-finds the first valid tile
  (no more clicking "Find Tile" manually — it's automatic)
- Better error messages with toast for failed terrain loads
- Validates mesh has valid chunks before attempting GPU upload
2026-05-05 08:55:09 -07:00
Kelsi
79db38219f feat(editor): sand dune generator for desert terrain
- Dune Generator: creates rolling sand dune patterns with primary
  and secondary sine waves plus hash-based variation
- Configurable wavelength, amplitude, wind direction, and seed
- Directional waves create realistic parallel dune ridges
- Secondary wave adds natural irregularity at 2.3x wavelength
- Perpendicular variation breaks up uniform dune lines
- Pair with Desert biome paint for instant Tanaris-style zones
2026-05-05 08:47:44 -07:00
Kelsi
8255cda9a8 chore(editor): bump version to 0.4.0 2026-05-05 08:45:24 -07:00
Kelsi
29fe4bd062 feat(editor): quick biome paint presets (6 biomes, one-click full texture)
- Quick Biome Paint: select a biome (Grassland/Forest/Desert/Snow/Swamp/Barrens)
  and apply its full texture set in one click
- Sets base texture for all chunks + scatters variation patches
- Each biome has a primary ground texture + secondary variation
- Much faster than manual painting for initial zone texturing
2026-05-05 08:42:47 -07:00
Kelsi
b00143e8f7 feat(editor): scatter texture patches for natural surface variety
- Scatter Patches: randomly places texture circles across the terrain
  for natural-looking surface variation (dirt patches, rock outcrops)
- Configurable count, min/max radius, and seed
- Preset buttons for dirt and rock patches
- Uses the existing paint() method with random positions
- Adds visual variety to otherwise uniform terrain texturing
2026-05-05 08:40:43 -07:00
Kelsi
c8446fb782 feat(editor): seed step buttons (<< >>) for quick terrain seed cycling 2026-05-05 08:36:09 -07:00
Kelsi
14d305a477 feat(editor): rotate terrain 90 degrees clockwise
- Rotate 90 CW button in Mirror/Rotate section
- Snapshots outer vertex heights into 129x129 grid, rotates in-place,
  writes back with inner vertices averaged from surrounding outers
- Useful for reorienting terrain features or creating rotational
  symmetry (rotate + mirror for 4-way symmetric arenas)
2026-05-05 08:32:59 -07:00
Kelsi
0a6e54e8a2 feat(editor): gradient texture blend for biome transitions
- Gradient Blend: smoothly transitions base texture from one biome
  to another across the entire tile (horizontal or vertical)
- Preset buttons: Grass→Sand and Grass→Snow gradients
- Creates natural biome transition zones without manual painting
- Alpha blending from 0% to 100% across 16 chunks
2026-05-05 08:28:09 -07:00
Kelsi
0907bb5ca2 feat(editor): undo/redo status in Info panel 2026-05-05 08:25:46 -07:00
Kelsi
d8c249e08f chore(editor): update About dialog tech stack info 2026-05-05 08:24:07 -07:00
Kelsi
3504e57f75 feat(editor): detail noise for adding small-scale terrain roughness
- Detail Noise: adds high-frequency roughness to existing terrain
  without destroying the overall shape (amplitude 0.5-10, freq 0.01-0.5)
- Useful after smooth/generate to break up unnaturally smooth surfaces
- Workflow: generate → smooth → detail noise for natural look
- Separate seed from main noise generator for independent control
2026-05-05 08:20:54 -07:00