parent
588d4d94fa
commit
de17f87d87
|
@ -5,6 +5,7 @@
|
|||
|
||||
* For modders:
|
||||
* Dropped support for some deprecated APIs.
|
||||
* Fixed some assets not being editable.
|
||||
|
||||
## 2.5.3
|
||||
* For players:
|
||||
|
|
|
@ -7,6 +7,7 @@ using StardewValley;
|
|||
using StardewValley.BellsAndWhistles;
|
||||
using StardewValley.Buildings;
|
||||
using StardewValley.Locations;
|
||||
using StardewValley.Menus;
|
||||
using StardewValley.Objects;
|
||||
using StardewValley.Projectiles;
|
||||
using StardewValley.TerrainFeatures;
|
||||
|
@ -140,6 +141,26 @@ namespace StardewModdingAPI.Metadata
|
|||
["TerrainFeatures\\hoeDirtDark"] = (content, key) => HoeDirt.darkTexture = content.Load<Texture2D>(key),
|
||||
["TerrainFeatures\\hoeDirtSnow"] = (content, key) => HoeDirt.snowTexture = content.Load<Texture2D>(key),
|
||||
|
||||
// from TitleMenu
|
||||
["Minigames\\Clouds"] = (content, key) =>
|
||||
{
|
||||
if (Game1.activeClickableMenu is TitleMenu)
|
||||
reflection.GetField<Texture2D>(Game1.activeClickableMenu, "cloudsTexture").SetValue(content.Load<Texture2D>(key));
|
||||
},
|
||||
["Minigames\\TitleButtons"] = (content, key) =>
|
||||
{
|
||||
if (Game1.activeClickableMenu is TitleMenu titleMenu)
|
||||
{
|
||||
reflection.GetField<Texture2D>(titleMenu, "titleButtonsTexture").SetValue(content.Load<Texture2D>(key));
|
||||
foreach (TemporaryAnimatedSprite bird in reflection.GetField<List<TemporaryAnimatedSprite>>(titleMenu, "birds").GetValue())
|
||||
#if STARDEW_VALLEY_1_3
|
||||
bird.texture = content.Load<Texture2D>(key);
|
||||
#else
|
||||
bird.Texture = content.Load<Texture2D>(key);
|
||||
#endif
|
||||
}
|
||||
},
|
||||
|
||||
// from Wallpaper
|
||||
["Maps\\walls_and_floors"] = (content, key) => Wallpaper.wallpaperTexture = content.Load<Texture2D>(key)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue