示例#1
0
        public virtual void GrabFinished()
        {
            if (this as SC_AttackCard)
            {
                CommonEffect effect = new CommonEffect();

                foreach (CommonEffect c in commonEffects)
                {
                    if (c.effectType == CommonEffectType.Grab)
                    {
                        effect = c;
                    }
                }

                SetCurrentEffect(effect);

                GrabPerform();

                StartCoroutine(GrabFinishedCoroutine());
            }
            else
            {
                FinishedUsing();
            }
        }
示例#2
0
        private void _ApplyEffects(IMAGE32DC dc)
        {
            var effectContext = new CommonEffect <Rgba32>();

            effectContext.DropShadow.Enabled    = DropShadowEnabled;
            effectContext.DropShadow.Color      = DropShadowColor;
            effectContext.DropShadow.Opacity    = DropShadowOpacity;
            effectContext.DropShadow.BlendMode  = PixelColorBlendingMode.Multiply;
            effectContext.DropShadow.Angle      = DropShadowAngle;
            effectContext.DropShadow.Distance   = DropShadowDistance;
            effectContext.DropShadow.BlurRadius = DropShadowRadius;
            effectContext.DropShadow.Intensity  = DropShadowIntensity;

            effectContext.InnerShadow.Enabled     = InnerShadowEnabled;
            effectContext.InnerShadow.Color       = InnerShadowColor;
            effectContext.InnerShadow.Opacity     = InnerShadowOpacity;
            effectContext.InnerShadow.BlendMode   = PixelColorBlendingMode.Multiply;
            effectContext.InnerShadow.Angle       = InnerShadowAngle;
            effectContext.InnerShadow.Distance    = InnerShadowDistance;
            effectContext.InnerShadow.BlurRadius  = InnerShadowRadius;
            effectContext.InnerShadow.Intensity   = InnerShadowIntensity;
            effectContext.InnerShadow.InvertAlpha = true;

            effectContext.OuterGlow.Enabled    = OuterGlowEnabled;
            effectContext.OuterGlow.Color      = OuterGlowColor;
            effectContext.OuterGlow.Opacity    = OuterGlowOpacity;
            effectContext.OuterGlow.BlendMode  = PixelColorBlendingMode.Add;
            effectContext.OuterGlow.BlurRadius = OuterGlowRadius;
            effectContext.OuterGlow.Intensity  = OuterGlowIntensity;

            effectContext.InnerGlow.Enabled       = InnerGlowEnabled;
            effectContext.InnerGlow.Color         = InnerGlowColor;
            effectContext.InnerGlow.Opacity       = InnerGlowOpacity;
            effectContext.InnerGlow.BlendMode     = PixelColorBlendingMode.Add;
            effectContext.InnerGlow.BlurRadius    = InnerGlowRadius;
            effectContext.InnerGlow.Intensity     = InnerGlowIntensity;
            effectContext.InnerShadow.InvertAlpha = true;

            dc.ApplyCommonEffect(effectContext);
        }
示例#3
0
        public void SetCurrentEffect(CommonEffect e)
        {
            CurrentEffect = e;

            effectTarget = e.effectOnOpponent ? Receiver : Caller;
        }