fodev.net

FOnline Development => Questions and Answers => Topic started by: davrot on November 29, 2014, 11:33:15 am

Title: GUI coordinates
Post by: davrot on November 29, 2014, 11:33:15 am
How can I precisely obtain button/text coordinates for use in the ini file? Thanks in advance.
Title: Re: GUI coordinates
Post by: JovankaB on November 30, 2014, 09:38:00 am
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.
Title: Re: GUI coordinates
Post by: davrot on November 30, 2014, 01:43:46 pm
Thanks for the help, been doing it like that but it's too much time consuming. Oh well.
Title: Re: GUI coordinates
Post by: devis on December 01, 2014, 09:46:44 pm
For reference, it is X1,Y1, X2,Y2 or TopLeft and BottemRight.