Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: Marsu42 on August 26, 2013, 02:36:05 PM

Title: Nested/2nd level submenus?
Post by: Marsu42 on August 26, 2013, 02:36:05 PM
Is it possible to nest submenus, or is this a planned feature?

Some menus I have in mind with a lot of choices, for example for choosing hotkey functions, simply don't seem appropriately placed in the main menu hierarchy, and having submenu-submenus would allow splitting up large item lists into more logical pieces.
Title: Re: Nested/2nd level submenus?
Post by: a1ex on August 26, 2013, 02:39:35 PM
Right now it's not possible, and to implement it, it requires quite a bit of hacking in menu.c. It's not quite trivial, but not impossible either.

File manager rebuilds the entire submenu when navigating subfolders.
Title: Re: Nested/2nd level submenus?
Post by: Marsu42 on August 26, 2013, 02:50:15 PM
Quote from: a1ex on August 26, 2013, 02:39:35 PM
Right now it's not possible, and to implement it, it requires quite a bit of hacking in menu.c. It's not quite trivial, but not impossible either.

If so, it'd be great if you'd sooner or later came around to it, imho it's a useful addition and it's surprising that just adding another child menu entry currently refuses to work.
Title: Re: Nested/2nd level submenus?
Post by: a1ex on August 26, 2013, 03:40:03 PM
Yeah, the front-end data structure is fine, just the backend doesn't know how to handle it.