Help with Mod of Horizontal Home Layout
#16
If you want an image for focused and non-focused items then you'll have to add it to the <itemlayout> and <focusedlayout> controls.
Reply
#17
What I don't get is that you have an image appering when an Item is in focus but I can't find any refrences to it in the <focuslayout>
Reply
#18
<texture>$INFO[Container(300).ListItem.ActualIcon]</texture>

Then the <item> from it's <contents> ie <icon>homelist/videosicon.png</icon>

To use them in the actual list use -

<texture>$INFO[ListItem.ActualIcon]</texture>
Reply
#19
Hi again Hitcher thank you for your answers

I'm trying to get my head around it but I still can't figure it out.

Iv'e cut down the code to the the most essential to figure it out but no luck. Any help?

I used the image control in both Focus and ItemLayout and used <texture>$INFO[ListItem.ActualIcon]</texture> but it isn't displayed

PHP Code:
<includes>
    <include 
name="HomeHorizontal">
        <
posx>-220</posx>
        <
posy>330</posy>
        <
height>60</height>
        <
width>1680</width>
        <
onleft>300</onleft>
        <
onright>300</onright>
        <
viewtype>list</viewtype>
        <
orientation>horizontal</orientation>
        <
focusposition>3</focusposition>
        <
scrolltime>300</scrolltime>
        <include>
Animation_ZoomOutZoomIn</include>
        <
itemlayout width="270" height="60">
            <
control type="label">
                <
width>270</width>
                <
height>60</height>
                <
align>center</align>
                <
aligny>center</aligny>
                <
font>Font_HomeListNF</font>
                <
textcolor>HomeListLabel</textcolor>
                <
label>$INFO[ListItem.Label]</label>
                <
animation effect="fade" end="50" condition="true">Conditional</animation>
            </
control>
            <
control type="image">    <!-- Added Image control -->
                <
posx>1</posx>
                <
posy>131</posy>
                <
width>162</width>
                <
height>241</height>
                <
texture>$INFO[ListItem.ActualIcon]</texture>
            </
control>
        </
itemlayout>
        <
focusedlayout width="630" height="60">
            <
control type="label">
                <
posx>230</posx>
                <
width>290</width>
                <
height>60</height>
                <
align>left</align>
                <
aligny>center</aligny>
                <
font>Font_HomeListF</font>
                <
textcolor>HomeListLabel</textcolor>
                <
animation type="Focus" reversible="false">
                    <
effect type="fade" start="50" end="100" time="400" />
                </
animation>
                <
label>$INFO[ListItem.Label]</label>
            </
control>
            <
control type="image">    <!-- Added Image control -->
                <
posx>0</posx>
                <
posy>0</posy>
                <
width>500</width>
                <
height>500</height>
                <
texture>$INFO[ListItem.ActualIcon]</texture
            </
control>
        </
focusedlayout>
    </include>
    <include 
name="HomeList">
        <
control type="wraplist" id="300">
            <include 
condition="Skin.HasSetting(HomeHorizontal)">HomeHorizontal</include>
            <
content>
                <
item id="1">
                    <
description>Videos</description>
                    <
label>$LOCALIZE[3]</label>
                    <
icon>homelist/videosicon.png</icon>
                    <
property name="CustomIcon">special://skin/extras/customicons/videos.png</property>
                    
<thumb fallback="backdrops/videos.jpg">$INFO[Skin.String(CustomVideos)]</thumb>
                    <
onclick>ActivateWindow(VideoFiles)</onclick>
                    <
visible>!Skin.HasSetting(NoVideos)</visible>
                </
item>
                <
item id="2">
                    <
description>Videos2</description>
                    <
label>test</label>
                    <
icon>homelist/videosicon.png</icon>
                    <
property name="CustomIcon">special://skin/extras/customicons/videos.png</property>
                    
<thumb fallback="backdrops/videos.jpg">$INFO[Skin.String(CustomVideos)]</thumb>
                    <
onclick>ActivateWindow(VideoFiles)</onclick>
                    <
visible>!Skin.HasSetting(NoVideos)</visible>
                </
item>
            </
content>
        </
control>
    </include>
</
includes
Reply
#20
Nevermind I'm editing the Home Icon instead, that made much more sense Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Help with Mod of Horizontal Home Layout0