Ifilmbrowser
#1
has anybody else noticed ifilmbrowser doesn't change background images?

if so, here are the changes to fix that. maybe it's just my copy. (watch for proper tabbing)

look for this definition "def getbackgroundpath(self,type):" and replace it with:

Quote: def getbackgroundpath(self,type):
path = pics_dir+'ifilm_main.png'
if type == self.ifilmareas[pos_movies].id:
path = pics_dir+'ifilm_movie.png'
if type == self.ifilmareas[pos_shorts].id:
path = pics_dir+'ifilm_short.png'
if type == self.ifilmareas[pos_viral].id:
path = pics_dir+'ifilm_viral.png'
if type == self.ifilmareas[pos_uncensored].id:
path = pics_dir+'ifilm_uncen.png'
if type == self.ifilmareas[pos_music].id:
path = pics_dir+'ifilm_music.png'
if type == self.ifilmareas[pos_video_games].id:
path = pics_dir+'ifilm_game.png'
if type == self.ifilmareas[pos_tv_clips].id:
path = pics_dir+'ifilm_tv.png'
return path;

to get rid of the blanking of the background when switching. look for " def load_area_screen(self):" and comment out the following line #self.removecontrol(self.background)

change the lines just below:
Quote: self.background = xbmcgui.controlimage(0,0, int(720*self.scalex),int(480*self.scaley), self.getbackgroundpath(self.currentselectedareaid))
self.addcontrol(self.background)

to:
Quote: self.background2 = xbmcgui.controlimage(0,0, int(720*self.scalex),int(480*self.scaley), self.getbackgroundpath(self.currentselectedareaid))
self.addcontrol(self.background2)

and finally find "def destroy_area_screen(self):"

change:
Quote: self.removecontrol(self.background)
to:
Quote: self.removecontrol(self.background2)

i think that's all i changed.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
yeah i think i came up with a similar solution a while ago too... can you send this to xbmcscripts.com?

thanks.
Reply
#3
i tried to submit it, but you can't if you're not the original submitter. unless you change the name, which i don't think is a good idea.

if enderw or the original author wants the changes, i'll be happy to send them, though it's really minor changes.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Ifilmbrowser0