Manages background music playback on the main menu and provides extensive ModOptions. Designed to be a drop-in replacement for musical-menu-framework with legacy compatability layers and bug fixes. Sporting Fisher-Yates style playback shuffle and the KMPlayer UI for manual track selection. Plus fade-in/fade-out settings and volume controller.
Note: Modders ensure the lua music table is located in media/lua/shared and follows the conventional layout.
require "AA_KMM_API"
local modId = "YOUR_MOD_ID"
local songs = {
"Track1",
"Track2",
"Track3",
"Track4",
}
for _, v in pairs(songs) do
KMM_AddMusic(v, modId)
end
Workshop ID: 3692013368
Mod ID: KMM