NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 89 90 91 92 93 Next »
Skins to support weather plugin

 
  • 0 Vote(s) - 0 Average
Skins to support weather plugin
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#1
2004-04-19, 01:20 AM
For a skin to support weather, you need to create a 'weather' subdir and make sure the following buttons are there:

Current
Map
Forecast
Main Menu

Weather button for the main menu.

Get the file names from the blue skin.

You don't need to worry about weather icons, they are skin-neutral.
-CodeMonkey
gplasky
Offline

Member

Posts: 77
Threads: 3
Joined: Jan 2004
#2
2004-04-19, 11:55 AM
Issues with plugins for MCE like skin:

Need some help with the following issues:

1. Weather and Shutdown buttons on Main Menu appear to be hard coded somewhere. They appear in their own size which cuts off the buttons I have and they have their own text. I need to be able to define the button like in the main menu folder just like I have done with the other buttons in there. (Or possibly their main menu buttons can reside in their respective folders-I just need to be able to create the graphic and the text and put the button graphic somewhere. Maybe it's own folder would be better.)
2. Weather button on main menu-I am getting an exception error when I choose or click on this button. Here it is:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
at ag.c()
at ag.a(String A_0)
at ag.a(Message& A_0)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Shutdown button works fine (but see#1 for my issue) and I have completed that for my skin. Can you give me some help or ideas where to start?

Gerry
Big Gerr
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#3
2004-04-19, 12:06 PM
If you can put your modified skin somewhere I can get it, I will run with it tonight and see what the exception is. I'm guessing its missing a button file, but when I start up with the MCE skin I don't even get a weather button on the main menu now.
-CodeMonkey
gplasky
Offline

Member

Posts: 77
Threads: 3
Joined: Jan 2004
#4
2004-04-19, 01:17 PM
Grab it here

MCE like with Weather and Shutdown

The shutdown plugin doesn't throw an exception so that may help in troubleshooting. But both the main menu buttons seem hard defined and I need a way to replace those with mine. Possibly place the button in it's folder and use a skins.xml file to use it. Just thinking out loud. Or just maybe make standard programming for all plugins that it's main menu button is contained in the plugin's skin folder.

Gerry
Big Gerr
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#5
2004-04-19, 03:00 PM
Personally, I like your second option of having the buttons defined in the plugins skin folder.  But sub will decide. [Image: smile.gif]

Before I forget, you can get rid of the unknown.png file. It actually is for the weather icons. Sub, you can remove it as well from the blue skin.

Thanks for the updated skin, I will fire it up tonight.
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,734
Threads: 767
Joined: Nov 2003
#6
2004-04-19, 05:50 PM
Gerry, I see what is going on. I'll fix it.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#7
2004-04-19, 05:59 PM
Sub, you will fix the button looking funny or the exception or both? [Image: smile.gif]
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,734
Threads: 767
Joined: Nov 2003
#8
2004-04-19, 06:00 PM
Both hopefully. I dont know whats causing the exception yet.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#9
2004-04-20, 12:48 AM
Sub, I set breakpoints at the start of WeatherTask() and at the start of render().  It got to WeatherTask and I was able to step through and it completed successfully.  When I pressed the weather button, it never got to render() and just exited.

This is the only thing that looked unusual in the output pane:

The thread 'Shoutcast Async Download thread' (0xf54) has exited with code 0 (0x0).

That could have happened due to the shutdown.  I never saw an exception running it in the debugger though, it just exited.
-CodeMonkey
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#10
2004-04-20, 09:41 AM
Up
-CodeMonkey
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows FM Radio support in v5. mvallevand 125 27,940 2023-01-29, 08:13 PM
Last Post: mvallevand
  FM tuner support in NextPVR? Goongyae 2 1,452 2022-11-23, 01:22 PM
Last Post: mvallevand
  PIP plugin for Kodi sgilani 2 2,938 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,438 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,510 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,941 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,801 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,177 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,979 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,058 2012-08-12, 07:56 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