2009-09-08, 20:35
Hi,
Is there a way for me to display an image but if said image doesn't exist, fallback
to a string?
-Pr.
Is there a way for me to display an image but if said image doesn't exist, fallback
to a string?
-Pr.
<texture fallback="Default_icon.png">$INFO
[ListItem.Label,,_icon.png]</texture>
XBMCG33K Wrote:Something like this?
Code:<texture fallback="Default_icon.png">$INFO
[ListItem.Label,,_icon.png]</texture>
Was added here I believe: http://xbmc.svn.sourceforge.net/viewvc/x...sion=21336
jmarshall Wrote:Putting a label under the image seems the simplest technique. If the image isn't there, you'll see the label. If it is, you won't.
jmarshall Wrote:Use the <width> of the label to ensure that?
Pr.Sinister Wrote:Nope.
I want to display an image and if the image doesn't exist, i want to display text.
Is there a boolean condition called IfExist?
I was thinking to just display the text and display the picture on top of it and
use IfExist on the filename for the visibility of the text.
-Pr.