sync @ 599, separate cubescript stuff of menu.lua to menu.cfg