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. =) |
Ohh you sly dog.
Thank you :D This will make some coding a bit more clean, hehe. Can't wait for the next GU. |
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:
|
Quote:
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. |
I like your interpretation better, I must stop being so pessimistic. :)
|
iTop=0
:P posted on wrong thread lol. |
All times are GMT -5. The time now is 04:26 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI