More....
Can you explain "alpha="130", "alpha="200", etc. in the skin file?
Also, I converted the Test3 C# code to Visual Basic.
Everything went well except for 2 items; "IPlugin Callback" and "IPluginConfiguration".
Can you tell me what they are for?
I've been going over all the skin files trying to figure out how to make things happen.
Some things I can get, others I can't seem to find any info on.
For example, how would I change the overall screen background?
jrockow Wrote:More....
Can you explain "alpha="130", "alpha="200", etc. in the skin file?
These are how transparent an item is. The range is 0-256.
Quote:Also, I converted the Test3 C# code to Visual Basic.
Everything went well except for 2 items; "IPlugin Callback" and "IPluginConfiguration".
Can you tell me what they are for?
I don't write VB myself, so can't tell you the exact syntax for these. They're definitely possible though, because others have done it in the past.
IPluginConfiguration is used if you wanted to provide a configuration screen in Settings->Plugins.
IPluginCallback is only used if you want to call some other screen or popup, and receive info back from it.
I've been going over all the skin files trying to figure out how to make things happen.
Some things I can get, others I can't seem to find any info on.
For example, how would I change the overall screen background?
You'd need to do a couple of things. Below is code I haven't compiled, but shows the basic steps.
In your skin file add an element that defines the location and size of the thing you want to show, and what you want to show in it (images/text/shapes etc):
jrockow Wrote:It's going pretty good so far.
Think I'm starting to get the hang of it.
However, I have more questions:
My biggest problem at the moment is not knowing what's available for me to use.
It looks like I figured out how to get the NAME, FILENAME, STATUS, STARTTIME and EVENTOID from the DB.
I don't know how to get the DESCRIPTION or SUBTITLE.
I also don't know how to sort the columns.
With the other plugin I created I made my own call to the DB so I had no problem getting those values.
If you could help me with that I would appreciate it.
As shown in the example above, you can use the ScheduledRecording.LoadAll() method to load the list of recordings.
If you'd like the subtitle, check if it has EPGEvent details, then use that info:
Code:
if (recording.CachedEventDetails != null && recording.CachedEventDetails != "")
{
EPGEvent epgEvent = EPGEvent.Parse(recording.CachedEventDetails);
// use attributes like epgEvent.SubTitle
}
It wont have these CachedEventDetails it was a manual recording. ie, just recording a specified channel at a specified time.
'System.Collections.Generic.List<NUtility.ScheduledRecording>' does not contain a definition for 'CachedEventDetails' and no extension method 'CachedEventDetails' accepting a first argument of type 'System.Collections.Generic.List<NUtility.ScheduledRecording>' could be found (are you missing a using directive or an assembly reference?)
CODE: If recordings. IsNot Nothing AndAlso recordings.CachedEventDetails <> "" Then
Error Loading New Skin Element:
Value of type 'System.Collections.Generic.List(Of NUtility.UiElement)' cannot be converted to 'NUtility.UiElement'.