EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-14-2006, 04:53 PM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default OnEffectFinished

OnEffectFinished is an event that is posted to the target of an Effector, when the effector is done.
Set the SetOnEffect on the Effector to true, and you should be good to go.

You cannot, however, do something like this:
Code:
OnActivateEffector="MyEffector"
OnDeactivateEffector="MyEffector2"
OnEffectFinished="Activated = ! Activated"
This will crash your stack, and eventually your game.

I found little use for it, maybe someone else does?

Daniel

Edit: Added ED -Deathbane27

Last edited by Deathbane27 : 01-14-2006 at 08:30 PM.
Reply With Quote
  #2  
Unread 01-14-2006, 06:48 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

When did THIS get added!?!?!


Repeating cycles are a Bad ThingTM, but does it work for, say, delaying an action? Press a button, trigger a 5-second Effector, then trigger something else when the effector is finished?
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 01-14-2006, 07:09 PM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default

Yeah that works =) It's the perfect delay event.
Might want to mod this one in order to get it to work =P
This is basically a 30s delay.

Code:
<Page Name="Randomness" Size="1,1" Location="0,0" OnActivateEffector="MyEffector" 
OnEffectFinish="Parent.MyButton.LocalText = finished">
<LocationEffector Name="MyEffector" TargetLocation="30,0" Speed="1,0"
 SetOnEffect="true" />
</Page>
Reply With Quote
  #4  
Unread 01-14-2006, 07:38 PM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default

CORRECTION : OnEffectFinished not OnEffectFinish
'ed' fell off ; )
Reply With Quote
  #5  
Unread 01-14-2006, 08:05 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

Erahain being you are on a roll maybe you can figure out the clock object. I've tried every thing I can think of. I've use properties of activate, count, maxcount, mincount position ect.. nothing seems to work with it, but yet its an object that is built into the UIBuilder so it has to be there for some reason.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #6  
Unread 01-14-2006, 08:31 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Quote:
Originally Posted by Erahain
CORRECTION : OnEffectFinished not OnEffectFinish
'ed' fell off ; )
Thread title edited.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #7  
Unread 01-14-2006, 08:31 PM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default

I'll look into it, but I think that's something they haven't implemented
yet. Thus no properties exists for it =)

I'm currently working on a library interface module called EQ2Ext which
adds arrays, dynamic lists, for/while loops, timer events and so on.

How many would be interested in such a thing you think?

It's written purely in XML, so no random modifications.. just
loads of workarounds =)
Reply With Quote
  #8  
Unread 01-14-2006, 10:57 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

Quote:
Originally Posted by Erahain
I'll look into it, but I think that's something they haven't implemented
yet. Thus no properties exists for it =)

I'm currently working on a library interface module called EQ2Ext which
adds arrays, dynamic lists, for/while loops, timer events and so on.

How many would be interested in such a thing you think?

It's written purely in XML, so no random modifications.. just
loads of workarounds =)
I think that also but /shrug like I said you are on a roll lol.

I also think there are a other things that the ui can do that they havn't told us or maybe don't know /shrug Like FontCharacter Its not an object you can inject with the uibuilder you have to edit it in to the XML. I'm just wondering what else is out there that isn't in the UIbuilder.

You lib sounds great, I've started on somethings kind of like that, but if your doing it I'll hold off as my progress is slow between work,playing and the kids.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 01-14-2006 at 11:02 PM.
Reply With Quote
  #9  
Unread 01-15-2006, 04:12 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Quote:
Originally Posted by Landiin
/shrug Like FontCharacter Its not an object you can inject with the uibuilder you have to edit it in to the XML.
I think that's what the included BuildFont tool is for.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #10  
Unread 01-15-2006, 05:43 AM
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

Maybe I just build my own, I have never never used it. But still the FontCharacter isn't listed in the object pallet but yet it is a legal object. I guess you could use Aplication Object to add not real sure how that works either lol.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #11  
Unread 01-16-2006, 08:19 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

The OnEffectFinished item is great! I've been using it off and on in different mods for a while.

The mail mod uses it to update the text box description of the attachment, my price entry mod used to use 4 of them to key in the price it had in memory, one button every 0.2 seconds - until I found out it was possible to just press all the buttons at the same time and still get them to execute in a predictable order.

One caution: A window cannot close while an effector is running, so if you have a 30 second delay going on, but someone wants to close the window - they'll be staring at it until your effector finishes.

I'm also using an effector in the cartesian addition thread in this forum about adding coordinates together. The fastest speed I've found that does anything is 9.9 - 10 and anything that rounds to 10 appears to be infinite speed. Maybe they used the Star Trek Warp Scale?

Two Caution: Messing with OnEffectFinished seems to be a REALLY good way to crash UI Builder. Save your beautiful work before touching it. Nice innocous looking pieces of code swing up the "UIBuilder needs to close" window.

Good Luck
Mother
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
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 10:40 PM.


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