How to enable different views for addons? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: How to enable different views for addons? (/showthread.php?tid=116410) |
How to enable different views for addons? - newatv2user - 2011-12-07 I would like to enable different views for my addon. For example, the icefilms plugin has "Media Info", "Media Info 2" view. I want to enable the Media Info 2 view on my addon. But how do I do that? By default it only has list, big list, thumbnails view. - Martijn - 2011-12-07 newatv2user Wrote:I would like to enable different views for my addon. If you have read it says 'development'. You should ask in the skin thread. - newatv2user - 2011-12-07 This is development related. I am developing this addon and I want to add that view into my addon. Thanks for your input though (NOT). - giftie - 2011-12-07 I think you are working on a plug in, correct? The views are created by the skin developers and are part of their skins. To get what you want(on your own) you will need to create a GUI skin and create a script that is able to use the skin. - Martijn - 2011-12-07 newatv2user Wrote:This is development related.I apologise . I misread you post - newatv2user - 2011-12-07 @Martijn: No problem. @giftie: I am looking at the icefilms plugin to figure out how they're doing it. But I don't find any references to any skin or anything. Also, I don't see a GUI skin on the icefilms addon folder. Am I even looking at the right thing, right place? What should I be looking for? - giftie - 2011-12-08 newatv2user Wrote:@Martijn: No problem. Well looking at the IceFilms plugin, there is a function called setView() found in the default.py file. Hopefully that will help you out.. - ghizzu - 2011-12-08 newatv2user Wrote:I would like to enable different views for my addon. add this line in your addon code: Code: xbmcplugin.setContent(int(sys.argv[1]), 'movies') http://xbmc.sourceforge.net/python-docs/xbmcplugin.html#-setContent - newatv2user - 2011-12-08 Thanks guys. I will try those out today. |