NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 24 25 26 27 28 … 93 Next »
Do plugins need to support the "Slick" skin now?

 
  • 0 Vote(s) - 0 Average
Do plugins need to support the "Slick" skin now?
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#1
2009-03-09, 01:23 AM
I've noticed some users struggling to get plugins working because they are set to use the "Slick" skin and many plugins only supply a "Blue" skin.
  • Is the default PVRX2 skin on a new install the "Slick" skin?
  • Isn't the "Blue" skin the only required skin for plugins?
  • Did I miss the policy change? (I don't follow the forums that much except to help XSuite users)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2009-03-09, 01:59 AM
As far as I'm aware, building blue skins only should be enough, since the fallback mechanism should take care of the screens that dont have dedicated slick skin files. Most of the built in screens dont have any slick skin files, and just rely on the fallback mechanism.

I'm not sure if you might be encountering some problem with the old legacy plugins though?
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#3
2009-03-10, 02:36 AM
In a legacy plugin if the current skin is Slick:

Code:
PluginHelperFactory.getPluginHelper().GetSkinRootDirectory()
"C:\\Program Files\\Devnz\\GBPVR\\skin\\Slick\\"

PluginHelperFactory.getPluginHelper().getStandardSkinDirectory()
"C:\\Program Files\\Devnz\\GBPVR\\skin\\blue\\"
When the current skin is blue they both return the same thing.

Would this be the proper way to implement a fallback mechanism in a legacy plugin?
Code:
string skinDir = PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory();
if (!System.IO.Directory.Exists(skinDir))
{
    skinDir = PluginHelperFactory.getPluginHelper().getStandardSkinDirectory() + getSkinSubdirectory();
}

Otherwise what's the proper way to create a GBPVR.Public.SkinHelper instance in a legacy plugin since GetSkinRootDirectory() returns a non-existing directory by default in PVRX2?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2009-03-10, 02:41 AM
Quote:Would this be the proper way to implement a fallback mechanism in a legacy plugin?
To be honest, I dont know. Its not something I've tested.

It might just be a matter needing a 'slick' subdirectory created in the old legacy .\skin directory.
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#5
2009-03-11, 02:52 AM
Thanks.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows FM Radio support in v5. mvallevand 125 29,529 2023-01-29, 08:13 PM
Last Post: mvallevand
  FM tuner support in NextPVR? Goongyae 2 1,527 2022-11-23, 01:22 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 70,196 2020-11-26, 10:02 PM
Last Post: mandai
  Skin help (correct location?) SFX Group 4 3,954 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,388 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,380 2014-11-26, 07:28 PM
Last Post: Vitenka
  I want to start developing plugins...but how? OrenShapir 6 4,180 2014-11-18, 10:38 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,125 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,091 2013-02-19, 07:45 PM
Last Post: mvallevand
  .NET 4 plugins? McBainUK 20 7,905 2012-12-11, 08:48 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode