EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Timed event (https://www.eq2interface.com/forums/showthread.php?t=8379)

Migerus 05-10-2007 09:51 AM

Timed event
 
I am trying to add a timer to window, which will close it in 3-5 seconds. The idea is to make loot window press ok automatically in a few seconds, and especially autoclose the stupid window which asks for confirmation for no-trade items (I got really tired from confirming that I wanna loot something when I am not even groupped so there is nobody else who may need it)

I think it's pretty easy but cant find out how to do that.
To close window right away I probably can use on show event, but how to close window after few seconds ?

Deathbane27 05-10-2007 10:54 AM

Create an EffectorCycleColor. Set MinSpeed, MaxSpeed, and Speed to 1.0, and Duration to however long you want it to wait.

In the window's OnShow script, have it show a dummy object. Also have it re-hide the object in the window's OnHide script.

Set the dummy's OnShowEffector to the EffectorCycleColor you created, and have the OnEffectorFinish event trigger the button press.

Note 1: It works in UIBuilder, can't test in-game at this point.

Note 2: I highly recommend against creating such a window unless you put in a way to turn the feature off in-game. Accidentally looting Fabled no-trade items you can't use while in a group makes me sad. You won't like me when I'm sad. Maybe have it check the status of the Titlebar or something.

Migerus 05-10-2007 01:52 PM

1 Attachment(s)
Thanks ,got it working. here is the code of loot window with default "loot all" button and this button auto pressed after 6 seconds


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

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