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); } }
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); } }
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); } }
public void instantlyApply(List <TransparencyInterface> unvisitedInterfaces) { TransparencyInterface obj = TransparencyController.getTransparencyObject(transparencyObject); if (obj != null) { obj.CurrentAlpha = alphaValue; unvisitedInterfaces.Remove(obj); } }
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); } }