Lua prefab scripting: tracking issue for the language, editor UI, and tooling #38

Open
opened 2026-08-21 19:00:12 +00:00 by ImBenji · 0 comments
Owner

Umbrella issue for prefab Lua scripting work - the language itself (declareParams, param types, the CanvasObject/Lines/CustomFonts API - see docs/users/prefab_scripting_guide.md), the in-app editor UI for attaching/editing a script on a prefab (not wired up yet), and general scripting tooling (autocomplete, error surfacing, etc). Use this instead of opening a new top-level issue for each language/tooling addition - comment here or spin off a sub-issue when something concrete needs its own tracking.

First item landed under this: added a "select" param type to declareParams - a string param constrained to a fixed set of options, rendered as a dropdown in the properties panel instead of a free text field. Implemented across lib/models/prefab/param_schema.dart (SelectParamType), lib/scripting/lua_engine.dart (declareParams parsing), and both properties panels (lib/pages/professional/widgets/prefab_params_editor.dart, object_properties_panel.dart), with tests and a docs update.

Umbrella issue for prefab Lua scripting work - the language itself (declareParams, param types, the CanvasObject/Lines/CustomFonts API - see docs/users/prefab_scripting_guide.md), the in-app editor UI for attaching/editing a script on a prefab (not wired up yet), and general scripting tooling (autocomplete, error surfacing, etc). Use this instead of opening a new top-level issue for each language/tooling addition - comment here or spin off a sub-issue when something concrete needs its own tracking. First item landed under this: added a "select" param type to declareParams - a string param constrained to a fixed set of options, rendered as a dropdown in the properties panel instead of a free text field. Implemented across lib/models/prefab/param_schema.dart (SelectParamType), lib/scripting/lua_engine.dart (declareParams parsing), and both properties panels (lib/pages/professional/widgets/prefab_params_editor.dart, object_properties_panel.dart), with tests and a docs update.
ImBenji added the enhancementarea:ui/ux labels 2026-08-21 19:00:13 +00:00
ImBenji added this to the Arcs & Angles project 2026-08-21 19:00:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: IMBENJI.NET/Metro-Map-Maker#38