NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
Positioning of elements in skins (...and some other questions)

 
  • 0 Vote(s) - 0 Average
Positioning of elements in skins (...and some other questions)
ShiningDragon
Offline

Posting Freak

Germany
Posts: 1,493
Threads: 146
Joined: Sep 2005
#1
2010-07-20, 03:58 PM (This post was last modified: 2010-07-20, 04:14 PM by ShiningDragon.)
Hi!

Just a quick question: Is it possible to use absolutely positions for images within skins of nPVR? I started to "reactivate" my old WiP Skin and want to port it to nPVR.
But the procentual positions are not good and precise enough for me, so that the skin isn't looking well (enough for me) atm. I would need a pixelprecise mapping.

PS: Did i overlooked any kind of documentation for nPVR skinning?

Thanks in advance for any hint/tip/help Smile
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2010-07-20, 04:20 PM
ShiningDragon Wrote:Just a quick question: Is it possible to use absolutely positions for images within skins of nPVR? I started to "reactivate" my old WiP Skin and want to port it to nPVR.
But the procentual positions are not good and precise enough for me, so that the skin isn't looking well (enough for me) atm. I would need a pixelprecise mapping.
Like PVRX2 before it, NPVR uses percentages for its skins. This is pretty much the only way to get automatic support for multiple resolutions.

If you're wanting to position to exact pixels, you're obviously designing to fixed resolution display, so you can of course 'do the math' to make sure you're percentages are on the exact pixels where you want to position things. For example, if you're designing for a 1920x1080 screen, and need a element to be at pixel "430,100" then use "100/1920*430,100/1080*100" ie "22.39583,9.259259".

Personally, I think it seems like a waste of time developing a skin specifically for a single resolution.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2010-07-20, 04:20 PM
I can't check the API just now, but isn't there something that allows you to convert from skin co-ordinates to actual pixels? If so, you could define an element/image starting at 0,0 with size 100,100 and that would then give you the screen size. From there you might be able to paint wherever you want.

All in theory of course. I could just be talking complete bollocks Smile

Iain
ShiningDragon
Offline

Posting Freak

Germany
Posts: 1,493
Threads: 146
Joined: Sep 2005
#4
2010-07-20, 04:25 PM (This post was last modified: 2010-07-20, 04:42 PM by ShiningDragon.)
sub Wrote:Personally, I think it seems like a waste of time developing a skin specifically for a single resolution.
This is true, but if you (try) to built a skin with "Textures" instead playing with colours and frames, then is a precise positioning a must be. Otherwise it would be looking ugly and with every resolution other, than it should.

