Dynamic Decals Notification
Editor module providing an in-tool notification system for the Dynamic Decals tool. Displays categorized notifications with severity levels (log, warning, error) in a dedicated window.
Editor module providing an in-tool notification system for the Dynamic Decals tool. Displays categorized notifications with severity levels (log, warning, error) in a dedicated window.
Module Info
| Key | Value |
|---|---|
| File | extensions/editor/dynamicDecals/notification.lua |
| logTag | editor_dynamicDecals_notification |
| Dependencies | editor_api_dynamicDecals |
Public API
| Function | Signature | Description |
|---|---|---|
M.add | (section, title, msg, level?) | Adds a notification. msg can be a string or a function rendering ImGui widgets. level defaults to levels.log |
M.levels | table | Severity levels: { log = 1, warning = 2, error = 3 } |
M.onGui | () | Renders the notifications window |
M.registerEditorPreferences | (prefsRegistry) | Stub |
M.editorPreferenceValueChanged | (path, value) | Stub |
M.setup | (tool_in) | Registers onEditorGui function and editor window (450×650) |
Notification Levels
| Level | Value | Color |
|---|---|---|
log | 1 | White |
warning | 2 | Yellow (#FFCC00) |
error | 3 | Red (#FF0000) |
GUI Features
- Notifications grouped by section with collapsible headers
- Individual delete buttons per notification
- "Remove all" button to clear everything
- "Close" button to hide the window
- Auto-opens when new notifications are added (
dirtyflag) - Supports both string messages and custom ImGui render functions
Usage Example
local notification = extensions.editor_dynamicDecals_notification
-- Simple text notification
notification.add("Load/Save", "Save Complete", "Project saved successfully.", notification.levels.log)
-- Warning with details
notification.add("Textures", "Missing Files", "2 textures not found.", notification.levels.warning)
-- Custom GUI notification
notification.add("Export", "Export Result", function()
im.TextUnformatted("Export completed with warnings.")
im.BulletText("Missing normal map")
end, notification.levels.warning)See Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals News
Editor module displaying the Vehicle Livery Creator welcome screen and version changelog. Shows on first launch or when a new version is detected, with a "do not show again" option.
Dynamic Decals Selection
Editor module managing layer selection and gizmo integration for the Dynamic Decals tool. Handles selecting/deselecting layers, configuring the axis gizmo for translate/rotate/scale operations based o