NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 11 12 13 14 15 … 93 Next »
Checking for updates

 
  • 0 Vote(s) - 0 Average
Checking for updates
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2012-01-21, 03:47 PM
I was thinking of tweaking the System plugin so that it could show when updates to NPVR are available.

However, I'd like to keep it simple (Rolleyes) so would prefer not to do the actual online check. Can I assume that <CurrentVersion> and <LastNotifiedVersion> in config.xml are all I need to be looking at, ie, if they're different, then a new version is available?

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2012-01-21, 04:35 PM
Correct.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2012-01-21, 04:48 PM
Great. Should also have asked, does NPVR just do its check at startup time or periodically every so often?

Thanks

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#4
2012-01-21, 07:08 PM
Final question: is there any way to change the colour of a font in code? I've "kind of" done it before by having two separate text elements (one for each colour I needed) and having the one I didn't want shown set to an empty string. Fiddly though, and makes the skin messy.

Here's the current skin block for System's version message. It's done with a single text element and it would be nice to have it change colour (or font if that's what it takes) when a new version was detected.

Code:
<Element name="Version" location="0,87.44" size="100,4.64" alpha="255" alphaFade="true">
    <Rect location="-2,0" size="104,100" fillColor="BaseColor2"/>
    <Text text="@version" location="0,0" size="100,100" font="Title3Minimum" align="center" valign="center"/>
</Element>

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2012-01-21, 07:18 PM
You can specify font="@passedInStyle", where the passed in style is name of a font style defined in your skin files.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#6
2012-01-21, 07:38 PM
I don't know if this is correct but in SearchLite I set the fontname

item["@fontName"] = "DefaultMovie";

and then in the skin I define them.

Code:
<Skin>
    <Fonts>
        <Font name="DefaultMovie" color="#8800ff" size="14.05"/>
        <Font name="DefaultShow" color="#d6ebff" size="14.05"/>
        <Font name="DefaultSports" color="#b2d9ff" size="14.05"/>
        <Font name="DefaultTitle" color="#fffb00" size="14.05"/>         
    </Fonts>

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#7
2012-01-21, 08:22 PM
Thanks guys, that works.

But what happens if someone wants to re-skin it? I've now set it in code to one of two possible values from the default skin, but they won't match anything in a 3rd party skin. Or do the skin authors just have to deal with that and ensure their font names match up in these cases?

Iain
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#8
2012-01-21, 08:32 PM
I have to assume skinners (or should I say Jaggy and NorthPole) start with Default and work from there. The challenge for the developers is to document the Default skin and their changes. I am lax at that, just writing this I remember that I completely forgot to document my recent changes in SearchLite.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2012-01-21, 08:46 PM
As long as your define your styles in your skin.xml file, and give them sensible names, it shouldnt be too hard for the skinners to work out what they're for.
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,624
Threads: 148
Joined: Mar 2006
#10
2012-01-21, 09:46 PM
sub Wrote:As long as your define your styles in your skin.xml file, and give them sensible names, it shouldnt be too hard for the skinners to work out what they're for.

Exactly, as long as they aren't named something like "Title3Minimum" which to start with we will just assume is because you want a different font size or something.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR and NRecord, between releases, updates p37307 1 2,528 2016-10-29, 01:08 AM
Last Post: sub
  GetPlaybackPosition - getting updates psycik 8 2,960 2013-08-11, 06:28 PM
Last Post: sub
  EPG Updates imilne 0 1,266 2010-07-19, 08:49 AM
Last Post: imilne
  A question about fast incremental updates ACTCMS 12 4,298 2009-12-07, 03:42 AM
Last Post: sub
  problems with screen updates from ActivateItem InVermont 2 1,694 2009-03-12, 04:45 PM
Last Post: InVermont
  my series skin updates reven 5 2,315 2005-03-20, 05:10 AM
Last Post: darrin75

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

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

Linear Mode
Threaded Mode