EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Dev Shack (https://www.eq2interface.com/forums/forumdisplay.php?f=11)
-   -   Setting Top,Left,Height,Width via script (https://www.eq2interface.com/forums/showthread.php?t=11430)

SOE-Rothgar 08-05-2008 04:58 PM

Setting Top,Left,Height,Width via script
 
I just fixed a bug setting these properties in UI Script.

The problem occurred if you tried to set the property equal to the result of an expression, for example:

parent.Control.Height = parent.Control.Height + parent.OtherControl.Height

The result of a numeric expression is returned as a float, but these 4 properties were parsing the value as a long which was not liking the fact that the value had a period in it.

This fix will go out with GU48 along with some more UI changes to keep you busy as if you guys didn't have enough to do. =)

Drumstix42 08-05-2008 05:00 PM

Ohh you sly dog.

Thank you :D
This will make some coding a bit more clean, hehe.

Can't wait for the next GU.

gm9 08-06-2008 02:31 AM

Wait, does that mean that you are no longer my hero Drumstix (i.e. is he setting those properties to FLOAT, which is what it sounds like to me, in which case /wrist), or is he just fixing the calculation problem? :eek:

Drumstix42 08-06-2008 06:45 AM

Quote:

Originally Posted by gm9 (Post 74923)
Wait, does that mean that you are no longer my hero Drumstix

:eek: :( :confused:


lol. I have no clue on either part. My first read of his post, meant that inputting values into the fields would trim off the decimals. Which is what we wanted previously.

gm9 08-06-2008 06:51 AM

I like your interpretation better, I must stop being so pessimistic. :)

Landiin 08-06-2008 08:57 AM

iTop=0

:P posted on wrong thread lol.


All times are GMT -5. The time now is 03:34 PM.

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