Fix for MobileSpriteSheet patch support

This commit is contained in:
ZaneYork 2020-08-26 14:18:34 +08:00
parent 87b4f2fea8
commit 6e2ace4fb7
3 changed files with 16 additions and 5 deletions

View File

@ -24,7 +24,7 @@ namespace StardewModdingAPI
** Public ** Public
****/ ****/
/// <summary>SMAPI's current semantic version.</summary> /// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.2"); public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.2.1", true);
/// <summary>The minimum supported version of Stardew Valley.</summary> /// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.5"); public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.5");

View File

@ -386,6 +386,15 @@ namespace StardewModdingAPI.Metadata
Game1.shadowTexture = content.Load<Texture2D>(key); Game1.shadowTexture = content.Load<Texture2D>(key);
return true; return true;
#if SMAPI_FOR_MOBILE
case "loosesprites\\mobileatlas_manually_made": // Game1.LoadContent
Game1.mobileSpriteSheet = content.Load<Texture2D>(key);
Game1.dayTimeMoneyBox.questButton.texture = Game1.mobileSpriteSheet;
Game1.dayTimeMoneyBox.buttonF8.texture = Game1.mobileSpriteSheet;
Game1.dayTimeMoneyBox.buttonGameMenu.texture = Game1.mobileSpriteSheet;
return true;
#endif
/**** /****
** Content\TileSheets ** Content\TileSheets
****/ ****/

View File

@ -24,7 +24,9 @@
<DebugType>portable</DebugType> <DebugType>portable</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;ANDROID_TARGET_GOOGLE</DefineConstants> <DefineConstants>TRACE;DEBUG;ANDROID_TARGET_AMAZON;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>
<!-- <DefineConstants>TRACE;DEBUG;ANDROID_TARGET_SAMSUNG;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>-->
<!-- <DefineConstants>TRACE;DEBUG;ANDROID_TARGET_GOOGLE;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>-->
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>
@ -34,9 +36,9 @@
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>ANDROID_TARGET_AMAZON;HARMONY_1</DefineConstants> <!-- <DefineConstants>ANDROID_TARGET_AMAZON;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>-->
<!-- <DefineConstants>ANDROID_TARGET_SAMSUNG;HARMONY_1</DefineConstants>--> <DefineConstants>ANDROID_TARGET_SAMSUNG;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>
<!-- <DefineConstants>ANDROID_TARGET_GOOGLE;HARMONY_1</DefineConstants>--> <!-- <DefineConstants>ANDROID_TARGET_GOOGLE;HARMONY_1;SMAPI_FOR_MOBILE</DefineConstants>-->
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>