Dynamic Decals History
Editor module providing undo/redo history GUI for the Dynamic Decals tool. Displays undo and redo stacks with selectable entries and bulk undo/redo support.
Editor module providing undo/redo history GUI for the Dynamic Decals tool. Displays undo and redo stacks with selectable entries and bulk undo/redo support.
Module Info
| Key | Value |
|---|---|
| File | extensions/editor/dynamicDecals/history.lua |
| logTag | editor_dynamicDecals_history |
| Dependencies | editor_api_dynamicDecals |
Public API
| Function | Signature | Description |
|---|---|---|
M.registerEditorPreferences | (prefsRegistry) | Registers dynamicDecalsTool.history.sectionHeight preference (float, default 256) |
M.editorPreferenceValueChanged | (path, value) | Stub for preference change handling |
M.setup | (tool_in) | Initializes module, registers "History" section at priority 1045 |
Preferences
| Path | Type | Default | Description |
|---|---|---|---|
dynamicDecalsTool.history.sectionHeight | float | 256 | Height of the history section panel (range 64–1024) |
GUI Layout
The history section displays two columns:
- Undo Stack - selectable list with "Undo Selected" button
- Redo Stack - selectable list with "Redo Selected" button
- Delete All History - clears both stacks (cannot be undone)
Hovering an action entry shows a tooltip with the serialized action data (truncated to 20 lines, 100 chars wide).
Usage Example
-- History is auto-registered during setup
-- Access undo/redo programmatically via the API:
local api = extensions.editor_api_dynamicDecals
local history = api.getHistory()
history:undo(1) -- undo last action
history:redo(1) -- redo last undone action
history:clear() -- wipe all historySee Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals - Helper
Shared utility functions for the dynamic decals tool. Provides centered text rendering, image widgets with tooltips, icon tooltips, and string formatting helpers used across all dynamic decal modules.
Dynamic Decals Inspector
Editor module providing the Inspector panel for the Dynamic Decals tool. Displays and allows editing of all properties for selected layers and brushes. Supports multi-select with collapsible tree node