Calic f2b2a8859b refactor(launcher): remove dead button-list helpers after panel refactor
draw_module_row, tooltip_for, and apply_update were the v0.2.0
button-list rendering helpers. The master-detail panel refactor in
41b28ff moved rendering into panels/list.lua + panels/detail.lua,
leaving these three functions with no call sites. Also drops the
now-unused icons import and ICON_GAP/ICON_STRIP_W constants that only
the deleted helpers referenced; FONT_BUTTON, COLOR_DIM and COLOR_MODAL
stay because the quit-confirm modal still uses them.

Verified by grep that none of the removed symbols have remaining
references in init.lua or sibling files. CI boot is clean:
init ok, modules=6 + BOOTING -> RUNNING -> SHUTTING_DOWN, no FATAL.

init.lua drops 443 -> 302 lines; function count drops 14 -> 11.
2026-06-11 01:52:51 +02:00

lib-management.launcher

Module-discovery and module-switch entry. Lists available modules from the configured modules-dir and launches the selected one via engine.switch_module. Typical entry point: --module=lib-management.launcher boots into a chooser screen rather than directly into a game.

Version: 0.1.0
Module-ID: lib-management.launcher
Requires: lib-core.input v>=0.4.0
Tags: launcher, menu, system, navigation

Topology

graph LR
  this["lib-management.launcher"]
  lib_core_input["lib-core.input"]
  this --> lib_core_input
  engine["engine.*"]
  this --> engine

Controls

  • Mouse-Left: Click a module-button to launch it; click confirm/cancel in the quit-modal.
  • Enter: Confirm quit when the modal is open.
  • Escape: Open the quit-modal from the chooser; cancel the modal when open.

Demonstrates

  • engine.module.list discovery of installed modules from the modules-dir.
  • engine.switch_module runtime swap from the launcher to the selected module.
  • Simple text + rect rendering via engine.render for the chooser UI.
  • Input-action binding through lib-core.input (ui_click, ui_back, ui_confirm).
  • Modal-state FSM (chooser <-> quit-modal) factored into a sibling fsm.lua loaded via engine.module.dir_of.

References

  • meta/docs/architecture/module-lifecycle.md
  • meta/docs/architecture/host-app.md
  • meta/docs/superpowers/specs/2026-05-14-launcher-design.md
Description
P.3.4 UI launcher module � module picker + quit-confirm dialog
Readme 185 KiB
Languages
Lua 99.2%
Shell 0.8%