EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Dev Shack

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-05-2008, 01:59 PM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default 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.
Reply With Quote
  #2  
Unread 12-05-2008, 02:17 PM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default

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.
Reply With Quote
  #3  
Unread 12-05-2008, 02:41 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #4  
Unread 12-05-2008, 03:35 PM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default

Quote:
Originally Posted by gm9 View Post
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.
Reply With Quote
  #5  
Unread 12-05-2008, 03:51 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

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!
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 12-05-2008 at 03:58 PM.
Reply With Quote
  #6  
Unread 12-05-2008, 04:29 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by Drumstix42 View Post
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
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 12-05-2008 at 04:37 PM.
Reply With Quote
  #7  
Unread 12-05-2008, 05:22 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Quote:
Originally Posted by Drumstix42 View Post
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.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #8  
Unread 12-05-2008, 03:52 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

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
Reply With Quote
  #9  
Unread 12-05-2008, 02:48 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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..
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 12-05-2008 at 03:15 PM.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:49 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI