LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   XML modification help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=23)
-   -   preparing a new ui (https://www.lotrointerface.com/forums/showthread.php?t=350)

Aalwein 08-04-2007 12:01 AM

preparing a new ui
 
Alright guys, how do I generate the numbers needed to be subtracted from the X and Y values of the "ToolbarField."

I'm looking for the values in the formulas:
*screen resolution width* / 2 - *X VALUE*
and
*screen resolution height* - *Y VALUE*

I'm assuming the value is derived from the size of the letterbox image, but I can't figure out how to generate it.

D.H1cks 08-04-2007 06:43 AM

Are you trying to center the toolbar on the bottom of the screen? If so, then here are the fomulas:

X = (screenwidth/2) - (toolbarwidth/2)
Y = screenheight - toolbarheight

Aalwein 08-04-2007 01:29 PM

Thanks hicks, thats exactly what i was looking for.


All times are GMT -5. The time now is 05:00 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI