protected override void link()
 {
     parentInterface = TransparencyController.getTransparencyObject(parentInterfaceName);
     if (parentInterface == null)
     {
         blacklist("Cannot find parent interface \"{0}\".", parentInterfaceName);
     }
     parentInterface.addSubInterface(this);
 }
 protected override void link()
 {
     base.link();
     watchingInterface = TransparencyController.getTransparencyObject(watchingInterfaceName);
     if (watchingInterface == null)
     {
         blacklist("Cannot find watching interface \"{0}\".", watchingInterfaceName);
     }
 }
Exemplo n.º 3
0
        internal void instantlyApplyBlended(List <TransparencyInterface> unvisitedInterfaces, float endAlphaValue, float percent)
        {
            TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject);

            if (obj != null)
            {
                obj.CurrentAlpha = NumberFunctions.lerp(alphaValue, endAlphaValue, percent);
                unvisitedInterfaces.Remove(obj);
            }
        }
Exemplo n.º 4
0
        public void instantlyApplyBlendPercent(List <TransparencyInterface> unvisitedInterfaces, float percent)
        {
            TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject);

            if (obj != null)
            {
                obj.CurrentAlpha += (alphaValue - obj.CurrentAlpha) * percent;
                unvisitedInterfaces.Remove(obj);
            }
        }
Exemplo n.º 5
0
        public void instantlyApply(List <TransparencyInterface> unvisitedInterfaces)
        {
            TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject);

            if (obj != null)
            {
                obj.CurrentAlpha = alphaValue;
                unvisitedInterfaces.Remove(obj);
            }
        }
Exemplo n.º 6
0
        public void timedApply(float time, List <TransparencyInterface> unvisitedInterfaces, EasingFunction easingFunction)
        {
            TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject);

            if (obj != null)
            {
                obj.timedBlend(alphaValue, time, easingFunction);
                unvisitedInterfaces.Remove(obj);
            }
        }