v15 Create custom submenu for custom home button? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125) +---- Thread: v15 Create custom submenu for custom home button? (/showthread.php?tid=249842) |
Create custom submenu for custom home button? - gehang - 2015-11-28 I'm using the stock Confluence skin, and doing some customization. I've created a custom button between Videos and TV Shows by editing the home.xml and adding a link to the VideoSets: <item id="19"> <label>Sets</label> <onclick>ActivateWindow(Videos,MovieSets,return)</onclick> <icon>-</icon> <thumb>-</thumb> </item> Under that button I'd like to add a submenu, I've looked through the includeshomemenuitems.xml but I'm not sure how to add a new subarea. Do I just add an include with the name of my label like so? <include name="HomeSubMenuSets"> <control type="image" id="342323"> <width>35</width> <height>35</height> <texture border="0,0,0,3" flipx="true">HomeSubEnd.png</texture> </control> <control type="button" id="51923"> <include>ButtonHomeSubCommonValues</include> <label>Tags</label> <onclick>ActivateWindow(Videos,MovieTags,return)</onclick> </control> <control type="image" id="90168"> <width>35</width> <height>35</height> <texture border="0,0,0,3">HomeSubEnd.png</texture> </control> </include> Thanks! RE: Create custom submenu for custom home button? - gehang - 2015-11-28 Solved: I needed to also add another section to the home.xml linking the new submenu to the new home menu item: In home.xml <control type="grouplist" id="90109"> <include>HomeSubMenuCommonValues</include> <onleft>90109</onleft> <onright>90109</onright> <!-- Buttons for the grouplist --> <visible>Container(9000).HasFocus(999994)</visible> <include>HomeSubMenuSets</include> </control> The <visible>Container(9000).HasFocus(19)</visible> is what links the submenu to my new button by the id (19 in this case) |