How to Determine Aspect Ratio of Skin? (1 Viewer)

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
42
Texas
Home Country
United States of America United States of America
I am working on the installer for Moving Pictures, and we have a "generic skin". Basically a set of skin and media files that are designed to work when dropped into ANY skin. There are a few problems installing this sort of thing in random skins already on the users system, most of which I think I have already solved. But I need to figure out a simple way to determine a skin's aspect ratio.

Basically I need to be able to look at a single tag of a single skin file and know if the 16x9 or 4x3 skin would be a better fit. Any ideas?
 

explodedk

Portal Pro
December 27, 2008
265
20
Copenhagen
Home Country
Denmark Denmark
the aspect is set in the references.xml file like this :

Code:
  <skin>
    <width>1280</width>
    <height>720</height>
    <version>1.0.0.0</version>
  </skin>

and then make some scripting saying if 1280x720 == 16:9

aint that what you are looking for ?
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
42
Texas
Home Country
United States of America United States of America
  • Thread starter
  • Moderator
  • #3
Yep, I figured it out shortly after I posted. Guess I should have taken a peek at the skin designers guide first. :oops:

Thanks though.
 

Users who are viewing this thread

Top Bottom