add asset propagation for DayTimeMoneyBox buttons
This commit is contained in:
parent
4f7d861ce4
commit
1053232c20
|
@ -29,7 +29,7 @@ These changes have not been released yet.
|
|||
* Added support for content pack translations.
|
||||
* Added fields and methods: `IContentPack.HasFile`, `Context.IsGameLaunched`, and `SemanticVersion.TryParse`.
|
||||
* Added separate `LogNetworkTraffic` option to make verbose logging less overwhelmingly verbose.
|
||||
* Added asset propagation for critter textures.
|
||||
* Added asset propagation for critter textures and `DayTimeMoneyBox` buttons.
|
||||
* The installer now recognises custom game paths stored in `stardewvalley.targets`, if any.
|
||||
* When a mod is incompatible, the trace logs now list all detected issues instead of the first one.
|
||||
* Removed all deprecated APIs.
|
||||
|
|
|
@ -293,6 +293,11 @@ namespace StardewModdingAPI.Metadata
|
|||
|
||||
case "loosesprites\\cursors": // Game1.LoadContent
|
||||
Game1.mouseCursors = content.Load<Texture2D>(key);
|
||||
foreach (DayTimeMoneyBox menu in Game1.onScreenMenus.OfType<DayTimeMoneyBox>())
|
||||
{
|
||||
foreach (ClickableTextureComponent button in new[] { menu.questButton, menu.zoomInButton, menu.zoomOutButton })
|
||||
button.texture = Game1.mouseCursors;
|
||||
}
|
||||
return true;
|
||||
|
||||
case "loosesprites\\daybg": // Game1.LoadContent
|
||||
|
|
Loading…
Reference in New Issue