XBMC Community Forum
Custom category in home menu - 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: Back Row (/forumdisplay.php?fid=127)
+---- Thread: Custom category in home menu (/showthread.php?tid=98628)

Pages: 1 2 3


RE: Custom category in home menu - ZERO <ibis> - 2013-05-14 07:30

If you still want to have the sub menu for example you can change line 1854 of Home.xml to

Code:
<include condition="!Container(11).HasFocus(13)">TV Sub2</include>

Then in includes.xml find
Code:
<include name="TV Sub">

and after the /include add:
Code:
<include name="TV Sub2">
        <item id="1">
            <label>135</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>xbmc.activatewindow(videolibrary,tvshowgenres)</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_Genres)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="2">
            <label>31132</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>xbmc.activatewindow(videolibrary,tvshowtitles)</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_Titles)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="3">
            <label>31208</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>RunScript("script.tv.show.next.aired")</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_TV_Guide)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="4">
            <label>31133</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>xbmc.activatewindow(videolibrary,recentlyaddedepisodes)</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_Recently_Added)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="5">
            <label>344</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>xbmc.activatewindow(videolibrary,tvshowactors)</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_Actors)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="6">
            <label>20388</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>xbmc.activatewindow(videolibrary,tvshowstudios)</onclick>
            <visible>!Skin.HasSetting(TV_ShowsSub_Studios)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="7">
            <label>$INFO[Skin.String(TV Shows_Custom1_Label)]</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>$INFO[Skin.String(TV Shows_Custom1.path)]</onclick>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(11)</onclick>
            <visible>Skin.HasSetting(TV Shows_Custom1)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="8">
            <label>$INFO[Skin.String(TV Shows_Custom2_Label)]</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>$INFO[Skin.String(TV Shows_Custom2.path)]</onclick>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(11)</onclick>
            <visible>Skin.HasSetting(TV Shows_Custom2)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="9">
            <label>$INFO[Skin.String(TV Shows_Custom3_Label)]</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>$INFO[Skin.String(TV Shows_Custom3.path)]</onclick>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(11)</onclick>
            <visible>Skin.HasSetting(TV Shows_Custom3)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="10">
            <label>$INFO[Skin.String(TV Shows_Custom4_Label)]</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>$INFO[Skin.String(TV Shows_Custom4.path)]</onclick>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(11)</onclick>
            <visible>Skin.HasSetting(TV Shows_Custom4)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
        <item id="11">
            <label>$INFO[Skin.String(TV Shows_Custom5_Label)]</label>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(31)</onclick>
            <onclick>$INFO[Skin.String(TV Shows_Custom5.path)]</onclick>
            <onclick condition="!Skin.HasSetting(Wallpaper) + !Skin.HasSetting(Default Wallpaper)">SetFocus(11)</onclick>
            <visible>Skin.HasSetting(TV Shows_Custom5)</visible>
            <visible>Container(11).HasFocus(13)</visible>
        </item>
    </include>



RE: Custom category in home menu - ZERO <ibis> - 2013-05-14 07:42

To add recent added to your custom list as well simply for example:

