Skip to content

Commit

Permalink
Update UILayout (fixed drag/drop bugs between chains)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeoliphant committed Jul 14, 2024
1 parent ba13f87 commit 672ad28
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dependencies/UILayout
12 changes: 11 additions & 1 deletion StompboxShared/AudioPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public PluginParameter()

public override string ToString()
{
return DisplayValue;
return Name + ": " + DisplayValue;
}

public PluginParameter ShallowCopy()
Expand Down Expand Up @@ -176,6 +176,11 @@ public AudioPluginBase()
ParameterTextSize = 11;
}

public override string ToString()
{
return ID;
}

public PluginParameter GetParameter(string parameterName)
{
foreach (PluginParameter parameter in Parameters)
Expand Down Expand Up @@ -215,5 +220,10 @@ public int NumActivePlugins()

return numActiveEffects;
}

public override string ToString()
{
return string.Join("-", Plugins);
}
}
}
5 changes: 5 additions & 0 deletions StompboxShared/Interface/PluginInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ public PluginInterfaceBase(IAudioPlugin plugin)
SetPlugin(plugin);
}

public override string ToString()
{
return Plugin.ToString();
}

public virtual void SetPlugin(IAudioPlugin plugin)
{
this.Plugin = plugin;
Expand Down

0 comments on commit 672ad28

Please sign in to comment.