2010-08-22, 13:21
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.
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..
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.
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.
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.
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..
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>