Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
</ItemGroup>

<ItemGroup>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="plugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
12 changes: 0 additions & 12 deletions MacroPad.Plugins.Nodes.Discord/PluginInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ namespace MacroPad.Plugins.Nodes.VoiceMeeter
{
public class PluginInfos : IPluginInfos
{
public string Name => "Discord";

public string Description => "A plugin that allows you to interact with Discord using MacroPad.";

public string Version => "1.0.0";

public string Author => "Piripe";

public string? AuthorUrl => null;

public string? SourceUrl => null;

public IProtocol[] Protocols => [];

public INodeCategory[] NodeCategories => [new DiscordCategory()];
Expand Down
Binary file added MacroPad.Plugins.Nodes.Discord/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion MacroPad.Plugins.Nodes.Discord/plugin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"Main": "MacroPad.Plugins.Nodes.Discord.dll"
"filename": "MacroPad.Plugins.Nodes.Discord.dll",
"name": "Discord",
"description": "A plugin that allows you to interact with Discord",
"version": "1.0.0",
"author": "Piripe",
"supportedPlatforms": [],
"iconType": "Image",
"icon": "icon.png"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
</ItemGroup>

<ItemGroup>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="plugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
12 changes: 0 additions & 12 deletions MacroPad.Plugins.Nodes.Javascript/PluginInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ namespace MacroPad.Plugins.Nodes.Javascript
{
public class PluginInfos : IPluginInfos
{
public string Name => "JavaScript Plugin";

public string Description => "A plugin that allows you to run JavaScript on MacroPad.";

public string Version => "1.0.0";

public string Author => "Piripe";

public string? AuthorUrl => null;

public string? SourceUrl => null;

public IProtocol[] Protocols => [];

public INodeCategory[] NodeCategories => [];
Expand Down
Binary file added MacroPad.Plugins.Nodes.Javascript/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion MacroPad.Plugins.Nodes.Javascript/plugin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"Main": "MacroPad.Plugins.Nodes.Javascript.dll"
"filename": "MacroPad.Plugins.Nodes.Javascript.dll",
"name": "JavaScript",
"description": "A plugin that allows you to run JavaScript",
"version": "1.0.0",
"author": "Piripe",
"supportedPlatforms": [],
"iconType": "Image",
"icon": "icon.png"
}
3 changes: 3 additions & 0 deletions MacroPad.Plugins.Nodes.OBS/MacroPad.Plugins.Nodes.OBS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
</ItemGroup>

<ItemGroup>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="plugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
2 changes: 1 addition & 1 deletion MacroPad.Plugins.Nodes.OBS/Nodes/SetCurrentScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class SetCurrentScene : INodeRunner

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;

public NodeRunnerResult Run(IResourceManager r)
public NodeRunnerResult Run(INodeResourceManager r)
{
OBSProtocol.Run(x => x.SetCurrentProgramScene(((SceneBasicInfo)r.GetValue(0)).Name));

Expand Down
12 changes: 0 additions & 12 deletions MacroPad.Plugins.Nodes.OBS/PluginInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ namespace MacroPad.Plugins.Nodes.VoiceMeeter
{
public class PluginInfos : IPluginInfos
{
public string Name => "OBS";

public string Description => "A plugin that allows you to interact with OBS using MacroPad.";

public string Version => "1.0.0";

public string Author => "Piripe";

public string? AuthorUrl => null;

public string? SourceUrl => null;

public IProtocol[] Protocols => [ new OBSProtocol() ];

public INodeCategory[] NodeCategories => [ new OBSCategory() ];
Expand Down
Binary file added MacroPad.Plugins.Nodes.OBS/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion MacroPad.Plugins.Nodes.OBS/plugin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"Main": "MacroPad.Plugins.Nodes.OBS.dll"
"filename": "MacroPad.Plugins.Nodes.OBS.dll",
"name": "OBS",
"description": "A plugin that allows you to interact with OBS",
"version": "1.0.0",
"author": "Piripe",
"supportedPlatforms": [ "Windows", "Linux", "Darwin" ],
"iconType": "Image",
"icon": "icon.png"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
</ItemGroup>

<ItemGroup>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="plugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class GetNumberParameter : INodeGetter
public INodeComponent[] Components => [];

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;
public object[] GetOutputs(IResourceManager resource)
public object[] GetOutputs(INodeResourceManager resource)
{
string value = (string)resource.GetValue(0);
if (value != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class GetTextParameter : INodeGetter
public INodeComponent[] Components => [];

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;
public object[] GetOutputs(IResourceManager resource)
public object[] GetOutputs(INodeResourceManager resource)
{
string value = (string)resource.GetValue(0);
if (value != null) return [VoiceMeeterRemote.GetString(value)];
Expand Down
5 changes: 3 additions & 2 deletions MacroPad.Plugins.Nodes.VoiceMeeter/Nodes/SetBusGain.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using MacroPad.Shared.Device;
using MacroPad.Shared.Plugin.Nodes;
using MacroPad.Shared.Plugin.Components;
using MacroPad.Shared.Plugin;

namespace MacroPad.Plugins.Nodes.VoiceMeeter.Nodes
{
Expand All @@ -23,7 +24,7 @@ internal class SetBusGain : INodeRunner
public INodeComponent[] Components => [
new ComboBox()
{
GetItems = (IResourceManager resource, IDeviceLayoutButton button, IDeviceOutput output) => {
GetItems = (IResourceManager resource) => {
Static.Update();
return Static.BusesName;
},
Expand All @@ -34,7 +35,7 @@ internal class SetBusGain : INodeRunner

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;

public NodeRunnerResult Run(IResourceManager resource)
public NodeRunnerResult Run(INodeResourceManager resource)
{
VoiceMeeterRemote.SetParameter($"Bus({resource.GetData<int>("v")}).Gain", decimal.ToSingle((decimal)resource.GetValue(0)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class SetNumberParameter : INodeRunner

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;

public NodeRunnerResult Run(IResourceManager resource)
public NodeRunnerResult Run(INodeResourceManager resource)
{
string value = (string)resource.GetValue(0);
if (value != null) _ = VoiceMeeterRemote.SetParameter(value, decimal.ToSingle((decimal)resource.GetValue(1)));
Expand Down
5 changes: 3 additions & 2 deletions MacroPad.Plugins.Nodes.VoiceMeeter/Nodes/SetStripGain.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using MacroPad.Shared.Device;
using MacroPad.Shared.Plugin.Nodes;
using MacroPad.Shared.Plugin.Components;
using MacroPad.Shared.Plugin;

namespace MacroPad.Plugins.Nodes.VoiceMeeter.Nodes
{
Expand All @@ -23,7 +24,7 @@ internal class SetStripGain : INodeRunner
public INodeComponent[] Components => [
new ComboBox()
{
GetItems = (IResourceManager resource, IDeviceLayoutButton button, IDeviceOutput output) => {
GetItems = (IResourceManager resource) => {
Static.Update();
return Static.StripsName;
},
Expand All @@ -34,7 +35,7 @@ internal class SetStripGain : INodeRunner

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;

public NodeRunnerResult Run(IResourceManager resource)
public NodeRunnerResult Run(INodeResourceManager resource)
{
VoiceMeeterRemote.SetParameter($"Strip({resource.GetData<int>("v")}).Gain", decimal.ToSingle((decimal)resource.GetValue(0)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class SetTextParameter : INodeRunner

public bool IsVisible(IDeviceLayoutButton button, IDeviceOutput output) => true;

public NodeRunnerResult Run(IResourceManager resource)
public NodeRunnerResult Run(INodeResourceManager resource)
{
VoiceMeeterRemote.SetParameter((string)resource.GetValue(0), (string)resource.GetValue(1));

Expand Down
18 changes: 3 additions & 15 deletions MacroPad.Plugins.Nodes.VoiceMeeter/PluginInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,11 @@ namespace MacroPad.Plugins.Nodes.VoiceMeeter
{
public class PluginInfos : IPluginInfos
{
public string Name => "VoiceMeeter";
public IProtocol[] Protocols => [];

public string Description => "A plugin that allows you to interact with VoiceMeeter using MacroPad.";
public INodeCategory[] NodeCategories => [ new VoiceMeeterCategory() ];

public string Version => "1.0.0";

public string Author => "Piripe";

public string? AuthorUrl => null;

public string? SourceUrl => null;

public IProtocol[] Protocols => new IProtocol[0];

public INodeCategory[] NodeCategories => new INodeCategory[] { new VoiceMeeterCategory() };

public NodeType[] NodeTypes => new NodeType[0];
public NodeType[] NodeTypes => [];
public ISettingsComponent[] Settings => [];
}
}
Binary file added MacroPad.Plugins.Nodes.VoiceMeeter/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion MacroPad.Plugins.Nodes.VoiceMeeter/plugin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"Main": "MacroPad.Plugins.Nodes.VoiceMeeter.dll"
"filename": "MacroPad.Plugins.Nodes.VoiceMeeter.dll",
"name": "VoiceMeeter",
"description": "A plugin that allows you to interact with VoiceMeeter",
"version": "1.0.0",
"author": "Piripe",
"supportedPlatforms": [ "Windows" ],
"iconType": "Image",
"icon": "icon.png"
}
5 changes: 4 additions & 1 deletion MacroPad.Plugins/MacroPad.Plugins.Protocol.Midi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="managed-midi" Version="1.10.1" />
<PackageReference Include="managed-midi" Version="1.10.1" />
</ItemGroup>

<ItemGroup>
Expand All @@ -25,6 +25,9 @@
</ItemGroup>

<ItemGroup>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="plugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
12 changes: 0 additions & 12 deletions MacroPad.Plugins/PluginInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ namespace MacroPad.Plugins.Protocol.Midi
{
public class PluginInfos : IPluginInfos
{
public string Name => "MIDI Protocol";

public string Description => "A plugin that allows you to connect any MIDI device to MacroPad.";

public string Version => "1.0.0";

public string Author => "Piripe";

public string? AuthorUrl => null;

public string? SourceUrl => null;

public IProtocol[] Protocols => [new MidiProtocol()];

public INodeCategory[] NodeCategories => [];
Expand Down
Binary file added MacroPad.Plugins/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion MacroPad.Plugins/plugin.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"Main": "MacroPad.Plugins.Protocol.Midi.dll"
"filename": "MacroPad.Plugins.Protocol.Midi.dll",
"name": "MIDI Devices",
"description": "A plugin that allows you to connect any MIDI device",
"version": "1.0.0",
"author": "Piripe",
"supportedPlatforms": [ "Windows", "Linux", "Darwin" ],
"iconType": "Image",
"icon": "icon.png"
}