![]() |
|
WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding) - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Python Add-on Development (/forumdisplay.php?fid=26) +--- Thread: WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding) (/showthread.php?tid=24839) |
- Nuka1195 - 2007-08-10 14:00 yes you can, sort of. I do this in AMT with the showtimes. JMarshall just added this ability. I don't have any thumbs in that list. If you have just a thumb then use the icon. Set the list item: listitem = xbmcgui("Label1", "label2", "Extra info1", "Thumb or extra info 2") then for your label set it's info tag: <info>ListItem.ActualIcon</info> <- returns Extra Info1 <info>ListItem.Thumb</info> <- returns Thumb or Extra Info2 Is this what you wanted? - chunk_1970 - 2007-08-10 15:50 Yes that does sound alot less hassle. Would be nice if we could have more available labels in Listitem for future use..Saves the need to have threading on the record number to pick up extra info.. Lovely Jubbly.. - Nuka1195 - 2007-08-10 16:11 If anybody could point me in the direction of where listitem.* labels are set I could have a look at creating a new method, but I couldn't find it. - jmarshall - 2007-08-11 00:25 They're properties of the CFileItem class, which is derived from CGUIListItem. The first thing that you'll need to do is change CGUIListItem -> CFileItem in the python functions. You can then do things like: item->GetMusicInfoTag()->SetArtist(artist) etc. For MusicInfoTag and PictureInfoTag you'll have to set the Loaded bool as well for the info to show up. It might pay to have an "indexed" function where you pass a string for the index and the string to set. That should give you another 20 or so strings to play with ![]() Note that it is recommended that you only set one of the tag items (eg Music, Picture, or Video) and not all 3, though there will be no problems in doing so, other than some of the listitems refer to both music and video, so if you have the musicinfotag stuff set as loaded, but are wanting to refer to the videoinfotag the infomanager will pick the music one, even if it's empty (eg Ratings for instance). It also consumes more memory having both. Cheers, Jonathan - chunk_1970 - 2007-08-11 15:08 The extra functionality would be sweet. The listitem mod in the last xbmc release works really well being able to replace the second icon with additional text info.. - bortoni - 2007-08-20 16:48 I have a small question. I'm looking at the WindowXMLExample that is in svn. I want to be able to have second label in a list but have it invisible. In the #xbmc-scripts channel I was given the suggestion that I could use the <visible> tag to do this. However, in the sample script above, I can't find anywhere in the XML file for it where list items are described. Where could I make this change? As I mentioned, I'm learning with the example so if anyone can provide a response based on it I'd really appreciate it. Thanks. - Nuka1195 - 2007-08-21 02:59 @chunk1970, checkout the new setInfo() method added to the listitem @bortoni, make label2 <visible>false<visible> that was taken from amt credits xml file, there should be plenty of examples in that script. Code: <control type="list" id="101">- Nuka1195 - 2007-09-16 19:22 Code: <animation effect="rotate" center="128,128" start="0" end="-360" time="60000" loop="true" condition="Control.IsVisible(100)">Conditional</animation>The above animation works with a WindowXML, but does not work with WindowXMLDialog. Can anything be done to fix this? I know WindowClose animations won't work with dialogs, but this one would be helpful. Thanks - Nuka1195 - 2007-09-17 22:57 friendly bump for my previous question - jmarshall - 2007-09-17 23:23 Would you mind providing a script and/or xml files with it all setup? * jmarshall is lazy
|