API ReferenceGE Extensionseditor
Editor Icon Overview
Browsable grid of all available editor icons. Allows filtering by name and copying icon keys to clipboard. Can also regenerate the icon atlas.
Browsable grid of all available editor icons. Allows filtering by name and copying icon keys to clipboard. Can also regenerate the icon atlas.
Module Overview
| Aspect | Detail |
|---|---|
| File | extensions/editor/iconOverview.lua |
| Returns | M table |
| Window | iconOverview - "Available Icons" |
| Requires | ui/imguiUtils |
Public Functions
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | () | Sorts icon keys, registers window (600×600), adds Debug menu item |
M.onEditorActivated | () | Called on editor activation (no-op) |
M.onEditorGui | () | Renders the icon overview window with menu bar and icon grid |
M.onExtensionLoaded | () | Called on extension load (no-op) |
M.open | () | Shows the icon overview window |
M.drawContent | (selectedFun) | Renders the icon grid with search filter. selectedFun(iconKey) called on click |
Features
| Feature | Description |
|---|---|
| Search filter | Text filter narrows displayed icons by name |
| Auto-layout | Icons flow in rows based on available window width |
| Click to copy | Clicking an icon copies its key to clipboard |
| Atlas rebuild | Menu bar option "Re-create icon atlas" regenerates and reloads icons |
| Tooltips | Each icon shows its key name on hover |
Usage Example
-- Open the icon browser
editor_iconOverview.open()
-- Embed icon grid in another window with custom click handler
editor_iconOverview.drawContent(function(iconKey)
print("Selected icon: " .. iconKey)
end)
-- Access icons by key
editor.uiIconImageButton(editor.icons.save, imgui.ImVec2(32,32))See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Editor Headless Editor Test
Demonstrates the headless editor mode API - a mode that hides standard editor chrome (menus, toolbars) and lets a tool provide its own UI. Includes a test tool window and custom toolbar.
Editor ImGui C Demo
Wraps the built-in ImGui Demo Window as an editor debug tool, accessible via the editor's Debug menu.