FOnline Development > Questions and Answers

GUI coordinates

(1/1)

davrot:
How can I precisely obtain button/text coordinates for use in the ini file? Thanks in advance.

JovankaB:
You create the interface in a graphics program and measure the coords there using available tools (rulers, rectangular selections etc). As far as I remember they are relative to top left corner of the parent element, I'm only not sure anymore if it's x1, y1, x2, y2 (coords of opposite corners) or x, y, width, height (coords of one corner + size). And yea, it's not particularly fun work. Maybe there is some easier way to do it but I don't know it.

davrot:
Thanks for the help, been doing it like that but it's too much time consuming. Oh well.

devis:
For reference, it is X1,Y1, X2,Y2 or TopLeft and BottemRight.

Navigation

[0] Message Index

Go to full version