|
12-05-2008, 01:59 PM
|
A Griffon
|
|
Join Date: Aug 2007
Server: Unrest
Posts: 208
|
|
UI Builder Changes
I just realized that I made a change back in August so that the Left, Top, Width and Height functions would take a float value but apparently I forgot to push the version out to the patcher.
I'm going to do that today, but first I'm going to try to add an Int() function that will convert a value into and integer.
If you'd be interested in testing this version out before I patch it, I can send you a copy today. Just PM me your email address. I'd like to make sure the changes don't break anything.
|
12-05-2008, 02:17 PM
|
A Griffon
|
|
Join Date: Aug 2007
Server: Unrest
Posts: 208
|
|
While I'm working on this Evaluation hook, are there any other simple functions that would save you some work? I was thinking about adding int, abs, floor and ceil functions.
|
12-05-2008, 02:41 PM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
The int() function would be great, that would simplify many things. However we are currently using left, top, width, height not only to convert float to int, but also to shave off other characters at the end of a numeric string, such as a percentage sign. Therefore it would be great if the int() function would do that as well.
Your change will require a lot of mods to be changed (at least I assume that this does not only affect UIbuilder but also the ingame scripting engine) but this is a welcome change.
You can send me a copy of UIbuilder for testing although I'm more anxious to test in game on Test.
|
12-05-2008, 03:35 PM
|
A Griffon
|
|
Join Date: Aug 2007
Server: Unrest
Posts: 208
|
|
Quote:
Originally Posted by gm9
The int() function would be great, that would simplify many things. However we are currently using left, top, width, height not only to convert float to int, but also to shave off other characters at the end of a numeric string, such as a percentage sign. Therefore it would be great if the int() function would do that as well.
Your change will require a lot of mods to be changed (at least I assume that this does not only affect UIbuilder but also the ingame scripting engine) but this is a welcome change.
You can send me a copy of UIbuilder for testing although I'm more anxious to test in game on Test.
|
Hmm, can you give me an example? With the old version of our UI library, Left,Top,Width and Height were parsing the text as a Long value. If it encountered a non-numeric digit it should have failed and not set the value of the property. So I'm not sure how you are using it to strip non-numeric characters.
|
12-05-2008, 03:51 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
I think gm9 meant to say we're using Top, Left, Width and Height to get Integers after we put values into the comma delimited values like Location and Size.
Not sure about percentages. Been outta the loop with stuff the past few weeks.
Code:
iMathEvaluation=4+4
Parent.Location=(iMathEvaluation ## ', 0')
Random.Value.That.Needs.To.Be.Int=Parent.Left
Simple function requests? Hmm... I coulda sworn I had some ideas. You've put me on the spot now!
Last edited by Drumstix42 : 12-05-2008 at 03:58 PM.
|
12-05-2008, 04:29 PM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by Drumstix42
I think gm9 meant to say we're using Top, Left, Width and Height to get Integers after we put values into the comma delimited values like Location and Size.
Not sure about percentages. Been outta the loop with stuff the past few weeks.
Code:
iMathEvaluation=4+4
Parent.Location=(iMathEvaluation ## ', 0')
Random.Value.That.Needs.To.Be.Int=Parent.Left
|
True for comma delimited values.
Percentages is actually something I thought you discovered Drumstix, lol. To shave off percentages I think you can use the Top, Left, Width, Height directly:
Code:
Left=Parent.Spell_Cast_Percent.Text
Or my code has a bug, which is a possibility.
Edit: Yup, you discovered it: http://www.eq2interface.com/forums/s...9&postcount=13
Last edited by gm9 : 12-05-2008 at 04:37 PM.
|
12-05-2008, 05:22 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
Quote:
Originally Posted by Drumstix42
Simple function requests? Hmm... I coulda sworn I had some ideas. You've put me on the spot now!
|
Ohh I remember now... we were trying to convert certain dynamic data values that had %'s and decimals I think? and there was no way to do that.
12.9% for example, and the reasoning originally was because we wanted to subtract and add percentages. Direct reasoning because there was no dynamic data available outside a tooltip for avoidance percent.
|
12-05-2008, 03:52 PM
|
|
A man among men
|
|
Join Date: Dec 2004
Server: Nagafen
Posts: 934
|
|
I'm not sure if this is UIBuilder related or not, but LocationEffector does not work vertically. I tried this in UIBuilder and it did not work.
__________________
May Jesus Have Mercy On Us
|
12-05-2008, 02:48 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
haven't used the live one in a while, been using the last one you sent me. Just figured you wasn't as forgetful as me o_O Ya send me the new build and I'll run it. I'll email you also.
As for more function
A function like Windows StringCchCopyW API would be killer
edit
Changed Copy to StringCchCopyW, I've use my own wrapper for to long now..
Last edited by Landiin : 12-05-2008 at 03:15 PM.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:41 PM.
|
|