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 /src/SMAPI | |
parent | a6274533090053e1c9ccc9ddf282cb672b0e3af5 (diff) | |
download | SMAPI-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.cs | 6 |
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; |