Switching between wide icons and big icons?
Switching between wide icons and big icons?
As I understand it, either wide or big icons need to be named default.tbn, correct? If this is the case, how can I have both wide and big icons in the same folder so I could switch between the two?
- Dom DXecutioner
- Posts: 585
- Joined: Thu Jul 05, 2012 11:59 pm
- Location: California
- Has thanked: 249 times
- Been thanked: 219 times
- Contact:
Re: Switching between wide icons and big icons?
Since you're not being specific, I'll speculate you're referring to the programs section of xbmc!XC-3730C wrote:As I understand it, either wide or big icons need to be named default.tbn, correct? If this is the case, how can I have both wide and big icons in the same folder so I could switch between the two?
Normally we use a an image control to, you guessed it, display images; the <texture></texture> property is used to point to the path of the image you wish to display. We use the standard ListItem.Icon info label to display the image that xbmc has scanned by default.
Code: Select all
<control type="image"> <!-- default square icon -->
<posy>89</posy>
<posx>49</posx>
<width>128</width>
<height>128</height>
<aspectratio>stretch</aspectratio>
<texture>$INFO[ListItem.Icon]</texture>
</control>
You really can't have multiple image types, ie. poster/thumb/icon/wideicon for the same item without doing some customization to the skin or creating a new view yourself. At least I'm not aware of any skin that will support this. Most skins will only support one type per game/emulator/program.
Re: Switching between wide icons and big icons?
Oh too bad it couldn't be say, default.tbn for a wide icon, and folder.jpg for a big icon and be able to switch icon views based on that.
- Dom DXecutioner
- Posts: 585
- Joined: Thu Jul 05, 2012 11:59 pm
- Location: California
- Has thanked: 249 times
- Been thanked: 219 times
- Contact:
Switching between wide icons and big icons?
Like I said, you can, but you'd have to edit the views of your preferred skin, otherwise you'll have to stick to one type of image.
Re: Switching between wide icons and big icons?
It would be awesome if there was a program plugin for xbmc4xbox that somehow would let you rename the default.tbn to folder.jpg and vice versa because it seems to be that whatever is named default.tbn takes precedence over anything else.
- Dan Dar3
- Posts: 1176
- Joined: Sun Jul 08, 2012 4:09 pm
- Has thanked: 273 times
- Been thanked: 257 times
- Contact:
Re: Switching between wide icons and big icons?
@XC-3730C
Change the path in the code below (that's where it starts recursively, backup your stuff so it doesn't break it for you), upload through FTP as Q:\scripts\rename.py and then run from Scripts screen.
References:
https://docs.python.org/2/library/os.html
Change the path in the code below (that's where it starts recursively, backup your stuff so it doesn't break it for you), upload through FTP as Q:\scripts\rename.py and then run from Scripts screen.
Code: Select all
import os
RENAME_IN_PATH = "X:\whatever\path\to\start"
RENAME_FROM = "default.tbn"
RENAME_TO = "folder.jpg"
for dirpath, dirnames, filenames in os.walk(RENAME_IN_PATH):
for filename in filenames:
if filename == RENAME_FROM:
rename_from = os.path.join(dirpath, RENAME_FROM)
rename_to = os.path.join(dirpath, RENAME_TO)
print "Rename %s => %s" % (rename_from, rename_to)
os.rename(rename_from, rename_to)
https://docs.python.org/2/library/os.html
- App(s): XBMC4Xbox Remote for Android | Plugin(s): XBMC4Xbox Installer
- Please donate to XBMC4Xbox project to keep it going, every little helps!
- Join us on TeamSpeak