Help modifying a view (cutoff, zoom, background)
#1
edit: I either got around these, or don't care about them anymore. DON'T RESPOND!

Image

I got stuck at these. I'm not a skinner, just mostly moving things around.

1. How do I fix the negative value on <top> cutting the center poster? I tried augmenting the heights, but it didn't help.
2. How do I set the fanart as the background?

edit: I got an image displaying in the background, but

Code:
        <control type="image">
                  <texture background="true">C:/Program Files (x86)/Kodi (Video)/portable_data/addons/skin.copacetic/background/single/VTS_01_0.IFO_015953.826.jpg</texture>
        </control>

not the fanart, still don't understand how to call it.

3. With the focuslayout I can change the values for the center element, but how can I set a different height/width for the others ones, so I can achieve this?

Code:
<?xml version="1.0" encoding="UTF-8"?>
<includes>

    <include name="Viewtype_520_RowPoster">
        <control type="image">
                  <include>FullscreenDimensions</include>
                  <fadetime>400</fadetime>
                  <texture background="true">C:/Program Files (x86)/Kodi (Video)/portable_data/addons/skin.copacetic/background/single/VTS_01_0.IFO_015953.826.jpg</texture>
        </control>

        <control type="group">
            <visible>Control.IsVisible(520)</visible>
            <control type="fixedlist" id="520">
                <left>-260</left>
                <top>340</top>
                <width>2180</width>
                <height>1080</height>
                <onleft>520</onleft>
                <onright>520</onright>
                <onup>2500</onup>
                <ondown>2500</ondown>
                <pagecontrol>60</pagecontrol>
                <preloaditems>2</preloaditems>
                <focusposition>4</focusposition>
                <orientation>horizontal</orientation>
                <texture background="true">$INFO[ListItem.Icon]</texture>
                <viewtype label="31520">list</viewtype>
                <scrolltime tween="sine" easing="inout">250</scrolltime>
                <visible>SubString(Container.FolderPath,videodb://) | SubString(Container.FolderPath,special://) | SubString(Container.FolderPath,addons://) | SubString(Container.FolderPath,musicdb://) | SubString(Container.FolderPath,androidapp://)</visible>

                <itemlayout height="375" width="250">
                    <control type="image">
                        <width>250</width>
                        <height>375</height>
                        <aspectratio>stretch</aspectratio>
                        <texture background="true">$INFO[ListItem.Icon]</texture>
                    </control>
                    <control type="image">
                        <width>250</width>
                        <height>375</height>
                        <texture colordiffuse="$VAR[DiffuseColor]">views/white_100.png</texture>
                    </control>
                </itemlayout>

                <focusedlayout height="375" width="250">
                    <control type="image">
                        <top>-200</top>
                        <width>440</width>
                        <height>660</height>
                        <aspectratio>stretch</aspectratio>
                        <texture background="true">$INFO[ListItem.Icon]</texture>
                    </control>
                    <control type="image">
                        <top>-200</top>
                        <width>400</width>
                        <height>600</height>
                        <texture colordiffuse="$VAR[DiffuseColor]">views/white_100.png</texture>
                        <animation center="auto" condition="Control.HasFocus(520)" easing="inout" effect="fade" end="0" start="100" time="250" tween="sine">Focus</animation>
                        <animation center="auto" condition="Control.HasFocus(520)" easing="inout" effect="fade" end="100" start="0" time="250" tween="sine">UnFocus</animation>
                    </control>
                </focusedlayout>
            </control>
        </control>
    </include>
</includes>
Reply
#2
Look at the wiki for infolabels for images.

For the fanart part, you need to use:
Code:
$INFO[ListItem.Art(fanart)]
Reply
#3
Thanks! I tried that one but it still doesn't render it. Well, at least know I know it's a valid command. So I guess this grey background is being retrieved from somewhere else in the skin and is being placed on top of it, maybe... I'll try seeing how to remove it.

edit: oh my god, it has been working all this time - it's just that "fanart.jpEg" was not accepted...
Reply

Logout Mark Read Team Forum Stats Members Help
Help modifying a view (cutoff, zoom, background)0