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 - sizes of fonts and UI objects etc?

 
  • 0 Vote(s) - 0 Average
Skins - sizes of fonts and UI objects etc?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2011-08-12, 02:46 AM
Forgive me if this has been covered before (and I assume it has) and please point me in the right direction if there is an existing resource which covers this subject but...

Randomly picked from a skin xml file (Default\Popups\MessageBox.xml to be precise), what do the numbers for location and size mean...

Code:
<Rect location="15.45,35.45" size="54.15,0.15" fillColor="Accent1_Horizontal_FadeIn"/>
I'm guessing that based on varying screen sizes, resolution etc the numbers are percentages of width/height? In other words relative rather than absolute pixels. What about font sizes?

I've tweaked skins over the years with gbpvr and lately some for npvr but it has always just been a case of juggling numbers and seeing how it looked rather than understanding what I was doing.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2011-08-12, 02:58 AM
The size and location are percentages of the desktop resolution. ie, 0-100, where 50 would be half the width or height. This allows the skins to scale to different resolutions, and 4x3 vs 16x9.

Font sizes use formular to derive a point size from on the size specified in the skin vs the vertical resolution of the desktop, to give a standard appearance to the fonts, regardless of the resolution the user is running. This scheme generally works well, but can have some visual annomallies on 4x3 PAL 720x576 - conveniently not many people use that.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2011-08-12, 03:00 AM
<Rect location="25,20" size="50,60" fillColor="Accent1_Horizontal_FadeIn"/>

ie, at 1280x720, this rectangle would be:
x=(1280/100.0)*25=320
y=(720/100.0)*20=144
width=(1280/100.0)*50=640
height=(720/100.0)*60=432
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#4
2011-08-12, 03:49 AM
Thanks for the clarification - as I get older I regularly have moments where I think I thought I might have understood something but what was it again? Smile
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#5
2011-08-12, 04:05 AM
bgowland Wrote:Thanks for the clarification - as I get older I regularly have moments where I think I thought I might have understood something but what was it again? Smile
Big Grin I know that feeling. I blame on having too much on the go.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Coverart / fanart image sizes??? bgowland 3 2,210 2014-02-16, 11:50 PM
Last Post: bgowland
  Helper functions and objects mvallevand 7 3,033 2012-02-22, 01:12 AM
Last Post: sub
  Skins. Grrr. Argh. imilne 41 12,884 2011-08-20, 02:28 AM
Last Post: Northpole
  New to skins development dspdrew 1 1,329 2010-10-24, 11:22 AM
Last Post: sub
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,298 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  Plugins and skins mvallevand 6 2,389 2010-01-21, 02:09 AM
Last Post: mvallevand
  Trying to understand skins mkenyon2 1 1,331 2009-01-05, 10:03 PM
Last Post: psycik
  Transparency in skins Kevl 4 2,030 2007-10-30, 01:07 AM
Last Post: Kevl
  Using getnamedimage and images of specific sizes pastro 4 1,877 2007-09-26, 03:10 AM
Last Post: pastro
  xrecord ME style skins? chrisw 20 6,094 2007-01-14, 04:33 PM
Last Post: _Dude_

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

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

Linear Mode
Threaded Mode