2010-12-20, 00:21
The idea is to have different colors for each section, movies, tvshows, music, etc. I use the same view for each section. To have one view declaration and color independent I have to pass value of folder name where are textures for that color. As constant declaration is not usefull outside of numeric values in numeric parameters I can't use it in <texture> tag. So I create fake button wich has default control in myvideonav when onfocus set property and pass focus to default id=50.
in includes have declaration:
in mymovienav.xml have:
and then in some view in itemlayout inside some list have:
and it doesn't work
If I create label and put this string: "$INFO[Window.Property(ThemeColor),special://skin/media/,/holder-8x3-focus.png]" into label it display exactly path what I wont but it don't work inside bordertexture some way. There is no info in debug insted of creating property. Images are in placed. What I missed?
in includes have declaration:
PHP Code:
<include name="ThemeColorPurple">
<control type="button" id="999">
<onfocus>SetProperty(ThemeColor,purple)</onfocus>
<onfocus>Control.SetFocus(50)</onfocus>
</control>
</include>
in mymovienav.xml have:
PHP Code:
<include>ThemeColorPurple</include>
and then in some view in itemlayout inside some list have:
PHP Code:
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>234</width>
<height>234</height>
<bordertexture>$INFO[Window.Property(ThemeColor),special://skin/media/,/holder-8x3-focus.png]</bordertexture>
<bordersize>12</bordersize>
<fadetime>100</fadetime>
<texture background="true" diffuse="holder-8x3-diffuse.png">$INFO[Listitem.Icon]</texture>
<aspectratio scalediffuse="false">stretch</aspectratio>
</control>
and it doesn't work
If I create label and put this string: "$INFO[Window.Property(ThemeColor),special://skin/media/,/holder-8x3-focus.png]" into label it display exactly path what I wont but it don't work inside bordertexture some way. There is no info in debug insted of creating property. Images are in placed. What I missed?