summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-06 16:40:32 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-06 16:40:32 -0400
commit0b21357e37c900774668fdaf3e83e1e7f7df0c38 (patch)
tree6aabdc435588b623884e293f5b3481c1926cbd50 /src/SMAPI
parenta6274533090053e1c9ccc9ddf282cb672b0e3af5 (diff)
downloadSMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.tar.gz
SMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.tar.bz2
SMAPI-0b21357e37c900774668fdaf3e83e1e7f7df0c38.zip
fix asset propagation for title menu buttons
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs6
1 files changed, 6 insertions, 0 deletions
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;