In revision 2777 (trunk only) I've added an interactive editor for the User Menu to eventually replace the current clunky method of editing the menu.
To use the editor select 'User Menu Edit' from the Menu Settings menu.
This will start by displaying the User Menu with the title bar in red, and without the first 'Main Menu' entry.
Controls are:
- SET - invoke popup menu (see below)
- LEFT - move current item up
- RIGHT - move current item down
- ERASE - delete current item (with prompt)
- MENU - exit & save user menu
Pressing SET opens a popup menu with
two three options:
- 'Add & Remove Menu items'
- 'Add script to User Menu'
- 'Add module to User Menu'
Selecting 'Add & Remove Menu items' will open the Main CHDK menu (again with the title in red).
The menu display excludes values for menu items (right hand side), separators, script parameters and the User Menu entry. Entries that are already in the User Menu are shown in green.
Controls here are:
- SET - enter sub menu, or go back a menu (on the Back entry)
- DISP - go back to previous menu
- MENU - exit back to previous edit state
- LEFT or ERASE - remove item from User Menu if it is in the menu already (with prompt)
- RIGHT - add item to User Menu if not there already (with prompt)
Selecting 'Add script to User Menu' opens the file browser in the scripts folder.
Selecting .bas or .lua file and pressing SET will add the script to the User Menu.
Selecting 'Add module to User Menu' opens the file browser in the modules folder.
Selecting a .flt file and pressing SET will add the module to the User Menu.
Testing and feedback welcome.
Phil.
Edit: Revision 2778 adds the ability to have simple modules in the User Menu.
Modules that don't appear in the other menus (e.g. CPU INFO) can be added to the user menu for quick access. Probably of most use when developing a new module.
Instructions above updated.