Dynamic Decals Layer Type: Fill
Editor module for the Fill layer type. Fill layers apply a single solid color across the entire vehicle surface. Provides a modal "Add Fill Layer" window, color palette mapping, inspector GUI, and a t
Editor module for the Fill layer type. Fill layers apply a single solid color across the entire vehicle surface. Provides a modal "Add Fill Layer" window, color palette mapping, inspector GUI, and a toolbar button.
Module Info
| Key | Value |
|---|---|
| File | extensions/editor/dynamicDecals/layerTypes/fill.lua |
| logTag | editor_dynamicDecals_layerTypes_fill |
| Dependencies | editor_api_dynamicDecals, editor_dynamicDecals_inspector, editor_dynamicDecals_docs, editor_dynamicDecals_colorHistory, editor_dynamicDecals_widgets |
Public API
| Function | Signature | Description |
|---|---|---|
M.openAddLayerWindow | () | Shows the "Add Fill Layer" modal window |
M.registerEditorPreferences | (prefsRegistry) | Stub |
M.editorPreferenceValueChanged | (path, value) | Stub |
M.setup | (tool_in) | Registers inspector GUI, toolbar item (priority 10), docs, and editor window (360×140) |
Inspector Properties
| Property | Type | Description |
|---|---|---|
colorPaletteMapId | int (combo) | Vehicle color palette mapping (0=custom, 1-3=vehicle) |
color | Point4F | Fill color (disabled when palette ≠ 0) |
GUI Features
- Add Fill Layer window - modal with color picker and OK/Cancel buttons
- Toolbar button -
format_color_fillicon to open the add window - Color history - colors are saved to history on layer creation
- Vehicle palette - color button preview showing the active vehicle palette color
Usage Example
local api = extensions.editor_api_dynamicDecals
local fill = extensions.editor_dynamicDecals_layerTypes_fill
-- Open the add fill layer dialog
fill.openAddLayerWindow()
-- Programmatic fill layer creation
api.setFillLayerColor(Point4F(1, 0, 0, 1))
api.addFillLayer()See Also
- Dynamic Decals Layer Type: Brush Stroke - Related reference
- Dynamic Decals Layer Type: Decal - Related reference
- Dynamic Decals Layer Type: Group - Related reference
- World Editor Guide - Guide
Dynamic Decals Layer Type: Decal
Editor module for the Decal layer type - the primary building block of the Dynamic Decals tool. Provides the "Decal Properties" section, inspector GUI, SDF introduction window, font character selectio
Dynamic Decals Layer Type: Group
Editor module for the Group layer type. Groups act as folders in the layer stack, allowing layers to be organized hierarchically. Disabling a group hides all its children.