passing variables to include tags - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: passing variables to include tags (/showthread.php?tid=48498) |
passing variables to include tags - CF2009 - 2009-04-08 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 Code: <control type="group"> 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]" > now all we have to do to repeat the code is Code: <include variables="960,1330,Container(57).ListItem(4).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... |