Module messages

Module messages 

Source
Expand description

Text overlay (MILK_MSG.INI) state and lifecycle.

Holds the parsed message definitions (MessageDef) and the active list with per-instance lifecycle state. Each tick computes the current fade alpha for every active message and produces a list of MessageRenderInstances the renderer turns into glyph quads.

Trigger surface (keybinds wired in the GUI layer, ยง15):

  • T โ€” cycle through the loaded message slots in INI order.
  • Ctrl+Y โ€” clear every active message immediately.

Also exposes a one-shot transient API (show_transient) used by the MPRIS auto-title path: when MPRIS reports a new track title, the engine spawns a temporary message with a synthesised default style (centred, fade-in / sustain / fade-out).

Structsยง

ActiveMessage ๐Ÿ”’
One live message instance.
MessageManager
Message system: definitions + active instances + cycle cursor.
MessageRenderInstance
Per-frame snapshot of one active message, fed to the renderer. Mirrors a tiny subset of MessageDef โ€” the renderer only needs positioning + size + colour + the current fade alpha.