diff options
| author | Rudy Dellomas III <dther@dther.xyz> | 2024-04-21 20:25:40 +1000 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-04-29 08:36:44 -0600 |
| commit | 596ec20dd81fc4a48a528bfed9e241343ee03eaa (patch) | |
| tree | 9ece9e4212b1d770b33f8fd8317ff13d079f91eb /vis.c | |
| parent | 62ccfe59ae63858dc5c21039e907a9277134d171 (diff) | |
| download | vis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.gz vis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.xz | |
Emit an event (ui_draw) immediately before drawing the screen
This allows better control over styling, as well as potential for
entirely new UI elements implemented entirely using the Lua API.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -105,6 +105,10 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { if (vis->event->term_csi) vis->event->term_csi(vis, va_arg(ap, const long *)); break; + case VIS_EVENT_UI_DRAW: + if (vis->event->ui_draw) + vis->event->ui_draw(vis); + break; } va_end(ap); |
