iw7-mod/data/cdata/ui_scripts/MainMenu/CPMainMenu.lua
WantedDV 010bdb41aa
combat training (#299)
* combat training

* Disable bot & gamesetting customization menus - feature not yet available.

- cleanup unused code
2024-10-02 21:12:32 +03:00

12 lines
287 B
Lua

local CPMainMenu_original = MenuBuilder.m_types["CPMainMenu"]
function CPMainMenuStub(menu, controller)
ret = CPMainMenu_original(menu, controller)
-- play music immediately
Engine.PlayMusic(CoD.Music.MainCPMusic)
return ret
end
MenuBuilder.m_types["CPMainMenu"] = CPMainMenuStub