![]() |
|
Adding my own menu item - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Skin Help and Support (/forumdisplay.php?fid=67) +---- Forum: Aeon (/forumdisplay.php?fid=68) +---- Thread: Adding my own menu item (/showthread.php?tid=49538) |
Adding my own menu item - tjep - 2009-04-24 16:40 I already posted this question, and found that I could re-name an existing string... however, since then I have "gotten smarter " and I now see that it was not the correct way to go about it...What I would like to do is this: I have a number of child-programmes recorded from my television set - these I would like to be able to display in their own menu on the "menu band" - then name I am after is something like "Children". I would like the look and feel to be similar to "TV shows" if possible. So far I have: Added a new entry to Includes_MainMenu.xml based upon a copy of TV shows - and made an ID to make it "translatable" using Strings.xml. When I launch I get my new menu - but since it is a copy all content is TV shows - I really would like it to be the content of my "Children" folder... Anyone got any suggesitons or hints - is this possible - at all? - mug2k - 2009-04-24 17:54 Hi How do you rename an existing menu item ?.Also do you know if you can change the locations of the menu items too ?. Sorry for the hijack
- tjep - 2009-04-24 18:03 mug2k Wrote:Hi Go to"Language" under Aeon skin - find the appropriate language - just edit the name - eg. you can change "Games" to "Whatever" - not sure though that this is the correct way - hence this post... - ecazi - 2009-04-24 18:05 tjep Wrote:I already posted this question, and found that I could re-name an existing string... however, since then I have "gotten smarter You can try adding this line under your Children's entry <onclick>XBMC.ActivateWindow(MyVideoFiles,path to Children's folder)</onclick> Also, you should make sure you've also added a "Children" entry under the virtual menu section of the Includes_MainMenu.xml or it might throw off the layout when you display the Children's section. - tjep - 2009-04-24 18:59 ecazi Wrote:You can try adding this line under your Children's entry That sort of did the trick - however, whenever I try and navigate back from "Children" to the main menu band I am left with browsing through the path that I have added for the direct link to my "Children" videos... any thoughts on how to avoid this? Along the same lines - I really would also like to be able to use custom backdrops for just this new menu item - and not share it with TV shows...? - ecazi - 2009-04-24 20:23 Try adding a return and see if that helps Code: <onclick>XBMC.ActivateWindow(MyVideoFiles,path to Children's folder,return)</onclick>As for the backdrops, I'm limited because I'm at work and don't have xbmc installed but maybe someone else can help. - tjep - 2009-04-25 06:59 Thanks again for the tip- I now have an <onclick> that looks like this: PHP Code: <item id="28">- however still no luck in getting directly back to the menu... On the whole - backdrop topic, I have: - Added an entry to the Vitual Menu entry Added below entries to Includes_Backgrounds.xml PHP Code: <control type="multiimage">Added to custom2_AeonCustomisation: PHP Code: <onclick>Skin.Reset(CustomChildren)</onclick>However, so far I am having no luck in getting a custom backdrop to Children... any help from anyone. Am I looking in the right direction? - When/if I suceed I will write a how-to describing the solution - I can see others have struggled with this before... Return issue - JudoSquash - 2009-04-29 01:51 I think I figured out the return issue. I have added a "TV Series" Menu to my Main Menu using this code. In "Includes_Main_Menu.xml" you will find three different categories for the "item id"'s: (A) <include name="MainMenu"> (B) <include name="VirtualMainMenu"> © <include name="VirtualMainMenuOptions"> I have added the following strings for these categories: ** Remember to change the "\\XX\Media\TV Series" to the directory you wish to use. Paste into category (A) <item id="28"> <description>TV Series</description> <label>33001</label> <onclick>Skin.SetBool(videotv)</onclick> <onclick>Skin.Reset(videomovies)</onclick> <onclick>XBMC.ActivateWindow(MyVideoLibrary,\\XX\Media\TV Series)</onclick> <visible>!Skin.HasSetting(notvshows)</visible> </item> Paste into category (B) <item id="28"> <description>TV Series</description> <label>33001</label> <onclick>Skin.SetString(customsingle,CustomTV)</onclick> <onclick>Skin.SetString(customslideshow,\\XX\Media\TV Series)</onclick> <onclick>SetFocus(92)</onclick> <visible>!Skin.HasSetting(notvshows)</visible> </item> Paste into category © <item id="28"> <description>TV Series</description> <label>31014</label> <onclick>Skin.SetBool(notvshows)</onclick> <visible>!Skin.HasSetting(notvshows)</visible> </item> <item id="28"> <description>TV Series</description> <label2>31014</label2> <onclick>Skin.Reset(notvshows)</onclick> <visible>Skin.HasSetting(notvshows)</visible> </item> ********* This set up should return you to the main menu, however... I am unable to get a full context menu in the newly created menu category. I am unable to scan for new content because it's not in my context menu options. I don't if something is entered incorrectly in the code, or if I am missing a string altogether. I hope this helps you out, and if anyone knows how to fix the context menu problem, please post to let us know. Thanks. - tjep - 2009-04-29 08:12 This is great work! Thanks for your effort - I will test this as soon as I get home... - onesojourner - 2009-04-29 20:54 I am interested in this too. |