FFI Pointer Leak Test
Disabled test extension for verifying FFI pointer types (bool, float, float2, string) and ImGui image rendering. Not active in normal builds.
Disabled test extension for verifying FFI pointer types (bool, float, float2, string) and ImGui image rendering. Not active in normal builds.
Overview
editor_ffiptrleaktest is a development-only test harness that exercises various FFI pointer types (FFIBool, FFIFloat, FFIFloat2, FFIString) through ImGui widgets. The module immediately returns an empty M table (do return M end), so it is disabled by default. When enabled, it provides checkbox, slider, text input, and image display tests.
Module State
| Field | Type | Description |
|---|---|---|
demoWindowOpen | FFIBool | Controls ImGui demo window visibility |
boolTest | FFIBool | Checkbox test value |
floatTest | FFIFloat | Single float slider test |
float2Test | FFIFloat2 | Two-float slider test |
stringTest | FFIString | Text input test (128 chars) |
Public Functions
| Function | Description |
|---|---|
M.onEditorInitialized() | Registers window and loads test texture |
M.onEditorGui() | Draws test widgets (checkbox, sliders, text, image) |
Notes
- The module is disabled at the top:
do return M end - To enable, remove that line and uncomment the hook assignments
- Uses test texture:
/art/dynamicDecals/textures/00_color_palette_test.png
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Extensions Editor
Editor window for enabling and disabling editor extensions. Allows safe-mode recovery when an extension causes problems.
File Dialog
Editor file dialog providing Open/Save functionality with directory browsing, file preview, favourites, smart search, column customization, and recent directories.