[MOD] Adding Plugins to Home for LiveTV
#1
OK i'm playing around with confluence as part of learning to skin and have managed to get selectable plugins to display on the home screen under LiveTV in Frodo Beta 1.

Image

Image


I thought i'd document the changes here so others can do this if they so wish.

Preamble
I'm using notepad++ to make these changes and i must stress that i am new to this so there could be mistakes. If you follow this tutorial PLEASE PLEASE PLEASE backup before doing so. Also i'm not localizing here as I only speak English, you can hard code your language specific text yourself (Just replace mine) or add a label number and localize yourself.

OK we are going to edit the following files IncludesHomeMenuItems.xml, Home.xml and SkinSettings.xml

I'll provide what were current line numbers in notepad++ for where i inserted the modifications but i'll also try and list a defined search string so you can be assured your in the right place. I prefer this approach to hard coded xmls as frodo is constantly updating and you may find the need to use a more recent version of confluence in the future.

Modifications

includesHomeMenuItems.xml

on or around lines 318 find:

Code:
        <control type="image" id="90146">
            <width>35</width>
            <height>35</height>
            <texture border="0,0,0,3">HomeSubEnd.png</texture>
        </control>
    </include>

and directly underneath add the following

Code:
    <!-- Live TV PLugins Addon -->
        <include name="HomeAddonItemsLiveTV">
        <item>
            <label>$INFO[system.addontitle(Skin.String(HomeLiveTVButton1))]</label>
            <onclick>RunAddon($INFO[Skin.String(HomeLiveTVButton1)])</onclick>
            <icon>$INFO[system.addonicon(Skin.String(HomeLiveTVButton1))]</icon>
            <thumb>-</thumb>
            <visible>!IsEmpty(Skin.String(HomeLiveTVButton1))</visible>
        </item>
        <item>
            <label>$INFO[system.addontitle(Skin.String(HomeLiveTVButton2))]</label>
            <onclick>RunAddon($INFO[Skin.String(HomeLiveTVButton2)])</onclick>
            <icon>$INFO[system.addonicon(Skin.String(HomeLiveTVButton2))]</icon>
            <thumb>-</thumb>
            <visible>!IsEmpty(Skin.String(HomeLiveTVButton2))</visible>
        </item>
        <item>
            <label>$INFO[system.addontitle(Skin.String(HomeLiveTVButton3))]</label>
            <onclick>RunAddon($INFO[Skin.String(HomeLiveTVButton3)])</onclick>
            <icon>$INFO[system.addonicon(Skin.String(HomeLiveTVButton3))]</icon>
            <thumb>-</thumb>
            <visible>!IsEmpty(Skin.String(HomeLiveTVButton3))</visible>
        </item>
        <item>
            <label>$INFO[system.addontitle(Skin.String(HomeLiveTVButton4))]</label>
            <onclick>RunAddon($INFO[Skin.String(HomeLiveTVButton4)])</onclick>
            <icon>$INFO[system.addonicon(Skin.String(HomeLiveTVButton4))]</icon>
            <thumb>-</thumb>
            <visible>!IsEmpty(Skin.String(HomeLiveTVButton4))</visible>
        </item>
        <item>
            <label>$INFO[system.addontitle(Skin.String(HomeLiveTVButton5))]</label>
            <onclick>RunAddon($INFO[Skin.String(HomeLiveTVButton5)])</onclick>
            <icon>$INFO[system.addonicon(Skin.String(HomeLiveTVButton5))]</icon>
            <thumb>-</thumb>
            <visible>!IsEmpty(Skin.String(HomeLiveTVButton5))</visible>
        </item>
    </include>    
    <!-- -->

Home.xml

on or around lines 1015 find:

Code:
            <control type="fixedlist" id="705">
                <animation effect="slide" start="0,0" end="-91,0" time="0" condition="StringCompare(Container(705).NumItems,2) | StringCompare(Container(705).NumItems,4)">conditional</animation>
                <visible>Container(9000).HasFocus(1)</visible>
                <onleft>705</onleft>
                <onright>705</onright>
                <onup>9001</onup>
                <ondown>20</ondown>
                <include>HomeAddonsCommonLayout</include>
                <content>
                    <include>HomeAddonItemsPrograms</include>
                </content>
            </control>

Directly underneath this add the following

Code:
            <!-- Live TV Plugins Addon -->
            <control type="fixedlist" id="706">
                <animation effect="slide" start="0,0" end="-91,0" time="0" condition="StringCompare(Container(706).NumItems,2) | StringCompare(Container(706).NumItems,4)">conditional</animation>
                <visible>Container(9000).HasFocus(12)</visible>  <!-- Live TV -->
                <onleft>706</onleft>
                <onright>706</onright>
                <onup>9001</onup>
                <ondown>20</ondown>
                <include>HomeAddonsCommonLayout</include>
                <content>
                    <include>HomeAddonItemsLiveTV</include>
                </content>
            </control>
            <!-- -->

SkinSettings.xml

On or around line 828 find:
Code:
                        <control type="button" id="415">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]5[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeVideosButton5))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeVideosButton5,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>

Directly underneath this add the following code

Code:
                        <!-- Live TV settings addon -->
                        <control type="label" id="520">
                            <width>750</width>
                            <height>45</height>
                            <font>font13_title</font>
                            <label>Home Page LiveTV Submenu</label>
                            <textcolor>blue</textcolor>
                            <shadowcolor>black</shadowcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                        </control>
                        <control type="button" id="521">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]1[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeLiveTVButton1))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeLiveTVButton1,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>
                        <control type="button" id="522">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]2[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeLiveTVButton2))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeLiveTVButton2,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>
                        <control type="button" id="523">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]3[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeLiveTVButton3))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeLiveTVButton3,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>
                        <control type="button" id="524">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]4[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeLiveTVButton4))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeLiveTVButton4,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>
                        <control type="button" id="525">
                            <width>750</width>
                            <height>40</height>
                            <font>font13</font>
                            <label>$LOCALIZE[24000] [B]5[/B]</label>
                            <label2>[COLOR=selected]$INFO[system.addontitle(Skin.String(HomeLiveTVButton5))][/COLOR]</label2>
                            <textcolor>grey2</textcolor>
                            <focusedcolor>white</focusedcolor>
                            <texturefocus>MenuItemFO.png</texturefocus>
                            <texturenofocus>MenuItemNF.png</texturenofocus>
                            <onclick>Skin.SetAddon(HomeLiveTVButton5,xbmc.addon.video,xbmc.addon.executable)</onclick>
                        </control>
                        <!-- -->

Conclusion

You can change the plugins and positions by going to settings / Appearance / Skin / Settings / Add-on Shortcuts

I hope its useful for some people. I know we love having the catchup plugins there with youtube plugins etc on TV and Movies screens.
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#2
Great mod! Smile
Reply
#3
Thanks for this mod! Wink
Reply
#4
Thanks! Just what I wanted!
Reply
#5
Thank you .. exactly what I was looking for Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] Adding Plugins to Home for LiveTV2