public void ApplyToImage(DPOW.Reader.Image destImage, float t) { destImage.Visible = visible; destImage.isGradient = gradient; destImage.TextureId = texid; center.ApplyToPoint(destImage.Position, t); for (int i = 0; i < points.Length; i++) { points[i].ApplyToPoint(destImage.Points[i], t); } Color newColor = destImage.Color; color.ApplyToColor(ref newColor, t); destImage.Color = newColor; }
public void ApplyToIcon(DPOW.Reader.Icon destIcon, float t) { position.ApplyToPoint(destIcon.Position, t); size.ApplyToPoint(destIcon.Size, t); destIcon.WTF = wtf; destIcon.Visible = visible; destIcon.ShadowType = shadow; destIcon.Unknown1 = unk1; destIcon.Unknown2 = unk2; destIcon.UnknownS1 = uns1; Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext(); c.Imports.AddType(typeof(Math)); c.Variables["t"] = t; if (alpha != "") { destIcon.Alpha = (byte)c.CompileGeneric <double>(alpha).Evaluate(); } }