diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-06 16:40:32 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-06 16:40:32 -0400 |
commit | 0b21357e37c900774668fdaf3e83e1e7f7df0c38 (patch) | |
tree | 6aabdc435588b623884e293f5b3481c1926cbd50 | |
parent | a6274533090053e1c9ccc9ddf282cb672b0e3af5 (diff) | |
download | SMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.tar.gz SMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.tar.bz2 SMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.zip |
fix asset propagation for title menu buttons
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index cdd141c3..b43489d3 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -24,6 +24,7 @@ * For modders: * Added `PathUtilities` to simplify working with file/asset names. * You can now read/write `SDate` values to JSON (e.g. for `config.json`, network mod messages, etc). + * Fixed asset propagation not updating title menu buttons immediately on Linux/Mac. * For the web UI: * Updated the JSON validator/schema for Content Patcher 1.16 and 1.17. diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index d7dd9fb9..71199d59 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -563,6 +563,7 @@ namespace StardewModdingAPI.Metadata /// <param name="content">The content manager through which to reload the asset.</param> /// <param name="key">The asset key to reload.</param> /// <returns>Returns whether any textures were reloaded.</returns> + /// <remarks>Derived from the <see cref="TitleMenu"/> constructor and <see cref="TitleMenu.setUpIcons"/>.</remarks> private bool ReloadTitleButtons(LocalizedContentManager content, string key) { if (Game1.activeClickableMenu is TitleMenu titleMenu) @@ -570,6 +571,11 @@ namespace StardewModdingAPI.Metadata Texture2D texture = content.Load<Texture2D>(key); titleMenu.titleButtonsTexture = texture; + titleMenu.backButton.texture = texture; + titleMenu.aboutButton.texture = texture; + titleMenu.languageButton.texture = texture; + foreach (ClickableTextureComponent button in titleMenu.buttons) + button.texture = titleMenu.titleButtonsTexture; foreach (TemporaryAnimatedSprite bird in titleMenu.birds) bird.texture = texture; |