Open IncludesRecentItems.xml and after line 724 (should be a
Code:
</control>

Add:
Code:
<control type="group">
                    <visible>!Skin.HasSetting(Recently Added TV)</visible>
                    <visible>!Skin.HasSetting(random_items TV)</visible>
                    <animation effect="fade" time="300">Visible</animation>
                    <animation effect="fade" time="300">Hidden</animation>
                    <animation effect="fade" time="300" delay="1000">WindowOpen</animation>
                    <animation effect="fade" time="200">WindowClose</animation>
                    <control type="group">
                        <posx>5</posx>
                        <posy>10</posy>
                        <visible>Control.HasFocus(11) | Control.HasFocus(8001)</visible>
                        <visible>Container(11).Hasfocus(13)</visible>
                        <include>HomeAnimate</include>
                        <control type="image">
                            <description>background</description>
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>525</width>
                            <height>206</height>
                            <texture diffuse="">List background3.png</texture>
                        </control>
                        <control type="label">
                            <description>Title label</description>
                            <posx>5</posx>
                            <posy>10</posy>
                            <height>20</height>
                            <width>515</width>
                            <label>$LOCALIZE[31107]</label>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>font14-caps</font>
                            <textcolor>white</textcolor>
                            <shadowcolor>000000</shadowcolor>
                            <selectedcolor>white</selectedcolor>
                        </control>
                        <control type="image">
                            <description>Main Icon</description>
                            <posx>30</posx>
                            <posy>40</posy>
                            <width>225</width>
                            <height>136</height>
                            <aspectratio scalediffuse="false">scale</aspectratio>
                            <fadetime>200</fadetime>
                            <texture background="true" diffuse="mask episode.png" fallback="defaultepisode.png">$INFO[Container(8001).ListItem.Thumb]</texture>
                            <animation effect="fade" time="300">Visible</animation>
                            <animation effect="fade" time="300">Hidden</animation>
                        </control>
                        <control type="list" id="8001">
                            <posx>260</posx>
                            <posy>40</posy>
                            <width>250</width>
                            <height>136</height>
                            <onleft>11</onleft>
                            <onright>11</onright>
                            <onup>8002</onup>
                            <ondown>8001</ondown>
                            <viewtype label="535">list</viewtype>
                            <pagecontrol>-</pagecontrol>
                            <scrolltime tween="sine" easing="inout">0</scrolltime>
                            <itemlayout height="34" width="250">
                                <control type="label">
                                    <posx>5</posx>
                                    <posy>4</posy>
                                    <width>235</width>
                                    <height>8</height>
                                    <font>font10-caps</font>
                                    <textcolor>grey</textcolor>
                                    <shadowcolor>00000000</shadowcolor>
                                    <selectedcolor>white</selectedcolor>
                                    <align>left</align>
                                    <aligny>center</aligny>
                                    <label>$INFO[ListItem.Label2]</label>
                                </control>
                                <control type="label">
                                    <posx>5</posx>
                                    <posy>15</posy>
                                    <width>235</width>
                                    <height>16</height>
                                    <font>font64-caps</font>
                                    <textcolor>white</textcolor>
                                    <shadowcolor>black</shadowcolor>
                                    <selectedcolor>white</selectedcolor>
                                    <align>left</align>
                                    <aligny>center</aligny>
                                    <label>$INFO[ListItem.Label]</label>
                                </control>
                            </itemlayout>
                            <focusedlayout height="34" width="250">
                                <control type="image">
                                    <posx>0</posx>
                                    <posy>0</posy>
                                    <width>245</width>
                                    <height>34</height>
                                    <texture>button1.png</texture>
                                    <colordiffuse>AAffffff</colordiffuse>
                                    <visible>Control.HasFocus(8001)</visible>
                                    <include>List Scrollrecent</include>
                                </control>
                                <control type="image">
                                    <posx>0</posx>
                                    <posy>0</posy>
                                    <width>245</width>
                                    <height>34</height>
                                    <texture>input-focus.png</texture>
                                    <colordiffuse>AAffffff</colordiffuse>
                                    <visible>Control.HasFocus(8001)</visible>
                                    <include>List Scrollrecent</include>
                                </control>
                                <control type="label">
                                    <posx>5</posx>
                                    <posy>4</posy>
                                    <width>235</width>
                                    <height>8</height>
                                    <font>font10-caps</font>
                                    <textcolor>grey</textcolor>
                                    <shadowcolor>00000000</shadowcolor>
                                    <selectedcolor>white</selectedcolor>
                                    <align>left</align>
                                    <aligny>center</aligny>
                                    <label>$INFO[ListItem.Label2]</label>
                                </control>
                                <control type="label">
                                    <posx>5</posx>
                                    <posy>15</posy>
                                    <width>235</width>
                                    <height>16</height>
                                    <font>font64-caps</font>
                                    <textcolor>white</textcolor>
                                    <shadowcolor>black</shadowcolor>
                                    <selectedcolor>white</selectedcolor>
                                    <align>left</align>
                                    <aligny>center</aligny>
                                    <label>$INFO[ListItem.Label]</label>
                                </control>
                            </focusedlayout>
                            <content>
                                <item id="1">
                                    <label>$INFO[Window.Property(RecentEpisode.1.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.1.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.1.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.1.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.1.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.1.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="2">
                                    <label>$INFO[Window.Property(RecentEpisode.2.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.2.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.2.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.2.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.2.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.2.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="3">
                                    <label>$INFO[Window.Property(RecentEpisode.3.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.3.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.3.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.3.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.3.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.3.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="4">
                                    <label>$INFO[Window.Property(RecentEpisode.4.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.4.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.4.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.4.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.4.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.4.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="5">
                                    <label>$INFO[Window.Property(RecentEpisode.5.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.5.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.5.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.5.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.5.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.5.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="6">
                                    <label>$INFO[Window.Property(RecentEpisode.6.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.6.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.6.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.6.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.6.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.6.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="7">
                                    <label>$INFO[Window.Property(RecentEpisode.7.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.7.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.7.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.7.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.7.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.7.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="8">
                                    <label>$INFO[Window.Property(RecentEpisode.8.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.8.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.8.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.8.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.8.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.8.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="9">
                                    <label>$INFO[Window.Property(RecentEpisode.9.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.9.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.9.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.9.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.9.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(RecentEpisode.9.Art(tvshow.fanart))]</property>
                                </item>
                                <item id="10">
                                    <label>$INFO[Window.Property(RecentEpisode.10.Title)]</label>
                                    <label2>$INFO[Window.Property(RecentEpisode.10.TVshowTitle)] - $INFO[Window.Property(RecentEpisode.10.EpisodeNo)]</label2>
                                    <onclick>$INFO[Window(Home).Property(RecentEpisode.10.Play)]</onclick>
                                    <icon>-</icon>
                                    <thumb>$INFO[Window.Property(RecentEpisode.10.Art(thumb))]</thumb>
                                    <property name="FanartImage">$INFO[Window.Property(LatestEpisode.10.Fanart)]</property>
                                </item>
                            </content>
                        </control>
                    </control>
                </control>