Fallback Texture

January 9, 2009 on 1:35 pm | By | In bluefreesky.com | Fallback Texture
  • I have some code which is displaying a texture for items in a list, in the following manner:

    $INFO[ListItem.Label,,_icon.png]

    What I would like is that if the texture does not find a relevant image then it could load a fallback image. Jezz mentioned to me in passing that fallback attribute of the texture tag may work but I tried the following without success:

    $INFO[ListItem.Label,,_icon.png]

    Is something like this already available in XBMC and if so how? If it isn't available would it be possible at some point?

    Thanks


  • It loads the fallback texture only if the infolabel returns empty. It doesn't attempt to load the fallback if it can't find the texture.

    I'm not sure whether it should or shouldn't to be honest - I can see arguments for both sides.


  • You can test for when the info is empty via the IsEmpty but there isn't a way to test if the texture exists or not is there?


  • You can test for when the info is empty via the IsEmpty but there isn't a way to test if the texture exists or not is there?

    I think that would cover any side of the argument :nod:







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Fallback Texture , Please add it free.