NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
How to display custom plugin names and descriptions.

 
  • 0 Vote(s) - 0 Average
How to display custom plugin names and descriptions.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#21
2010-01-01, 07:04 AM
That didn't work.

Martin.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#22
2010-01-01, 07:18 AM (This post was last modified: 2010-01-01, 07:27 AM by whurlston.)
Hmmm, I'm not sure then, sorry.

Edit: I just double checked and it turns out that I have my code in the wrong file. It's actually overriding BaseButtonListUiTask.getName() so if you are not implimenting BaseButtonListUiTask, that could be the issue.

BaseButtonListUiTask in turn implements IMenuTask so it looks like I have some code cleanup to do.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#23
2010-01-01, 07:39 AM
Yes WebRadio has that and I thought it was related. I just added that to the class that doesn't implement partial and it works, I did have to move a lot of code from the BaseButtonListUiTask interface to the new module but it probably will be cleaner.

Thanks.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#24
2010-01-01, 07:55 AM
I updated the first post with the correction. Now to move my code around (after I get some sleep)...
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#25
2010-01-01, 03:17 PM
Well, I added BaseButtonListUiTask to my class, and the name in the upper-left is still "Weather2". Maybe I'm confused on what needs to be done. I don't partial implement any classes.
Author of Weather (NPVR) & Weather2 (GBPVR)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#26
2010-01-01, 03:31 PM
Did you add override? ie

public override string getName()
{
return WizInfo.cfgGetString(mName, "Weather2Name", mName);
}

Martin
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#27
2010-01-01, 03:50 PM
Yes, I did...
Code:
public class WeatherTask : BaseButtonListUiTask, IMenuTask, IUiTask, IUiPopupCallback, WizUiList.CommandCallback
{
...
   public override string getName()
   {
        return WizInfo.cfgGetString(mName, "Weather2Name", mName);
   }
}
Author of Weather (NPVR) & Weather2 (GBPVR)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#28
2010-01-01, 10:50 PM
scb147 you can try return a hard code string to see if that helps. I had to take out the
BaseButtonListUiTask class because it impacted the Config.exe handling too much to dig into. In the activate event for the plugin I just use

Code:
SkinHelper2 skinHelper2 = new GBPVRX2.SkinHelper2(PluginIntName + @"\AnyValidSkin.xml");
                Hashtable args = new Hashtable();
                args["@screenName"] = this.getName();
                screenNameElement = new UiStatic(skinHelper2, "ScreenName", args);
                screenNameElement.SetArgs(args);

and it shows up using baseskin.xml without BaseButtonListUiTask

Martin
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#29
2010-01-03, 02:22 PM
Hey all, make sure this line is:
Code:
args["@screenName] = getName();

Otherwise you'll have problems Big Grin

Thanks, whurlston!
Author of Weather (NPVR) & Weather2 (GBPVR)
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#30
2010-01-03, 08:48 PM
No problem. Glad it got sorted. I don't set that property manually when implementing BaseButtonListUiTask so I didn't catch it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 462 2025-02-07, 09:14 AM
Last Post: tomx
  PIP plugin for Kodi sgilani 2 2,790 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,328 2020-11-14, 08:01 PM
Last Post: sub
  custom creation of a recurring error p37307 2 2,235 2017-12-19, 03:45 AM
Last Post: mvallevand
  VIdeo playback from plugin mvallevand 5 3,439 2015-08-06, 10:43 PM
Last Post: sub
  Custom recording rules mvallevand 58 21,762 2014-12-08, 03:28 AM
Last Post: mvallevand
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,882 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,756 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,055 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,942 2013-03-12, 06:48 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode