Thread: What's it mean?
View Single Post
Old 09-18-2005, 02:10 AM   #4
Desideratus
A Shissar Disciple
 
Desideratus's Avatar
 
Join Date: Feb 2005
Server: Venril Sathir
Posts: 125
Interface Author - Click to view interfaces
Default

There is a word document, AboutSIDL.doc, in the UI folder that sort of explains every element and sub-element - though sometimes it takes a bit of experimentation to understand what the explanation means!

Anyway, x is the horizontal and y the vertical dimension, and these increase from left to right and from top to bottom.

So: the top left corner of the screen is absolute position 0,0; the bottom right corner depends on resolution, but on today's most common resolution (thanks to millions of 17" and 19" TFT monitors) it's at 1279,1023.

In your example, the player window is designed to be placed at the top of the screen (y=0) and getting on for midway across (x=516); it's 124 wide (size CX=124), so the right hand edge is at x=640, right on an imaginary vertical line splitting the screen in half.

Relative position means, relative to its parent element: so the player gauge here has its top left position three pixels right (x=3) and no pixels down (y=0) from the window's top left corner.

The overall gauge is 108 wide and 41 deep. The text associated with the gauge (player name is hardcoded into this gauge, I believe) has been offset from the left of the gauge by 8 points - i.e. 11 points from the top left of the window. There's no down offset for the text. The name can therefore be 100 points wide before cutting off.

The gauge bar itself has been offset from the top of the gauge by 33 points - i.e. 33 points from the top left of the window. There's no offset from the left for the gauge.

Hope that helps.
Desideratus is offline   Reply With Quote