NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 17 18 19 20 21 … 93 Next »
SkinHelper fall back to Default

 
  • 0 Vote(s) - 0 Average
SkinHelper fall back to Default
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2010-10-30, 11:25 PM
In pvrx2, SkinHelper2 would fall back to the Blue skin if it couldn't find the requested skin file in the active skin directory. Are there any plans to introduce equivalent functionality into SkinHelper in NPVR?

Or have I done my usual and missed something? Big Grin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2010-10-31, 01:55 AM
I do hope to add something like this in the future.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2010-10-31, 02:24 AM
That would be great if you could - I change my skin on the hoof, so in most cases I only need a single copy in Default.

Can we assume that you and your Samsonite are now safely home...?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,870
Threads: 954
Joined: May 2006
#4
2010-10-31, 02:56 AM
If it helps I use the following

Code:
protected override SkinHelper GetSkinHelper()
        {
            SkinHelper skinHelper = null;
            if (Directory.Exists(SettingsHelper.GetInstance().GetSkinDirectory() + "WebRadio"))
            {
                skinHelper = new SkinHelper("WebRadio\\skin.xml");
            }
            else
            {
                skinHelper = new SkinHelper("..\\Default\\WebRadio\\skin.xml");
            }
            return skinHelper;
        }

Martin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#5
2010-10-31, 03:03 PM
Thanks for that Martin - that will do the trick... I just hadn't thought of using the
Code:
"..\\Default\\WebRadio\\skin.xml"
construct.

Alex
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to prevent default screen background? cncb 28 8,266 2012-05-16, 08:28 PM
Last Post: ACTCMS
  New default folders... zehd 4 2,020 2007-07-19, 04:56 PM
Last Post: sub
  How do you use skinHelper.getNamedImageElementPos(name,element) ?? JavaWiz 6 2,256 2007-05-19, 08:28 AM
Last Post: McBainUK
  skinhelper idkpmiller 8 2,591 2006-12-13, 10:49 PM
Last Post: ubu
  getting back to the main thread? reven 1 1,520 2006-07-25, 08:18 AM
Last Post: reven
  SkinHelper Constructor error psycik 5 2,183 2006-06-06, 04:20 AM
Last Post: psycik
  skinHelper.getNamedImage - test image exists... psycik 2 1,693 2005-11-09, 06:53 PM
Last Post: psycik
  GBPVR.Public.SkinHelper.getNamedImageElementRect psycik 2 1,563 2005-10-27, 09:11 PM
Last Post: psycik
  config the default screen refresh reven 10 3,634 2005-03-13, 03:09 AM
Last Post: reven
  Video play back from plug-ins Jeff 1 1,638 2004-10-15, 11:47 AM
Last Post: colin

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

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

Linear Mode
Threaded Mode