Author Topic: [DONE] Add option to menu_add to add children to existing main menu options.  (Read 1722 times)

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
In modules, the user can add entirely new menu points with menu_add - but imho sometimes a small enhancement would be better placed under an existing menu point from the ml core. I suggest to add this to the function, so you could write something like this:

Code: [Select]
menu_add_children("Prefs", "Misc key settings", my_menu_children, COUNT(my_menu_children));

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Add option to menu_add to add children to existing main menu options.
« Reply #1 on: September 08, 2013, 11:31:41 AM »
This should already work:

menu_add("Misc key settings", my_menu_children, COUNT(my_menu_children));

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: Add option to menu_add to add children to existing main menu options.
« Reply #2 on: September 08, 2013, 09:46:30 PM »
menu_add("Misc key settings", my_menu_children, COUNT(my_menu_children));

Ok, never tried that, thanks!