fix: support multiple bind_default_trigger calls

Previously trigger_action_name + trigger_widget_id were module-local
scalars, so the second bind_default_trigger call overwrote the first
(and reused the action name 'panel_toggle' so lib-core.input's binding
was also clobbered). Switched to a triggers array; each binding gets
a unique input action 'panel_toggle_<widget_id>' so multiple widgets
can be toggled by their own keys independently.
This commit is contained in:
Calic
2026-06-14 02:22:51 +02:00
parent a445b895ee
commit b7b0ecb9f4
3 changed files with 17 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ handles input dispatch (mouse click + wheel, edge-detected), renders a
titled panel overlay, and supports a context-menu layer. Designed as the
glue layer between game modules and the engine render/input surfaces.
**Version:** 0.1.0
**Version:** 0.1.1
**Lib-ID:** lib-core.panel
**Requires:** engine.render.*, engine.input.*, lib-core.input (lazy, for default-trigger)
**Tags:** panel, overlay, ui, input, context-menu