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!
|