Module milk_msg_ini

Module milk_msg_ini 

Source
Expand description

Parser for MILK_MSG.INI — MilkDrop’s preset-side text overlay file.

MilkDrop’s text overlays come in two flavours: ephemeral pop-ups triggered by T (cycle to next) or Y## (load a specific slot) and “burned” messages that render once into the background. The INI lets the user pre-author up to 100 named messages, each with its own typography, colour, position and animation parameters; the engine drives the lifecycle.

File shape:

[message01]
text=Now playing — Aphex Twin
font=2
size=24
x=0.5
y=0.5
r=255
g=128
b=0
bold=0
italic=0
fadein=0.5
fadeout=0.5
duration=3.0
burn=0

Defaults mirror MD2’s hard-coded fallbacks: white text (255/255/ 255), regular weight, centred (x=0.5, y=0.5), 1 s fade-in / fade-out, 3 s sustain, font slot 0 at 32 px, no burn.

Structs§

MessageDef
One pre-authored text overlay.

Functions§

parse_bool 🔒
parse_milk_msg_ini
Parse a MILK_MSG.INI body. Sections with an empty text= are silently dropped (matches MD2’s tolerant load). Returns the parsed messages sorted by slot.