From c223481255d097ac8dd3814a03797120e1b1375e Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 3 Nov 2020 18:25:32 +0100 Subject: [PATCH] [csharp][xna] Added missing SkeletonLoader.cs file reference to spine-csharp.csproj project file. Updated example project, minor changes. --- spine-csharp/spine-csharp.csproj | 1 + spine-xna/example/spine-xna-example.csproj | 15 +++------------ spine-xna/example/src/ExampleGame.cs | 9 ++++----- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/spine-csharp/spine-csharp.csproj b/spine-csharp/spine-csharp.csproj index 40f697f02..4abc4ec3c 100644 --- a/spine-csharp/spine-csharp.csproj +++ b/spine-csharp/spine-csharp.csproj @@ -72,6 +72,7 @@ + diff --git a/spine-xna/example/spine-xna-example.csproj b/spine-xna/example/spine-xna-example.csproj index b68f4539d..82e410431 100644 --- a/spine-xna/example/spine-xna-example.csproj +++ b/spine-xna/example/spine-xna-example.csproj @@ -125,6 +125,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -142,9 +145,6 @@ PreserveNewest - - PreserveNewest - @@ -195,12 +195,6 @@ PreserveNewest - - PreserveNewest - - - PreserveNewest - PreserveNewest @@ -210,9 +204,6 @@ PreserveNewest - - PreserveNewest - diff --git a/spine-xna/example/src/ExampleGame.cs b/spine-xna/example/src/ExampleGame.cs index 7ef9f4c05..7846f3728 100644 --- a/spine-xna/example/src/ExampleGame.cs +++ b/spine-xna/example/src/ExampleGame.cs @@ -95,15 +95,14 @@ namespace Spine { skeletonDebugRenderer.DisableAll(); skeletonDebugRenderer.DrawClipping = true; - // String name = "spineboy-ess"; - // String name = "goblins-pro"; + // String name = "spineboy-pro"; String name = "raptor-pro"; // String name = "tank-pro"; //String name = "coin-pro"; if (useNormalmapShader) name = "raptor-pro"; // we only have normalmaps for raptor String atlasName = name.Replace("-pro", "").Replace("-ess", ""); - if (name == "goblins-pro") atlasName = "goblins-mesh"; + bool binaryData = false; Atlas atlas; @@ -115,7 +114,7 @@ namespace Spine { loadMultipleTextureLayers: true, textureSuffixes: new string[] { "", "_normals" })); } float scale = 1; - if (name == "spineboy-ess") scale = 0.6f; + if (name == "spineboy-pro") scale = 0.6f; if (name == "raptor-pro") scale = 0.5f; if (name == "tank-pro") scale = 0.3f; if (name == "coin-pro") scale = 1; @@ -137,7 +136,7 @@ namespace Spine { AnimationStateData stateData = new AnimationStateData(skeleton.Data); state = new AnimationState(stateData); - if (name == "spineboy-ess") { + if (name == "spineboy-pro") { skeleton.SetAttachment("head-bb", "head"); stateData.SetMix("run", "jump", 0.2f);