Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DynamicVariablePowerTools/DynamicVariablePowerTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageId>DynamicVariablePowerTools</PackageId>
<Title>Dynamic Variable Power Tools</Title>
<Authors>Banane9</Authors>
<Version>0.1.0-beta</Version>
<Version>0.1.1-beta</Version>
<Description>This MonkeyLoader mod for Resonite adds a variety of powerful functions to dynamic variables and their spaces.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
Expand Down
3 changes: 2 additions & 1 deletion DynamicVariablePowerTools/RenameDirectlyLinkedVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ private static void RenameSpace(DynamicVariableSpace space, string newName)
{
space.Slot.ForeachComponentInChildren<IInput<string>>(stringInput =>
{
// this eats variables like: Space/{0} - so can't construct new name from {newName}/{variableName}
DynamicVariableHelper.ParsePath(stringInput.Value, out var spaceName, out var variableName);
if (spaceName == null || spaceName != currentName)
return;

stringInput.Value = $"{newName}/{variableName}";
stringInput.Value = stringInput.Value.Replace(spaceName, newName);
}, includeLocal: true, cacheItems: true);
}

Expand Down
Loading