2014-05-13, 04:24
Okay- this may be a ridiculous request, but would it be possible to add support for conditional textures in Image controls for Helix? So many other attributes support conditionals, I think it is kind of crazy textures do not. I also noticed a request was made for this like 6 years ago and it was mentioned it was planned, but to date we haven't seen support for it... figured it couldn't hurt to bring it up again.
The more I work on my skin it becomes more and more clear that this would cut down on a crazy amount of skinning code.
Basically instead of having to do this-
We could do this-
Oh, and I know about fallback and/or variables, but I see this as being a different use case and could definitely be useful.
The more I work on my skin it becomes more and more clear that this would cut down on a crazy amount of skinning code.
Basically instead of having to do this-
PHP Code:
<control type="image" id="100">
<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(movies)</visible>
<posy>20</posy>
<width>1280</width>
<height>100</height>
<texture background="true">$INFO[ListItem.Art(clearlogo)]</texture>
<fadetime>100</fadetime>
<aspectratio scalediffuse="false">keep</aspectratio>
</control>
<control type="image" id="101">
<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(movies)</visible>
<visible>IsEmpty(ListItem.Art(clearlogo))</visible>
<posy>20</posy>
<width>1280</width>
<height>100</height>
<texture background="true">$INFO[ListItem.path]logo.png</texture>
<fadetime>100</fadetime>
<aspectratio scalediffuse="false">keep</aspectratio>
</control>
We could do this-
PHP Code:
<control type="image" id="100">
<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(movies)</visible>
<posy>20</posy>
<width>1280</width>
<height>100</height>
<texture background="true" condition="!IsEmpty(ListItem.Art(clearlogo)">$INFO[ListItem.Art(clearlogo)]</texture>
<texture background="true" condition="IsEmpty(ListItem.Art(clearlogo)">$INFO[ListItem.path]logo.png</texture>
<fadetime>100</fadetime>
<aspectratio scalediffuse="false">keep</aspectratio>
</control>
Oh, and I know about fallback and/or variables, but I see this as being a different use case and could definitely be useful.