NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 13 14 15 16 17 … 93 Next »
Skins. Grrr. Argh.

 
  • 0 Vote(s) - 0 Average
Skins. Grrr. Argh.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2011-08-09, 08:29 AM
Attached are three skin files that I use to flick between different views in a list. They're in separate files because ultimately my plugin (Videos+) will have multiple views per list type (eg, there may be several views that end up using the HORIZONTAL_ICON mode).

At the moment, the skin is pretty much a cut and paste from Hairy/sub's default. Here's what I currently can't get my head around:

The list view (view-0.xml) defines a section for its metadata - ListSelectionMetaData - which is all the stuff (titles, posters, description, etc) that goes on the right hand side. It also has a different section - ListPosition - for the position bar along the bottom.

But the other two views just have CoversSelectionMetaData and IconSelectionMetaData that only really define the position bar.

My problem is that I want to expand them to include more metadata in their views, but also keep the position bar. Should the UiList code go looking for a "CoversPosition" if I define that (because it doesn't appear to). I'm so bad with skins that I couldn't possible extend the current CoversSelectionMetaData bit to fill the screen, but still leave the position bar part of it in the same place.

I'm not explaining this very well am I...

Iain
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#2
2011-08-09, 01:09 PM
Well, I started skinning the plugin yesterday. I haven't gotten too far yet but I can take a look at the default skin and see what I can do. You want to extend the CoversSelectionMetaData section, are you thinking about using the entire top half of the screen?

If you want to use part of the screen in Iconview, you'll need to change the 3 row x 7 columns layout to something else to free up some screen space. What did you have in mind there?
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#3
2011-08-09, 02:00 PM
Iain,

You could try this as a starting point in the Covers view.

Code:
<Element name="CoversSelectionMetaData" location="0,7.92" size="100,84.16" alpha="255" alphaFade="true">
    <RoundedRect location="0.25,0.25" size="99.5,99.5" fillColor="Transparent" borderColor="White" radius="0.1" borderWidth="1px"/>
    <Rect location="-2,94.49" size="104,5.51" fillColor="BaseColor2"/>
    <Text text="@name" location="0,94.49" size="100,5.51" font="Title1" align="Center" valign="Center"/>
    <Text text="File:" location="85.36,94.49" size="10,5.51" font="Title2Small" align="Left" valign="Center"/>
    <Text text="@positionInfo" location="0,94.49" size="95.36,5.51" font="Title3Minimum" align="Right" valign="Center"/>
  </Element>

This gives you the use of just about 85% of the screen. The white border shows the edge of the element.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#4
2011-08-09, 03:53 PM (This post was last modified: 2011-08-09, 03:58 PM by imilne.)
Northpole Wrote:Well, I started skinning the plugin yesterday
Heh, don't get too far ahead of yourself because it'll probably still be ages yet before the plugin is ready. Although saying that, the skin stuff it has so far is pretty much identical to the list views in the default skin (and the basic and details popups) so converting it for NextBlue will be easy (for now).

Northpole Wrote:You want to extend the CoversSelectionMetaData section, are you thinking about using the entire top half of the screen?

The plugin will actually go looking for any skin file called view-[number].xml (sequentially), the idea being that the user - or skin authors - could design additional views beyond what the plugin itself knows about. Every view will be based around one of the three list modes, and then you could throw in whatever metadata tags (@title, @poster, @director, @codec etc) I end up supporting. The plan at the moment was to mirror the three "default" views, list, covers, and icon, and then start creating new views that provide the kind of information seen elsewhere, eg:

[Image: aeon_info.jpg]

[Image: aeon_movieroller.jpg]

[Image: g6.jpg]

I've actually cheated in one of the views and moved the covers mode list off the screen entirely, so the entire screen can be used for metadata (or fanart), but the list still allows navigation.

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#5
2011-08-09, 03:55 PM
Northpole Wrote:This gives you the use of just about 85% of the screen. The white border shows the edge of the element.

Thanks, I'll give that a go later. Is there no way to keep the @positionInfo stuff separate though, so the bar maintains a consistent position across all the views? (I haven't tried your example yet, and it may well do, but it must have taken some awkward calculations if so?)

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#6
2011-08-09, 04:28 PM
I should add that the multiple view thing was to allow, for example, one view that might be suitable for a folder full of movies (with posters), and another - different - view, more suitable for tv shows (with banners). This way you wouldn't have to tell the plugin in advance what all the folders contain; you can just control it with the views, as it remembers the view selected for each folder.

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#7
2011-08-09, 05:36 PM
Historically the position info was displayed in the selection metadata element for each of the list views. I cant remember the exact details, but one of the skins wanted to locate the position info somewhere else in list mode, so I added support for this separate element. I cant remember why I didnt add it for all the views at the time, but I've now made that possible in the next release. ie, like the "ListPosition" element, you can provide an "IconPosition" and/or "CoversPosition". They're done separately for each view since you may need this info in different locations depending on the view.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#8
2011-08-09, 05:50 PM
Ah, that sounds like what I'm after sub, thanks! That should make things much easier for my skin-challenged brain.

