How to enable different views for addons?
#1
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 thatHuh? By default it only has list, big list, thumbnails view.
Reply
#2
newatv2user Wrote: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 thatHuh? By default it only has list, big list, thumbnails view.

If you have read it says 'development'. You should ask in the skin thread.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
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).
Reply
#4
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.
Reply
#5
newatv2user Wrote: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).
I apologise . I misread you post Blush
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
@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?
Reply
#7
newatv2user Wrote:@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?

Well looking at the IceFilms plugin, there is a function called setView() found in the default.py file.

Hopefully that will help you out..
Reply
#8
newatv2user Wrote: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 thatHuh? By default it only has list, big list, thumbnails view.

add this line in your addon code:
Code:
xbmcplugin.setContent(int(sys.argv[1]), 'movies')
this will enable all the view modes available for movies in the active skin.
http://xbmc.sourceforge.net/python-docs/...setContent
Reply
#9
Thanks guys. I will try those out today.
Reply

Logout Mark Read Team Forum Stats Members Help
How to enable different views for addons?0