How to reference ControlList
#1
Question 
Hi all,

I've meen browsing this forum for some time now and I must say that it's always exciting to see what you can do and where XBMC is going, it's really amazing!

So I've started to fiddle around a bit with XBMC to see if I can contribute as well.

I'm actually not trying to make a skin but rather my first script, but it requires a skin of course. Rolleyes

I'm no skinner at all so this world is totally new for me so bare with me. It's kind of a noobish question but I've tried for several hours to wrap my head around how lists works in a skin and I just can't figure it out.. Sad

Question: How do I reference the selected item in a list from other parts of a view? What I want to do is to show, for instance, the plot of the selected tv series.

Code:
        <control type="wraplist" id="20">
            <description>Series list</description>
            <posx>60</posx>
            <posy>50</posy>
            <width>758</width>
            <height>600</height>
            <focusposition>9</focusposition>
            <viewtype label="Series List">list</viewtype>
            <orientation>vertical</orientation>
            <visible>true</visible>
            <onleft>11</onleft>
            <scrolltime>0</scrolltime>
            <!--onright>17</onright-->
            <itemlayout width="758" height="23">
                <control type="label">
                    <posx>30</posx>
                    <posy>0</posy>
                    <width>630</width>
                    <height>23</height>
                    <info>ListItem.label</info>
                </control>
                <control type="image">
                    <posx>600</posx>
                    <posy>0</posy>
                    <width>125</width>
                    <height>23</height>
                    <texture>$INFO[ListItem.Thumb]</texture>
                </control>
            </itemlayout>
            <focusedlayout width="758" height="160">
                <control type="label">
                    <aligny>center</aligny>
                    <align>center</align>
                    <posx>379</posx>
                    <posy>55</posy>
                    <width>758</width>
                    <height>30</height>
                    <info>ListItem.label</info>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>true</scroll>
                </control>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>758</width>
                    <height>140</height>
                    <visible>true</visible>
                    <texture>$INFO[ListItem.Thumb]</texture>
                </control>
                <control type="label">
                    <aligny>center</aligny>
                    <posx>0</posx>
                    <posy>130</posy>
                    <width>100</width>
                    <height>30</height>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>false</scroll>
                    <font>font10</font>
                    <label>Status:</label>
                </control>
                <control type="label">
                    <aligny>center</aligny>
                    <posx>50</posx>
                    <posy>130</posy>
                    <width>300</width>
                    <height>30</height>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>false</scroll>
                    <font>font10</font>
                    <info>ListItem.Label2</info>
                </control>
                <control type="label">
                    <aligny>center</aligny>
                    <align>right</align>
                    <posx>758</posx>
                    <posy>130</posy>
                    <width>458</width>
                    <height>30</height>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>false</scroll>
                    <font>font10</font>
                    <info>ListItem.Plot</info>
                </control>
            </focusedlayout>
        </control>
        <control type="label" id="101">
            <aligny>center</aligny>
            <posx>400</posx>
            <posy>5</posy>
            <width>100</width>
            <height>30</height>
            <textcolor>FFFFFFFF</textcolor>
            <scroll>false</scroll>
            <label>$INFO[ListItem.Plot]</label>
        </control>
Shouldn't the <label>$INFO[ListItem.Plot]</label> in the label with id=101 work? The <info> tag within the list works fine for that label that shows the ListItem.Plot... But I want it outside of the list. Huh
Reply
#2
It needs to know what container to get the listitem from. Container(id).Listitem.Plot.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Wonderful, thank you! That was the last piece of the puzzle. Now I can move on with my script.

Thanks!
Reply
#4
Question 
Hi everybody,

what is a container ? where is it defined, and how can I manage it ?
Are there some instruction on wiki ?

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
How to reference ControlList0