Files
EVEngine/examples/procgen-script-editor/README.md
T
西风逍遥游andCursor 905bd8c813 feat(editor): add procgen script, UI theme, and voxel catalog workspaces
C++ owns those documents and workspace descriptors; examples compose panels. UI ColorPalette and theme scope support the theme editor inspector.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 19:08:50 +08:00

780 B

Procgen Script Editor example

Hosts an encapsulated Squirrel generator (generators/forest.nut). Native code owns the parameter document, undo, and PointSet preview copies. The presenter runs generate after parameter commits and publishes the result.

make run/win32-debug GAME=examples/procgen-script-editor
  • Inspector sliders commit into the native Params document, then rebuild.
  • Live still uses commit-on-change; keep it off unless you want every slider event to rebuild immediately as the UI reports it.
  • Debug stages list candidates / trees.
  • Ctrl+Z / Ctrl+Y undo parameter edits; a failed generate keeps the last points.
  • Saving generators/forest.nut reloads the schema (unknown keys dropped, missing keys filled from defaults).