inspector.module
This package holds more than this page lists. See all of its files in its world.
README.md
presetDefaultsSection
The Preset Manager as an inspector section, shown at the top of the Settings
panel. It edits the world's ordered [[presets]] rows in .world_settings
through the Settings section's typed fields:
- target: a chip that takes a declarer something consults at creation (an assetType whose instances share its schema, an importer, a component).
- preset: a chip that offers only presets for the row's declarer.
- filter: a glob over the new thing's path under
/source.
Rows move up and down, are removed, and are added. An edit that leaves every
row whole is one checked, undoable write of .world_settings. A row being
filled in stays in the section until it is whole and shows what it still
needs. Removing a row always writes, whatever the other rows hold, and a row
that cannot apply shows why.
Exports
PresetDefaultsSection.context() -> Context: the rows, the checked writer, the chip predicate (admit) and each row's problems.PresetDefaultsSection.section:{ id = "presetDefaults", title = "Preset Manager", build }.PresetDefaultsSection.render() -> { any }: the section rendered with a fresh context.PresetDefaultsSection.signature() -> string: moves whenever the rows or the section's draft move, for a panel's build signature.