2007-04-11, 03:13
#1 is fixed in SVN, by JMarshall
asciii Wrote:mixing windowxml style list and old traditional listitems works fine here. thanks for this "simple" solution stanley
a function to reformat the list (label,label2..) without just clear and rebuild the list would be great. alter single list items would also be nice.
great work. thanks
asciii
Quote:self.getControl(4).addItem("") SHOULDN"T workThat's fine, but if i assign control(4) to another variable it works, so your saying self.getControl(44).addItem("") should work?
Quote:stanley and I decided against fallback\skins\skinname\media in favor of fallback\skins\mediaThis needs to be reconsidered, I have a patch that works (except for dialogs as it currently doesn't work either) It would be benificial to me to have the media folder inside the skinname folder. I'm sure if i tell you why, you'll argue
Nuka1195 Wrote:That's fine, but if i assign control(4) to another variable it works, so your saying self.getControl(44).addItem("") should work?
donno Wrote: Got locked out the forums because of your message, tried logging to reply but it locked me out for an hour, then when got in i forgot why.
Tes that will work providing getControl ist a list (pretty sure panels and that won't work as they don't get converted to a ControlList),
The only reason i can see for having multiply media folders
for each skin is if you want to have your own extra imagines deisnged for that skin. and of coruse want to use the same xml. stanley87 has pointed out to me that, to avoid conflicts changing the name of the textures to something like dbackground.png for the default skin (this way it also doesn't conflict with any image in the skin path which is probley a good thing due to your feature the 'forceFallback'. Because im 99% with regards to media the current skin or memory/xpr is checked first than the fallback path media.
Like wise you could have like amt-banner-mc360.png and whack that in the skins. However if you must there is on other reason why this 'just change the name is better and leaving media in skins\ rather than PER SKIN.
Which is just if you have generic images that should be used for all the skins like a the title banner for the script that is tied to NO skin.
def __init__(self,strXMLname, strFallbackPath,strDefaultName,bforeFallback=0):
xbmcgui.lock()
self.initon = 0
def onInit(self):
if self.initon == 0:
self.list = self.getControl(50)
self.initon = 1:
print "This is the first time you have opened this window"
else:
print "This is NOT the first time you have opened this window"
xbmcgui.unlock()
jmarshall Wrote:Why on earth does it crash if you GetControl() twice? Clearly there's a bug there. Will chat with Donno next time he's around.
Nuka1195 Wrote:XBMC Lyrics doesn't crash coming back from settings. It uses lists id=110 and 120
edit: nm, Lyrics is a dialog.