protected void InitialAutoValue(string field, IAutoValue auto) { if ("x" == field) { auto.SetValue(model3D.x); } else if ("y" == field) { auto.SetValue(model3D.y); } else if ("z" == field) { auto.SetValue(model3D.z); } else if ("sx" == field) { auto.SetValue(model3D.scaleX); } else if ("sy" == field) { auto.SetValue(model3D.scaleY); } else if ("sz" == field) { auto.SetValue(model3D.scaleZ); } else if ("rx" == field) { auto.SetValue(model3D.rotationX); } else if ("ry" == field) { auto.SetValue(model3D.rotationY); } else if ("rz" == field) { auto.SetValue(model3D.rotationZ); } if ("vi" == field) { auto.SetValue(!hide); } }
protected override void InitialAutoValue(string field, IAutoValue auto) { if (auto != null) { if (X == field) { auto.SetValue(this.x); } if (Y == field) { auto.SetValue(this.y); } if (WIDTH == field) { auto.SetValue(ToUI().width); } if (HEIGHT == field) { auto.SetValue(ToUI().height); } if (ALPHA == field) { auto.SetValue(ToUI().alpha * 1000); } if (ROTATION == field) { auto.SetValue(ToUI().rotation * 180 / Math.PI); } if (VISIBLE == field) { auto.SetValue(ToUI().visible); } if (AVATAR_POINT == field) { auto.SetValue(ToUI().x + "," + ToUI().y + "," + ToUI().rotation); } if (AVATAR_ROTATION == field) { auto.SetValue(ToUI().x + "," + ToUI().y + "," + ToUI().rotation); } } }
protected override void InitialAutoValue(string field, IAutoValue auto) { if ("x" == field) { auto.SetValue(obj3D.x); } else if ("y" == field) { auto.SetValue(obj3D.y); } else if ("z" == field) { auto.SetValue(obj3D.z); } else if ("sx" == field) { //auto.SetValue(obj3D.scaleX); } else if ("sy" == field) { //auto.SetValue(obj3D.scaleY); } else if ("sz" == field) { //auto.SetValue(obj3D.scaleZ); } else if ("rx" == field) { auto.SetValue(obj3D.rotationX); } else if ("ry" == field) { auto.SetValue(obj3D.rotationY); } else if ("rz" == field) { auto.SetValue(obj3D.rotationZ); } else if ("r" == field) { auto.SetValue(((ISprite3D)obj3D).rotation); } else if ("per" == field) { auto.SetValue(per); } }