Exemplo n.º 1
0
 protected override void preportyReset(Control.PreType pt)
 {
     if (pt == PreType.Enable && Enable)
     {
         _trans_alpha = 0;
     }
 }
Exemplo n.º 2
0
        protected override void preportyReset(Control.PreType pt)
        {
            switch (pt)
            {
            case PreType.Alpha:
                foreach (Control ctrl in controlList)
                {
                    ctrl.Alpha = Alpha;
                }
                break;

            case PreType.Enable:
                foreach (Control ctrl in controlList)
                {
                    ctrl.Enable = Enable;
                }
                break;

            case PreType.Position:
                Vector2 diff = Position - prvPos;
                foreach (Control ctrl in controlList)
                {
                    ctrl.Position += diff;
                }
                break;

            case PreType.Region:
                break;

            case PreType.TranTime:
                foreach (Control ctrl in controlList)
                {
                    ctrl.TransitionTime = TransitionTime;
                }
                break;
            }
        }
Exemplo n.º 3
0
 protected override void preportyReset(Control.PreType pt)
 {
 }