Exemplo n.º 1
0
 public void SetFill(RageSpline.Fill fill, RageSpline caller)
 {
     if (this.fill != fill)
     {
         this.fill = fill;
         RefreshAllRageSplinesWithThisStyle(caller);
     }
 }
    private static Spline.FillType Adapt(RageSpline.Fill fill)
    {
        switch (fill)
        {
        case RageSpline.Fill.Gradient: return(Spline.FillType.Gradient);

        case RageSpline.Fill.Landscape: return(Spline.FillType.Landscape);

        case RageSpline.Fill.None: return(Spline.FillType.None);

        case RageSpline.Fill.Solid:  return(Spline.FillType.Solid);

        default: return(Spline.FillType.None);
        }
    }
Exemplo n.º 3
0
 public void GetStyleFromRageSpline(RageSpline rageSpline)
 {
     this.antiAliasingWidth     = rageSpline.antiAliasingWidth;
     this.colliderZDepth        = rageSpline.colliderZDepth;
     this.createPhysicsInEditor = rageSpline.createPhysicsInEditor;
     this.emboss                = rageSpline.emboss;
     this.embossAngle           = rageSpline.embossAngle;
     this.embossColor1          = rageSpline.embossColor1;
     this.embossColor2          = rageSpline.embossColor2;
     this.embossCurveSmoothness = rageSpline.embossCurveSmoothness;
     this.embossOffset          = rageSpline.embossOffset;
     this.embossSize            = rageSpline.embossSize;
     this.fill                  = rageSpline.fill;
     this.fillColor1            = rageSpline.fillColor1;
     this.fillColor2            = rageSpline.fillColor2;
     this.gradientAngle         = rageSpline.gradientAngle;
     this.gradientOffset        = rageSpline.gradientOffset;
     this.gradientScale         = rageSpline.gradientScale;
     this.outline               = rageSpline.outline;
     this.outlineColor1         = rageSpline.outlineColor1;
     this.outlineColor2         = rageSpline.outlineColor2;
     this.outlineTexturingScale = rageSpline.outlineTexturingScale;
     this.outlineWidth          = rageSpline.OutlineWidth;
     this.outlineGradient       = rageSpline.outlineGradient;
     this.outlineNormalOffset   = rageSpline.outlineNormalOffset;
     this.corners               = rageSpline.corners;
     this.physics               = rageSpline.physics;
     this.physicsColliderCount  = rageSpline.physicsColliderCount;
     this.physicsMaterial       = rageSpline.physicsMaterial;
     this.textureAngle          = rageSpline.textureAngle;
     this.textureAngle2         = rageSpline.textureAngle2;
     this.textureOffset         = rageSpline.textureOffset;
     this.textureOffset2        = rageSpline.textureOffset2;
     this.textureScale          = rageSpline.textureScale;
     this.textureScale2         = rageSpline.textureScale2;
     this.UVMapping1            = rageSpline.UVMapping1;
     this.UVMapping2            = rageSpline.UVMapping2;
     this.vertexCount           = rageSpline.vertexCount;
 }
Exemplo n.º 4
0
 public void SetFill(RageSpline.Fill fill, RageSpline caller)
 {
     if (this.fill != fill)
     {
         this.fill = fill;
         RefreshAllRageSplinesWithThisStyle(caller);
     }
 }
Exemplo n.º 5
0
 public void GetStyleFromRageSpline(RageSpline rageSpline)
 {
     this.antiAliasingWidth = rageSpline.antiAliasingWidth;
     this.colliderZDepth = rageSpline.colliderZDepth;
     this.createPhysicsInEditor = rageSpline.createPhysicsInEditor;
     this.emboss = rageSpline.emboss;
     this.embossAngle = rageSpline.embossAngle;
     this.embossColor1 = rageSpline.embossColor1;
     this.embossColor2 = rageSpline.embossColor2;
     this.embossCurveSmoothness = rageSpline.embossCurveSmoothness;
     this.embossOffset = rageSpline.embossOffset;
     this.embossSize = rageSpline.embossSize;
     this.fill = rageSpline.fill;
     this.fillColor1 = rageSpline.fillColor1;
     this.fillColor2 = rageSpline.fillColor2;
     this.gradientAngle = rageSpline.gradientAngle;
     this.gradientOffset = rageSpline.gradientOffset;
     this.gradientScale = rageSpline.gradientScale;
     this.outline = rageSpline.outline;
     this.outlineColor1 = rageSpline.outlineColor1;
     this.outlineColor2 = rageSpline.outlineColor2;
     this.outlineTexturingScale = rageSpline.outlineTexturingScale;
     this.outlineWidth = rageSpline.OutlineWidth;
     this.outlineGradient = rageSpline.outlineGradient;
     this.outlineNormalOffset = rageSpline.outlineNormalOffset;
     this.corners = rageSpline.corners;
     this.physics = rageSpline.physics;
     this.physicsColliderCount = rageSpline.physicsColliderCount;
     this.physicsMaterial = rageSpline.physicsMaterial;
     this.textureAngle = rageSpline.textureAngle;
     this.textureAngle2 = rageSpline.textureAngle2;
     this.textureOffset = rageSpline.textureOffset;
     this.textureOffset2 = rageSpline.textureOffset2;
     this.textureScale = rageSpline.textureScale;
     this.textureScale2 = rageSpline.textureScale2;
     this.UVMapping1 = rageSpline.UVMapping1;
     this.UVMapping2 = rageSpline.UVMapping2;
     this.vertexCount = rageSpline.vertexCount;
 }