NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
Main menu plugin - how?

 
  • 0 Vote(s) - 0 Average
Main menu plugin - how?
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2010-07-28, 08:14 AM
sub Wrote:Plugins can now act as the main menu menu
What interface(s) do I need to implement in order to make a alternative main menu plugin? Also, what needs to be changed in the settings screen or config file in order to use it once available?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#2
2010-07-28, 04:32 PM
Menu's just implement IScreenPlugin like other plugins. I've attached the code for the default menu.

In the Global.xml, you can then add a tag with something like <MenuType>Vertical</MenuType>, where "Vertical" would be the name return from your plugin's GetName() method.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2010-07-28, 06:03 PM
There's actually a lot of useful code in there full stop. Thanks for posting it sub.

Regarding the animation bit; how does the code make nPVR update the screen? I can't quite work that out.

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#4
2010-07-28, 06:12 PM
imilne Wrote:There's actually a lot of useful code in there full stop. Thanks for posting it sub.
No worries. The menu is actually not a lot of code.

Quote:Regarding the animation bit; how does the code make nPVR update the screen? I can't quite work that out.
It returns true from NeedsRendering if its still animating, which causes the app to call GetRenderList() then show the resulsts.

The animation is done based on time, rather than a number of steps, since different PCs can renderer at different rates. ie, it decides an animation will take 200ms, and records the time an animation started, then each time it calls GetRenderList will use the number of milliseconds since the animation started to determine where abouts in the animation it should be up to.
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#5
2010-07-29, 01:46 AM
Without knowing a lick of coding, this thread sounds very interesting to me.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#6
2010-07-29, 01:55 AM
Fatman_do Wrote:Without knowing a lick of coding, this thread sounds very interesting to me.
Yeah, hopefully we'll see some custom menus.

The app includes two styles of menu screen, the default one (horizontal sliding), and a vertical menu (no animated sliding).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,796 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,333 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,441 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,886 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,760 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,058 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,943 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,969 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,233 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,420 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode