2022-01-21, 20:06
@Angelinas
I'm trying to use the script above to display the first country if multiple countries are in the database. The countries are separated by "," in simplecache.db. Is this the correct way to run this script?
EDIT: I got the script to work using "/" as the splitchar, but it only displays as text.
If I try to display the first country (United States) as an image it fails to display...
xml:
<onload condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service,action=stripstring,splitchar=,,string=$INFO[Window(Home).Property(SkinHelper.ListItem.Country)],output=country.flag,index=0)</onload>
I'm trying to use the script above to display the first country if multiple countries are in the database. The countries are separated by "," in simplecache.db. Is this the correct way to run this script?
EDIT: I got the script to work using "/" as the splitchar, but it only displays as text.
xml:
<label2>$INFO[Window(Home).Property(country.flag)]</label2>
If I try to display the first country (United States) as an image it fails to display...
xml:
<texture>$INFO[Window(Home).Property(country.flag),resource://resource.images.moviecountryicons.flags/,.png]</texture>