2009-12-15, 02:18
is it posible to add more labels controls for use in lists. I.E. we have <label> & <label2> that we can assign for use with python scripts , etc., i would like to have more availble, so i do have to add them manually.
at the moment i use <label> & <label2>, but if i need more then i have to map ALL manually like this:
but i would like to just use <label3> like this:
the list code could be like this:
maybe we could have 10 availble for use ?
at the moment i use <label> & <label2>, but if i need more then i have to map ALL manually like this:
PHP Code:
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>900</width>
<height>45</height>
<font>Font_RecentTitleLabel</font>
<textcolor>ccffffff</textcolor>
<aligny>center</aligny>
<label fallback="-">[UPPERCASE][b]$INFO[Container(8001).ListItem.Label][/b][/UPPERCASE]</label>
</control>
<control type="label">
<posx>0</posx>
<posy>65</posy>
<width>900</width>
<height>30</height>
<font>Font_RecentTitleLabel2</font>
<textcolor>ccFFFFFF</textcolor>
<aligny>center</aligny>
<label fallback="-">[UPPERCASE]$INFO[Container(8001).ListItem.Label2][/UPPERCASE]</label>
<visible>Container(300).HasFocus(1)|Container(300).HasFocus(7)</visible>
</control>
<control type="textbox">
<font>Font_WidgetPlot</font>
<posx>0</posx>
<posy>20</posy>
<width>1400</width>
<height>650</height>
<textcolor>c0FFFFFF</textcolor>
<autoscroll delay="8000" time="2000" repeat="10000"></autoscroll>
<label fallback="31414">$INFO[Window.Property(LatestEpisode.1.Plot)]</label>
<visible>Container(8001).Row(0)</visible>
</control>
<control type="textbox">
<font>Font_WidgetPlot</font>
<posx>0</posx>
<posy>20</posy>
<width>1400</width>
<height>650</height>
<textcolor>c0FFFFFF</textcolor>
<autoscroll delay="8000" time="2000" repeat="10000"></autoscroll>
<label fallback="31414">$INFO[Window.Property(LatestEpisode.2.Plot)]</label>
<visible>Container(8001).Row(1)</visible>
</control>
etc......
the list code could be like this:
PHP Code:
<item id="1">
<label>$INFO[Window.Property(LatestEpisode.1.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.1.ShowTitle)] - $INFO[Window.Property(LatestEpisode.1.EpisodeNo)]</label2>
<label3>$INFO[Window.Property(LatestEpisode.1.Plot)]</label3>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.1.Path)])</onclick>
<thumb>$INFO[Window.Property(LatestEpisode.1.Thumb)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
PHP Code:
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>900</width>
<height>45</height>
<font>Font_RecentTitleLabel</font>
<textcolor>ccffffff</textcolor>
<aligny>center</aligny>
<label fallback="-">[UPPERCASE][b]$INFO[Container(8001).ListItem.Label][/b][/UPPERCASE]</label>
</control>
<control type="label">
<posx>0</posx>
<posy>65</posy>
<width>900</width>
<height>30</height>
<font>Font_RecentTitleLabel2</font>
<textcolor>ccFFFFFF</textcolor>
<aligny>center</aligny>
<label fallback="-">[UPPERCASE]$INFO[Container(8001).ListItem.Label2][/UPPERCASE]</label>
<visible>Container(300).HasFocus(1)|Container(300).HasFocus(7)</visible>
</control>
<control type="textbox">
<font>Font_WidgetPlot</font>
<posx>0</posx>
<posy>20</posy>
<width>1400</width>
<height>650</height>
<textcolor>c0FFFFFF</textcolor>
<autoscroll delay="8000" time="2000" repeat="10000"></autoscroll>
<label fallback="31414">$INFO[Container(8001).ListItem.Label3]</label>
</control>