EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-10-2007, 09:51 AM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default 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 ?
Reply With Quote
  #2  
Unread 05-10-2007, 10:54 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

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.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 05-10-2007, 01:52 PM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default

Thanks ,got it working. here is the code of loot window with default "loot all" button and this button auto pressed after 6 seconds
Attached Files
File Type: xml eq2ui_inventory_loot.xml (8.5 KB, 413 views)
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 03:04 AM.


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