API ReferenceGE ExtensionseditordynamicDecalslayerTypes
Dynamic Decals Layer Type: Texture Fill
Editor module for the Texture Fill layer type. Applies a repeating texture pattern across the entire vehicle surface with configurable scale, offset, color, and palette mapping.
Editor module for the Texture Fill layer type. Applies a repeating texture pattern across the entire vehicle surface with configurable scale, offset, color, and palette mapping.
Module Info
| Key | Value |
|---|---|
| File | extensions/editor/dynamicDecals/layerTypes/textureFill.lua |
| logTag | editor_dynamicDecals_layerTypes_textureFill |
| Dependencies | editor_api_dynamicDecals, editor_dynamicDecals_helper, editor_dynamicDecals_inspector, editor_dynamicDecals_docs, editor_dynamicDecals_widgets |
Public API
| Function | Signature | Description |
|---|---|---|
M.openAddLayerWindow | () | Shows the "Add Texture Fill Layer" modal window |
M.registerEditorPreferences | (prefsRegistry) | Stub |
M.editorPreferenceValueChanged | (path, value) | Stub |
M.setup | (tool_in) | Registers inspector GUI, toolbar item (priority 20), editor GUI, docs, and window (450×310) |
Inspector Properties
| Property | Type | Description |
|---|---|---|
fillTexturePath | Texture | Source texture file for the fill pattern |
colorPaletteMapId | int (combo) | Vehicle color palette (0=custom, 1-3=vehicle) |
color | Point4F | Tint color (disabled when palette ≠ 0) |
scale | Point2F | Texture tiling scale |
offset | Point2F | Texture UV offset |
Usage Example
local api = extensions.editor_api_dynamicDecals
local texFill = extensions.editor_dynamicDecals_layerTypes_textureFill
-- Open the add dialog
texFill.openAddLayerWindow()
-- Programmatic creation
api.setFillTexturePath("/art/dynamicDecals/textures/carbon_fiber.png")
api.setTextureFillLayerScale(Point2F(2, 2))
api.addTextureFillLayer()See Also
- Dynamic Decals Layer Type: Brush Stroke - Related reference
- Dynamic Decals Layer Type: Decal - Related reference
- Dynamic Decals Layer Type: Fill - Related reference
- World Editor Guide - Guide
Dynamic Decals Layer Type: Path
Editor module for the Path layer type. Path layers place decals along a curve defined by control points, with linear or Bézier interpolation. Supports text rendering along paths using font files, orie
Flowgraph Base Window
Base class for all flowgraph editor windows, providing open/close/toggle, focus tracking, and serialization interface.