How can we make themes / views for a specific plugin?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Question  How can we make themes / views for a specific plugin?
Post: #1
How do we make an interface for a plugin that is used whenever a certain skin is used?

I want to create a view for browsing Netflix but only accessible when browsing netflix.
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #2
<visible>substring(container.folderpath,plugin://plugin.video.apple.movie.trailers.lite)</visible>

I use this to keep my AMT Lite views limited, just change the path

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
Arcanthur Offline
Skilled Skinner
Posts: 423
Joined: Sep 2008
Reputation: 9
Location: 33.65 84.42
Post: #3
This is what I used for the Hulu plugin:
PHP Code:
<visible>substring(container.folderpath,plugin://plugin.video.hulu)</visible> 

Should work for Netflix too
(This post was last modified: 2010-12-14 18:35 by Arcanthur.)
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #4
Thanks guys, never thought of it that way!

Is it possible to do a different interface for a plugin itself? Such as changing the colors of forum browser or some other plugin.
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #5
Scripts have custom .xml's that we can code like RCB, Lyrics, Big Picture, etc...And plugins use whatever windows that are specified - like AMT lite uses whatever Movie views are available and Launcher uses whatever views allowed in Programs.

To get specifics labels/images for plugins you gotta use the substring trick me and Arc posted...Like I have a some specific AMT labels and I use that substring trick to show them correctly.

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
(This post was last modified: 2010-12-14 20:42 by mcborzu.)
find quote
bridgman Offline
Senior Member
Posts: 232
Joined: Jul 2010
Reputation: 0
Post: #6
Is it possible to have only one view for all plugins in a section. As in a single view for music plugins, video plugins and so on.

Edit: I am currently using
<visible>Window.IsVisible(Plugins)</visible>
but there are some situations where it is not working.
(This post was last modified: 2011-01-11 06:26 by bridgman.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,333
Joined: Jan 2009
Reputation: 162
Post: #7
bridgman Wrote:Is it possible to have only one view for all plugins in a section. As in a single view for music plugins, video plugins and so on.

Edit: I am currently using
<visible>Window.IsVisible(Plugins)</visible>
but there are some situations where it is not working.

like this?

Code:
</visible>substring(Container.FolderPath,plugin://video/)</visible>
Code:
</visible>substring(Container.FolderPath,plugin://music/)</visible>

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
bridgman Offline
Senior Member
Posts: 232
Joined: Jul 2010
Reputation: 0
Post: #8
That is how I am doing it at the moment. Only one plugin is giving me trouble when I pull up a certain list for local radio stations.
My main thing is I only want that view for plugins only.
find quote