Example #1
0
 // fires after the GUI component is instantiated
 void ComponentInstantiated(Component component)
 {
     //Slider slider = (Slider) component; // you can do a cast here
     component.AddEventListener(Trigger, delegate(Event e)
     {
         CollapseAlphaLeftTop tween = new CollapseAlphaLeftTop {Bounds = Bounds};
         tween.Play(e.Target);
         e.CancelAndStopPropagation();
         
         //Factory.Blueprint = tween;
         //Factory.Play(e.Target);
     }, EventPhase.Capture | EventPhase.Target);
 }
Example #2
0
    // fires after the GUI component is instantiated
    void ComponentInstantiated(Component component)
    {
        //Slider slider = (Slider) component; // you can do a cast here
        component.AddEventListener(Trigger, delegate(Event e)
        {
            CollapseAlphaLeftTop tween = new CollapseAlphaLeftTop {
                Bounds = Bounds
            };
            tween.Play(e.Target);
            e.CancelAndStopPropagation();

            //Factory.Blueprint = tween;
            //Factory.Play(e.Target);
        }, EventPhase.Capture | EventPhase.Target);
    }