2009-04-08, 00:58
i know XBMC is in feature freeze for 9.04 but i was thinking about how we code views like coverflow as of right now we repeat a lot of code so here is my idea...
here we have a bit of code what is repeat a lot in Showcase for Aeon (Stark) and there are only 3 variables what change
so what i was thinking was to have the ability to pass variables through the include tag
something like this
now all we have to do to repeat the code is
it's just a idea but a good one and one what will make the lives of all skiners a lot easier...
here we have a bit of code what is repeat a lot in Showcase for Aeon (Stark) and there are only 3 variables what change
Code:
<control type="group">
<posx>960</posx>
<animation effect="rotatey" center="1330" start="65" end="65" time="0" condition="true">Conditional</animation>
<control type="group">
<control type="image">
<include>MusicShowcaseThumb</include>
<info>Container(57).ListItem(4).Icon</info>
</control>
<control type="image">
<description>Glass overlay</description>
<include>MusicShowcaseGlassOverlayAngled</include>
</control>
<control type="image">
<description>Black overlay</description>
<include>MusicShowcaseOverlay</include>
</control>
<control type="image">
<include>MusicShowcaseThumbReflection</include>
<info>Container(57).ListItem(4).Icon</info>
</control>
</control>
</control>
so what i was thinking was to have the ability to pass variables through the include tag
something like this
Code:
<include name="Showcase_image" variables="[b]posx_var[/b],[b]anim_center[/b],[b]image[/b]" >
<control type="group">
<posx>[b]$INFO[posx_var][/b]</posx>
<animation effect="rotatey" center="[b]$INFO[anim_center][/b]" start="65" end="65" time="0" condition="true">Conditional</animation>
<control type="group">
<control type="image">
<include>MusicShowcaseThumb</include>
<info>[b]image[/b]</info>
</control>
<control type="image">
<description>Glass overlay</description>
<include>MusicShowcaseGlassOverlayAngled</include>
</control>
<control type="image">
<description>Black overlay</description>
<include>MusicShowcaseOverlay</include>
</control>
<control type="image">
<include>MusicShowcaseThumbReflection</include>
<info>[b]image[/b]</info>
</control>
</control>
</control>
</include>
now all we have to do to repeat the code is
Code:
<include variables="960,1330,Container(57).ListItem(4).Icon">Showcase_image</include>
<include variables="860,1230,Container(57).ListItem(3).Icon">Showcase_image</include>
<include variables="760,1130,Container(57).ListItem(2).Icon">Showcase_image</include>
it's just a idea but a good one and one what will make the lives of all skiners a lot easier...