Exemplo n.º 1
0
        public FxRectAppearance(AlchemyNode ale) : base(ale)
        {
            AleParameter temp;

            if (ale.TryGetParameter("RectApp_CenterOnPos", out temp))
            {
                CenterOnPos = (bool)temp.Value;
            }
            if (ale.TryGetParameter("RectApp_ViewingAngleFade", out temp))
            {
                ViewingAngleFade = (bool)temp.Value;
            }
            if (ale.TryGetParameter("RectApp_Scale", out temp))
            {
                Scale = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("RectApp_Length", out temp))
            {
                Length = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("RectApp_Width", out temp))
            {
                Width = (AlchemyFloatAnimation)temp.Value;
            }
        }
Exemplo n.º 2
0
        public FxOrientedAppearance(AlchemyNode ale) : base(ale)
        {
            AleParameter temp;

            if (ale.TryGetParameter("OrientedApp_Height", out temp))
            {
                Height = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("OrientedApp_Width", out temp))
            {
                Width = (AlchemyFloatAnimation)temp.Value;
            }
        }
Exemplo n.º 3
0
        public FxBasicAppearance(AlchemyNode ale) : base(ale)
        {
            AleParameter temp;

            if (ale.TryGetParameter("BasicApp_QuadTexture", out temp))
            {
                QuadTexture = (bool)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_TriTexture", out temp))
            {
                if ((bool)temp.Value)
                {
                    FLLog.Warning("ALE", "BasicApp_TriTexture not implemented");
                }
            }
            if (ale.TryGetParameter("BasicApp_MotionBlur", out temp))
            {
                MotionBlur = (bool)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_Color", out temp))
            {
                Color = (AlchemyColorAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_Alpha", out temp))
            {
                Alpha = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_HtoVAspect", out temp))
            {
                HToVAspect = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_Rotate", out temp))
            {
                Rotate = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_TexName", out temp))
            {
                Texture = (string)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_UseCommonTexFrame", out temp))
            {
                UseCommonAnimation = (bool)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_TexFrame", out temp))
            {
                Animation = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_CommonTexFrame", out temp))
            {
                CommonAnimation = (AlchemyCurveAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_FlipTexU", out temp))
            {
                FlipHorizontal = (bool)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_FlipTexV", out temp))
            {
                FlipVertical = (bool)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_Size", out temp))
            {
                Size = (AlchemyFloatAnimation)temp.Value;
            }
            if (ale.TryGetParameter("BasicApp_BlendInfo", out temp))
            {
                BlendInfo = BlendMap.Map((Tuple <uint, uint>)temp.Value);
            }
        }