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 »
List of Skin Elements

 
  • 0 Vote(s) - 0 Average
List of Skin Elements
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2010-12-21, 11:31 PM
Is there an API which returns a list of the Elements in the currently active skin file?

or alternatively, is there an easy of finding out the name of the current skin file since it may depend on the current TV shape?

or do I need to work it out from first principles?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 742
Joined: Nov 2003
#2
2010-12-21, 11:36 PM
There isnt really an API for a plugin to enumerate the Elements in the plugin's skin file. Its not something we've ever needed since plugin's typically know what Elements they need to function. If your plugin has some optional element which may or may not be defined in the skin, then you can use the 'skinHelper.ElementIsDefined("xxxxxx")' method to check if it's there or not.

Does this answer your question or is there something else specific you're trying to do but cant currently?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 742
Joined: Nov 2003
#3
2010-12-21, 11:38 PM
The plugin can also call skinHelper.GetBackingDocument() to get the XmlDocument, which you could use directly if you really needed to.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,333
Threads: 867
Joined: May 2006
#4
2010-12-21, 11:44 PM
That's what I use in WebRadio because I found that Default action wan't being defined in most cases

Code:
XmlNode xn = skinHelper.GetBackingDocument().SelectSingleNode("/Skin/Element[@name='CoversItemCoverArt']");

Martin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#5
2010-12-22, 12:00 AM
My screensaver plugin allows the user to scroll through the elements in the skin to match what they are doing - playing music, photo slideshow or both. It's also designed to allow the user to add their own elements (which I know nothing about until my code is running).

It's not a major problem - MLPanel uses the XmlDataDocument class to look inside the skin in pvrx2 and I'm happy enough to do the same in NPVR. I just thought I'd ask in case there was something I had missed...

I know there can be a skin.xml and a skin-4x3.xml - are there any other possible suffixes?
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2010-12-22, 12:03 AM
sub Wrote:The plugin can also call skinHelper.GetBackingDocument() to get the XmlDocument, which you could use directly if you really needed to.

mvallevand Wrote:That's what I use in WebRadio because I found that Default action wan't being defined in most cases

Code:
XmlNode xn = skinHelper.GetBackingDocument().SelectSingleNode("/Skin/Element[@name='CoversItemCoverArt']");

Martin
As usual, me too slow Big Grin

That's the answer though... thanks
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 742
Joined: Nov 2003
#7
2010-12-22, 12:04 AM
ACTCMS Wrote:I know there can be a skin.xml and a skin-4x3.xml - are there any other possible suffixes?
skin.xml, skin-4x3.xml, skin-16x9.xml, but I'd just use that GetBackDocument() API to get the XmlDocument.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#8
2010-12-22, 12:06 AM
note to self... learn to type (and maybe think) a bit faster...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,122 2018-01-24, 07:42 AM
Last Post: pBS
  Channels List by Channel Group Name scJohn 1 2,027 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 2,338 2017-06-19, 09:14 AM
Last Post: psycik
  skin question pBS 2 2,759 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 2,550 2014-11-26, 07:28 PM
Last Post: Vitenka
  List of "IEventNotification" events? reven 8 2,460 2012-11-01, 10:56 PM
Last Post: reven
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,305 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,239 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 1,488 2011-09-28, 09:48 PM
Last Post: cncb
  Skin element Details in NowNext Jaggy 2 1,332 2011-09-19, 11:50 PM
Last Post: Jaggy

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

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

Linear Mode
Threaded Mode