Editor Log Helper
Displays live log statistics (error and warning counts) in the editor's main menu bar. Uses `Lua:getDevLogStats()` to fetch counters.
Displays live log statistics (error and warning counts) in the editor's main menu bar. Uses Lua:getDevLogStats() to fetch counters.
Module Overview
| Aspect | Detail |
|---|---|
| File | extensions/editor/logHelper.lua |
| Returns | M table |
| Role | Menu bar log statistics display |
Public Functions
| Function | Signature | Description |
|---|---|---|
M.onEditorMainMenuBar | (windowSize) | Renders error/warning counts in the menu bar with color coding |
Display Format
| Condition | Color | Text |
|---|---|---|
| Errors > 0 | Red (1,0,0,1) | "3E " |
| Warnings > 0 | Yellow (1,1,0,1) | "5W" |
| Label | Gray (0.7,0.7,0.7,1) | "LogStats: " |
Usage Context
-- Called automatically by the editor main menu bar system
-- Requires Lua.getDevLogStats to be available
local t = Lua:getDevLogStats()
-- t.errors = number of logged errors
-- t.warnings = number of logged warningsNote: The comment in source indicates this may not be fully functional (
--TODO: not working anymore) regarding positioning viaim.SameLine.
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Editor Logger
Minimal logger extension stub. Currently a no-op placeholder that registers the `onEditorGui` and `onExtensionLoaded` hooks without implementation.
Editor Main
Core editor bootstrap module. Sets up the global `editor` object, manages extension loading, preferences, edit modes, window registration, selection system, history/undo, and the editor activate/deact