diff --git a/BloonsTD6 Mod Helper/Api/Commands/ExportDisplayCommand.cs b/BloonsTD6 Mod Helper/Api/Commands/ExportDisplayCommand.cs index 7315b149f..e2dc5f809 100644 --- a/BloonsTD6 Mod Helper/Api/Commands/ExportDisplayCommand.cs +++ b/BloonsTD6 Mod Helper/Api/Commands/ExportDisplayCommand.cs @@ -63,7 +63,7 @@ private void Export(UnityDisplayNode node) var i = 0; foreach (var frame in customSpriteFrameAnimator.frames) { - var path = Path.Combine(FileIOHelper.sandboxRoot, renderer.name + ".png"); + var path = Path.Combine(FileIOHelper.sandboxRoot, $"{renderer.name}_{i}.png"); frame.TrySaveToPNG(path); ModHelper.Msg($"Saved {path}"); i++; @@ -71,7 +71,7 @@ private void Export(UnityDisplayNode node) } else { - var path = Path.Combine(FileIOHelper.sandboxRoot, renderer.name + ".png"); + var path = Path.Combine(FileIOHelper.sandboxRoot, $"{renderer.name}.png"); if (renderer.Is(out SpriteRenderer spriteRenderer)) { spriteRenderer.sprite.texture?.TrySaveToPNG(path); diff --git a/BloonsTD6 Mod Helper/LATEST.md b/BloonsTD6 Mod Helper/LATEST.md index 16f7e01fd..2f2cae8c2 100644 --- a/BloonsTD6 Mod Helper/LATEST.md +++ b/BloonsTD6 Mod Helper/LATEST.md @@ -1,5 +1,5 @@ -- Added a ModBloonOverlay class for making custom Bloon Overlays - - NOTE: Due to a MelonLoader bug, these won't properly display unless you're on ML 0.6.6 or higher -- Accounted for a Unity bug that was affecting the internal durations of embedded AudioClips -- Added a Sprite.TrySaveToPNG() extension like the one for Textures except accounting for position and size within a larger texture atlas -- Added `export image` console commands that exports all UI images underneath your mouse cursor to png files \ No newline at end of file +- Fixed an issue that made embedded audio clips be loaded with extra silence at the end of them +- Added a `ModBloonOverlay` class for making custom Bloon Overlays + - NOTE: Due to a MelonLoader bug, these won't display correctly on ML 0.6.5, but work again starting with [0.6.6 / nightly versions](https://nightly.link/LavaGang/MelonLoader/workflows/build/master) +- Added a `Sprite.TrySaveToPNG()` extension like the one for Textures except accounting for the Sprite's position and size within its texture atlas +- Added `export image` console command that exports all UI images underneath your mouse cursor to png files \ No newline at end of file diff --git a/BloonsTD6 Mod Helper/ModHelper.cs b/BloonsTD6 Mod Helper/ModHelper.cs index 699e9f397..4504791fd 100644 --- a/BloonsTD6 Mod Helper/ModHelper.cs +++ b/BloonsTD6 Mod Helper/ModHelper.cs @@ -16,7 +16,7 @@ namespace BTD_Mod_Helper; public static class ModHelper { internal const string Name = "BloonsTD6 Mod Helper"; - internal const string Version = "3.3.1"; + internal const string Version = "3.3.2"; internal const string RepoOwner = "gurrenm3"; internal const string RepoName = "BTD-Mod-Helper"; internal const string Description =