Ok, i`ll try your suggested method and hope, that the result will looks acceptable. Big Grin Thank you for answering. ^.^

Iain, that were a nice thing, me agrees.

EDIT
Let me show in pictures, what i mean:

[Image: mainmenuwgd9.jpg]
This one is an example, as i built this skin for gb-pvr. If the positioning is not precise, then it will look really, really awful.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2010-07-20, 06:02 PM
ShiningDragon Wrote:EDIT
Let me show in pictures, what i mean:

[Image: mainmenuwgd9.jpg]
This one is an example, as i built this skin for gb-pvr. If the positioning is not precise, then it will look really, really awful.
To be honest, I dont see anything in that screenshot that makes me think percentages wouldnt be inadequate. You can be very precise with percentages. ie, you dont have to use integer numbers - it does double precision floating point, so you can end up with very precise placement that looks correct at all resolutions. A person may have problems if they used your skin on a 4:3 display when you designed it for 16:9, but all 16:9 resolutions should look fine. I think you're worrying unnecessarily.
ShiningDragon
Offline

Posting Freak

Germany
Posts: 1,493
Threads: 146
Joined: Sep 2005
#6
2010-07-20, 06:16 PM
Yes, it seemed that i misunderstood something. Even with precise calculation (with a lot of numbers XD) the positions weren't perfect. But this is not your fault, it was my fault: my graphics had transparent borders... your recommendation is working as it should. Annoying to calculate, but it works. Smile

Another short question: Is it Possible to change the formatting of date/time within mainmenu? I can't find the formatting for this (currently DD, dd MM YYYY, hh:mm which is not attractive to me). I would prefer a split of clock / date like: hh:mmConfuseds(?) | dd.mm.yyyy or yyyy.mm.dd ?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2010-07-20, 06:22 PM
ShiningDragon Wrote:Another short question: Is it Possible to change the formatting of date/time within mainmenu? I can't find the formatting for this (currently DD, dd MM YYYY, hh:mm which is not attractive to me). I would prefer a split of clock / date like: hh:mmConfuseds(?) | dd.mm.yyyy or yyyy.mm.dd ?
Not currently, but I've made a couple of minor changes to enable this in the next release. Currently the skin can only use "@dateTime". For the next release you can also use "@date" and "@time", which provide the short date and short time strings.
ShiningDragon
Offline

Posting Freak

Germany
Posts: 1,493
Threads: 146
Joined: Sep 2005
#8
2010-07-21, 12:02 PM (This post was last modified: 2010-07-21, 12:24 PM by ShiningDragon.)
Ah, ok this is good to know.

Now i have another question: I need to know more about the (currently) working functions within nPVR. Which panel / function is already usable/viewable within nPVR. ATM i know, that the main menu has the vertical menu, a net radio display, a message windows centered of the screen and the datetime panel. Is there a way to see all panels active at the same time, so that i could better plan a skin?

And another question: The picture quality of displayed graphics is not as good, as it should be. A little bit unsharp. I think this has to do with the 3d graphicsmode. Is there a way to raise the picturequality of graphics? Currently i save the graphics into the .png format (32-Bit) with transparency.

We have a lack of documentation. ^^ The GB-PVR community skinguide is good, but there are a lot of open questions to me (one of the things, why i stopped the skin for gb-pvr 4 years before...)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2010-07-21, 04:23 PM
ShiningDragon Wrote:Ah, ok this is good to know.

Now i have another question: I need to know more about the (currently) working functions within nPVR. Which panel / function is already usable/viewable within nPVR. ATM i know, that the main menu has the vertical menu, a net radio display, a message windows centered of the screen and the datetime panel. Is there a way to see all panels active at the same time, so that i could better plan a skin?
No, you'd have to perform the actions that trigger those items to appear.

Quote:And another question: The picture quality of displayed graphics is not as good, as it should be. A little bit unsharp. I think this has to do with the 3d graphicsmode. Is there a way to raise the picturequality of graphics? Currently i save the graphics into the .png format (32-Bit) with transparency.
I cant say I've noticed it myself. Make sure you have the UI Rendering Resolution setting set to 'Auto' though, so that it renders to the same resolution as your desktop, since this gives the best quality.

Quote:We have a lack of documentation. ^^ The GB-PVR community skinguide is good, but there are a lot of open questions to me (one of the things, why i stopped the skin for gb-pvr 4 years before...)
Sorry, I dont see this type of documentation happening. If you have specific questions though, just ask and I'll do my best to give you decent answer.
ShiningDragon
Offline

Posting Freak

Germany
Posts: 1,493
Threads: 146
Joined: Sep 2005
#10
2010-07-21, 04:38 PM
sub Wrote:I cant say I've noticed it myself. Make sure you have the UI Rendering Resolution setting set to 'Auto' though, so that it renders to the same resolution as your desktop, since this gives the best quality.
Ok, i think i am understanding what is happening. It looks like AntiAliasing or something like this, also seems the quality to depends of the used graphicshardware and driver(-setting).

sub Wrote:Sorry, I dont see this type of documentation happening. If you have specific questions though, just ask and I'll do my best to give you decent answer.
Good, let's start with some basic things. While i plan the layout of the skin, i already tried a little. I saw some methods of displaying bitmaps like:
<Image source="Panel_ScreenName.png" location="0,0" size="100,100"/>
or
<Image location="0,0" size="100,100" source="button_background.png" />
possible more...

What is the difference between Image source / Image location and the other commands? For what is the vertical.xml within the Skin/Default/Menu folder? I removed this one without something happens to the main menu?
You like nPVR? Then please help pay the bills, and keep the project alive!

My happy NextPVR family

Frei nach Dieter Nuhr: Wenn man keine Ahnung hat, einfach mal die Fresse halten.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Couple of questions about hacking npvr.db3 drmargarit 6 4,208 2014-09-08, 02:22 AM
Last Post: sub
  Questions about Scraping from thetvdb and themoviedb craigrs84 0 2,492 2014-08-19, 05:30 PM
Last Post: craigrs84
  Random API questions whurlston 7 3,254 2012-08-09, 02:21 PM
Last Post: whurlston
  Skins. Grrr. Argh. imilne 41 12,774 2011-08-20, 02:28 AM
Last Post: Northpole
  Skins - sizes of fonts and UI objects etc? bgowland 4 2,012 2011-08-12, 04:05 AM
Last Post: sub
  NPVR database questions mvallevand 25 9,776 2011-01-06, 12:58 AM
Last Post: jksmurf
  List of Skin Elements ACTCMS 7 3,084 2010-12-22, 12:06 AM
Last Post: ACTCMS
  New to skins development dspdrew 1 1,313 2010-10-24, 11:22 AM
Last Post: sub
  List control skin elements McBainUK 1 1,715 2010-09-01, 06:17 AM
Last Post: sub
  Plugins and skins mvallevand 6 2,376 2010-01-21, 02:09 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode