2023-01-28, 13:50
Hi
It is possible to create a custom home menu button and load submenu options from a Library Node Editor's parent node? (the same of 6 first nodes of movies home button but with a custom home menu)
I have created a parent node called 'SFMovies' and some nodes inside it.
I have modified Home.xml to add a custom home menu button adding this code:
and this code:
Then, i modified IncludesHomeMenuItems.xml copying the home sub menu movies and modifying to match the custom menu item like this:
Now i have a new custom menu item called 'SFMovies' and it has the same submenus of movies home button, but i don't know how can I link this custom item to show like submenus the nodes of a parent node from Library Node Editor.
Regards.
It is possible to create a custom home menu button and load submenu options from a Library Node Editor's parent node? (the same of 6 first nodes of movies home button but with a custom home menu)
I have created a parent node called 'SFMovies' and some nodes inside it.
I have modified Home.xml to add a custom home menu button adding this code:
xml:
<item id="90">
<label>SFMovies</label>
<onclick>ActivateWindow(Videos,MovieTitles,return)</onclick>
<icon></icon>
<thumb></thumb>
</item>
and this code:
xml:
<control type="grouplist" id="9930">
<include>HomeSubMenuCommonValues</include>
<onleft>9930</onleft>
<onright>9930</onright>
<visible>Container(9000).HasFocus(90)</visible>
<include>HomeSubMenuSFMovies</include> <!-- Buttons for the grouplist -->
</control>
Then, i modified IncludesHomeMenuItems.xml copying the home sub menu movies and modifying to match the custom menu item like this:
xml:
<include name="HomeSubMenuSFMovies">
<control type="image" id="99161">
<width>35</width>
<height>35</height>
<texture border="0,0,0,3" flipx="true">HomeSubEnd.png</texture>
</control>
<control type="button" id="99162">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(0).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(0).FileNameAndPath],return)</onclick>
</control>
<control type="button" id="99163">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(1).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(1).FileNameAndPath],return)</onclick>
<visible>!String.IsEmpty(Container(90160).ListItemNoWrap(1).Label)</visible>
</control>
<control type="button" id="99164">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(2).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(2).FileNameAndPath],return)</onclick>
<visible>!String.IsEmpty(Container(90160).ListItemNoWrap(2).Label)</visible>
</control>
<control type="button" id="99165">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(3).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(3).FileNameAndPath],return)</onclick>
<visible>!String.IsEmpty(Container(90160).ListItemNoWrap(3).Label)</visible>
</control>
<control type="button" id="99166">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(4).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(4).FileNameAndPath],return)</onclick>
<visible>!String.IsEmpty(Container(90160).ListItemNoWrap(4).Label)</visible>
</control>
<control type="button" id="99167">
<include>ButtonHomeSubCommonValues</include>
<label>$INFO[Container(90160).ListItemNoWrap(5).Label]</label>
<onclick>ActivateWindow(Videos,$INFO[Container(90160).ListItemNoWrap(5).FileNameAndPath],return)</onclick>
<visible>!String.IsEmpty(Container(90160).ListItemNoWrap(5).Label)</visible>
</control>
<control type="image" id="99168">
<width>35</width>
<height>35</height>
<texture border="0,0,0,3">HomeSubEnd.png</texture>
</control>
</include>
Now i have a new custom menu item called 'SFMovies' and it has the same submenus of movies home button, but i don't know how can I link this custom item to show like submenus the nodes of a parent node from Library Node Editor.
Regards.