NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
WizTools - 1.x Plugin Development Toolkit

 
  • 0 Vote(s) - 0 Average
WizTools - 1.x Plugin Development Toolkit
JavaWiz
Online

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#281
2009-06-28, 04:19 PM
Ommina Wrote:Well, maybe I should have said 'disabled' instead of 'unavailable'. I'm looking for a visually distinctive list item that indicates the video is unavailable.

It my case, it will represent the name of an episode for which the client does not have a playable file. I can add an icon to the line easily enough, but I would really like to dim the text a little bit. It's fine - in fact preferred - if it is still selectable (so unlike 'disabled' in that respect).

As I type this, I wonder if I could use a @textStyle property, although that would still be taking the colour choices out of the skin and into the plugin, which I find somewhat distasteful. Hmmm.
Here is one way to accomplish what you want.

In your skin, create text styles for list item test, avail and unavail.
Code:
<TextStyles>
    <TextStyle name="ListAvailableTextStyle"   color="White" size="12"/>
    <TextStyle name="ListUnavailableTextStyle" color="Gray"  size="12"/>
</TextStyles>

For you list item composite images, define the textStyle element as a variable.
Code:
<CompositeImage name="ListBoxListNormal" size="20.0,4.5">
     <DrawCommonImage name="ListViewNormalItemBackground"/>
     <DrawText text="@text" loc="0,0" size="100,100" textStyle="@[B]ListItemTextStyle[/B]" align="Left" valign="Center"/>
</CompositeImage>
<CompositeImage name="ListBoxListSelected" size="20.0,4.5">
    <DrawCommonImage name="ListViewSelectedItemBackground"/>
    <DrawText text="@text" loc="0,0" size="100,100" textStyle="@[B]ListItemTextStyle[/B]" align="Left" valign="Center"/>
</CompositeImage>
<CompositeImage name="ListBoxListSelectedInactive" size="20.0,4.5">
    <DrawCommonImage name="ListViewSelectedInactiveItemBackground"/>
    <DrawText text="@text" loc="0,0" size="100,100" textStyle="@[B]ListItemTextStyle[/B]" align="Left" valign="Center"/>
</CompositeImage>



In your code, as you build each item. assign the appropriate textStyle name to each of the items. In this case, any item with a 'c' in it will be marked 'unavailable'.
Code:
[SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] item = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]();[/SIZE]
[SIZE=2]item.AddProperty([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"@text"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], words[i]);[/SIZE]
[SIZE=2]item.AddProperty([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"@tag"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Word number "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + (i + 1) + [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]" in the paragraph"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (words[i].ToLower().IndexOf([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"c"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) > -1)[/SIZE]
[SIZE=2] item.AddProperty([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"@[B]ListItemTextStyle[/B]"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"[B]ListUnavailableTextStyle[/B]"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2] item.AddProperty([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"@[B]ListItemTextStyle[/B]"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"[B]ListAvailableTextStyle[/B]"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]itemList.Add(item);[/SIZE]


Attached is a full example of the working code...
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#282
2009-07-23, 02:57 PM
Javawiz, check your PM inbox Wink
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#283
2009-07-30, 03:57 PM
When you are writing logs within the configuration form using WizInfo.LogMessage(), where do they go? I thought they would go to the Config.exe.log, but I can't find anything.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#284
2009-07-30, 04:28 PM
If it isn't automatic you might want to take a look at the (from memory) Wizinfo.SetLogFileName() function.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Online

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#285
2009-07-31, 02:02 AM
scb147 Wrote:When you are writing logs within the configuration form using WizInfo.LogMessage(), where do they go? I thought they would go to the Config.exe.log, but I can't find anything.
It defaults to the executable that's running. In other words, if you've launched the config.exe program, selected the plugins tab, then your plugin from the list, the output should end up in config.exe.log.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#286
2009-08-07, 06:25 PM
JavaWiz Wrote:It defaults to the executable that's running. In other words, if you've launched the config.exe program, selected the plugins tab, then your plugin from the list, the output should end up in config.exe.log.
This doesn't seem to be working for me. I launch my plugin config form via the plugin tab of GBPVR config.exe. Then within the constructor of the plugin form, I have:
Code:
WizInfo.LogMessage(getName(), "Weather2ConfigForm", "Constructor ENTER");
Yet, this never appears in the config.exe.log file. Can you confirm this is not working, or am I doing something wrong?

Thanks!
JavaWiz
Online

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#287
2009-08-07, 10:00 PM
I am travelling at the moment, so do not have access to my development machine. I'll take a look at this when I return (now sometime around 8/17).
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#288
2009-08-29, 07:15 PM
JavaWiz Wrote:I am travelling at the moment, so do not have access to my development machine. I'll take a look at this when I return (now sometime around 8/17).
JW,
Just wanted to bump this so you could take a look at it when you get a chance. I still can't get logs working via the config app.
JavaWiz
Online

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#289
2009-09-01, 03:51 AM
Ok, I found the problem. Will post a new WizUiHelper.DLL within the next couple days...
JavaWiz
Online

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#290
2009-09-06, 03:22 AM
New version posted on the wiki (2009-09-04)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 27 28 29 30 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,048 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,528 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,524 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,613 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,989 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,852 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,302 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,013 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,845 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,197 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