Iain
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#9
2011-08-09, 05:51 PM
This will produce the single sliding image like the star trek example above:

Code:
<VideosPlus type="Covers" name="Movie Details View"/>
  
  
  <Element name="CoversView" location="0,0" size="1,1" alpha="255" visibleItems="1"/>

  <Element name="CoversItem" location="0,0" size="100,100" alpha="255" alphaFade="true">
    <Image source="@previewImage" location="0,0" size="38.3,100" fixedAspectRatio="true" />
        <Rect location="38.3,0" size="61.7,100" fillColor="DimGray"/>

        <RoundedRect location="38.3,10" size="61.7,20" fillColor="Transparent" borderColor="White" radius="0.1" borderWidth="2px"/>
    <Text text="MetaData Here blah blah" location="38.3,10" size="61.7,20" font="DefaultSmall" wrap="true"/>

        <RoundedRect location="38.3,30" size="61.7,30" fillColor="Transparent" borderColor="White" radius="0.1" borderWidth="2px"/>
    <Text text="MetaData Here Again blah blah" location="38.3,30" size="61.7,30" font="DefaultSmall" wrap="true"/>

        <RoundedRect location="38.3,60" size="61.7,40" fillColor="Transparent" borderColor="White" radius="0.1" borderWidth="2px"/>
    <Text text="More MetaData Here blah blah" location="38.3,60" size="61.7,40" font="DefaultSmall" wrap="true"/>
  </Element>

  <Element name="CoversSelectionMetaData" location="0,87.44" size="100,4.64" alpha="255" alphaFade="true">
    <Rect location="-2,0" size="104,100" fillColor="BaseColor2"/>
    <Text text="@name" location="0,0" size="100,100" font="Title1" align="Center" valign="Center"/>
    <Text text="File:" location="85.36,0" size="10,100" font="Title2Small" align="Left" valign="Center"/>
    <Text text="@positionInfo" location="0,0" size="95.36,100" font="Title3Minimum" align="Right" valign="Center"/>
  </Element>
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#10
2011-08-09, 05:57 PM
The problem I notice in doing this little test was that the image size and aspect ratio may cause problems with gaps on the sides of the display. If all your images are the same size and aspect ratio, this works great, but if they differ then you won't get edge to edge coverage. In win xp MCE they zoom the image to fill the preview area while maintaining the aspect ratio.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skins - sizes of fonts and UI objects etc? bgowland 4 2,030 2011-08-12, 04:05 AM
Last Post: sub
  New to skins development dspdrew 1 1,323 2010-10-24, 11:22 AM
Last Post: sub
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,287 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  Plugins and skins mvallevand 6 2,384 2010-01-21, 02:09 AM
Last Post: mvallevand
  Trying to understand skins mkenyon2 1 1,326 2009-01-05, 10:03 PM
Last Post: psycik
  Transparency in skins Kevl 4 2,017 2007-10-30, 01:07 AM
Last Post: Kevl
  xrecord ME style skins? chrisw 20 6,070 2007-01-14, 04:33 PM
Last Post: _Dude_
  Common Images Plugins Skins & Community Skin Project MixMan 98 20,959 2006-08-24, 01:51 PM
Last Post: MixMan
  Date formatting in skins dinki 4 2,008 2006-03-29, 08:55 PM
Last Post: Jeff
  Drawimage in skins McBainUK 8 2,530 2005-10-12, 09:14 PM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode