![]() |
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 ? |
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. |
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