by Markster » Fri Oct 22, 2010 9:56 am
I have a similar request that I hope somone can help with. I want to keep the Video menu logic intact, but move it away from being the default choice.
Instead, I want the default choice to be my own menu. I know that due to DMAOSD hard-coding, you can't change the default away from the $$Video menu.
So, what I want to do is:
1. Create a new menu
2. Copy the $$Video menu and all its children to the new menu (including images, etc.)
3. Rename the existing $$Video to "look" like my own menu, including images, etc.
I wrote the following code to do this and the only problem is that both menu's are acting the same now. The old menu acts\looks like a new menu which is good, but the new menu does not act like the "Old" $$Video menu. It is behaving like they are sharing the same handler?
Here is the code snippet:
// Lets create a new menu item - this will be renamed to look like the current Video menu
var topMenu = new Menu("Movies", "$$Video", "image/home_all_plus_icon_n.png", "image/home_all_plus_icon_f.png", true);
Menu.Top.addChild(topMenu);
Menu.Top.Movies.handler = function(){
Menu.Top["$$Video"].handler(); // This should define the Movie Handler to point to the same function as the Vide Handler does (default one) - i.e. copied\not shared
};
Menu.Top.Movies.image = Menu.Top["$$Video"].image
Menu.Top.Movies.focusedImage = Menu.Top["$$Video"].focusedImage
// Change existing Video menu to look\behave like our new one
Menu.Top["$$Video"].handler = function(){
Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].handler() // This should change the Video Handler to now be something new
};
Menu.Top["$$Video"].title = "MovieSheets+";
Menu.Top["$$Video"].image = "image/home_all_plus_icon_n.png";
Menu.Top["$$Video"].focusedImage = "image/home_all_plus_icon_f.png";
If you enjoy MovieSheets+, toward the next version.
For specific versions and FAQ's, visit the MovieSheets+ website