protected override void SetAutoValueTo(AutoField auto, int frammeTime) { if ("x" == auto.field) { obj3D.x = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("y" == auto.field) { obj3D.y = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("z" == auto.field) { obj3D.z = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("sx" == auto.field) { obj3D.scaleX = Convert.ToSingle(auto.auto.Frame(frammeTime)) / 100; } else if ("sy" == auto.field) { obj3D.scaleY = Convert.ToSingle(auto.auto.Frame(frammeTime)) / 100; } else if ("sz" == auto.field) { obj3D.scaleZ = Convert.ToSingle(auto.auto.Frame(frammeTime)) / 100; } else if ("rx" == auto.field) { obj3D.rotationX = Convert.ToSingle(auto.auto.Frame(frammeTime)); // obj3D.rotationX = (float)(obj3D.rotationX * Math.PI / 180); } else if ("ry" == auto.field) { obj3D.rotationY = Convert.ToSingle(auto.auto.Frame(frammeTime)); // obj3D.rotationY = (float)(obj3D.rotationY * Math.PI / 180); } else if ("rz" == auto.field) { obj3D.rotationZ = Convert.ToSingle(auto.auto.Frame(frammeTime)); // obj3D.rotationZ = (float)(obj3D.rotationZ * Math.PI / 180); } else if ("r" == auto.field) { ((ISprite3D)obj3D).rotation = Convert.ToSingle(auto.auto.Frame(frammeTime)); ((ISprite3D)obj3D).rotation = (float)(((ISprite3D)obj3D).rotation * Math.PI / 180); } else if ("vi" == auto.field) { this.obj3D.visible = bool.TrueString.ToLower() == auto.auto.Frame(frammeTime).ToString(); } else if ("per" == auto.field) { per = Convert.ToSingle(auto.auto.Frame(frammeTime)); UpdateGeometryData(per / 1000); } }
protected override void SetAutoValueTo(AutoField autoField, int frammeTime) { if (X == autoField.field) { var nx = Convert.ToSingle(autoField.auto.Frame(frammeTime)); NewSetPos(this.group, nx, this.y, ToUI().width, ToUI().height, this.relative, this.parent); } if (Y == autoField.field) { var ny = Convert.ToSingle(autoField.auto.Frame(frammeTime)); NewSetPos(this.group, this.x, ny, ToUI().width, ToUI().height, this.relative, this.parent); } if (WIDTH == autoField.field) { ToUI().width = Convert.ToInt32(autoField.auto.Frame(frammeTime)); } if (HEIGHT == autoField.field) { ToUI().height = Convert.ToInt32(autoField.auto.Frame(frammeTime)); } if (ALPHA == autoField.field) { ToUI().alpha = Convert.ToSingle(autoField.auto.Frame(frammeTime)) / 1000; } if (ROTATION == autoField.field) { ToUI().rotation = Convert.ToSingle(autoField.auto.Frame(frammeTime)) * (float)Math.PI / 180; } if (VISIBLE == autoField.field) { ToUI().visible = Convert.ToBoolean(autoField.auto.Frame(frammeTime)); } if (AVATAR_POINT == autoField.field) { var v = (Vector3)autoField.auto.Frame(frammeTime); ToUI().x = v.x; ToUI().y = v.y; } if (AVATAR_ROTATION == autoField.field) { var v1 = (Vector3)autoField.auto.Frame(frammeTime); ToUI().rotation = v1.z; } }
protected void SetAutoValueTo(AutoField auto, int frammeTime) { if ("x" == auto.field) { model3D.x = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("y" == auto.field) { model3D.y = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("z" == auto.field) { model3D.z = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("sx" == auto.field) { model3D.scaleX = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("sy" == auto.field) { model3D.scaleY = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("sz" == auto.field) { model3D.scaleZ = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("rx" == auto.field) { model3D.rotationX = Convert.ToSingle(auto.auto.Frame(frammeTime)); model3D.rotationX = (float)(model3D.rotationX * Math.PI / 180); } else if ("ry" == auto.field) { model3D.rotationY = Convert.ToSingle(auto.auto.Frame(frammeTime)); model3D.rotationY = (float)(model3D.rotationY * Math.PI / 180); } else if ("rz" == auto.field) { model3D.rotationZ = Convert.ToSingle(auto.auto.Frame(frammeTime)); model3D.rotationZ = (float)(model3D.rotationZ * Math.PI / 180); } else if ("vi" == auto.field) { hide = !(Convert.ToBoolean(auto.auto.Frame(frammeTime))); } else if ("rd-img" == auto.field) { raderImage.img = Convert.ToString(auto.auto.Frame(frammeTime)); } else if ("rd-sx" == auto.field) { raderImage.scaleX = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("rd-sy" == auto.field) { raderImage.scaleY = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("rd-alpha" == auto.field) { raderImage.alpha = Convert.ToSingle(auto.auto.Frame(frammeTime)); } else if ("rd-mask" == auto.field) { raderImage.mask = Convert.ToInt32(auto.auto.Frame(frammeTime)); } else if ("rd-fullimg" == auto.field) { raderImage.smallMapFullImg = Convert.ToString(auto.auto.Frame(frammeTime)); } }
protected override void SetAutoValueTo(AutoField auto, int frammeTime) { }