forked from jbcarreon123/MacroDeck2-AHKPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cs
48 lines (42 loc) · 1.15 KB
/
Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using SuchByte.MacroDeck.Plugins;
using jbcarreon123.AHKPlugin.GUI;
using jbcarreon123.AHKPlugin.Actions;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using System;
namespace jbcarreon123.AHKPlugin
{
public static class PluginInstance
{
public static Main Main { get; set; }
}
public class Main : MacroDeckPlugin
{
public override bool CanConfigure => true;
public static Main Instance;
public Main()
{
Instance = this;
PluginInstance.Main = this;
}
public override void Enable()
{
Instance ??= this;
this.Actions = new List<PluginAction>
{
new RunScriptAction(),
new RunScriptv2Action(),
new WriteScriptAction(),
new WriteScriptv2Action(),
new WindowSpyAction(),
};
}
public override void OpenConfigurator()
{
// Open your configuration form here
using var pluginConfig = new PluginConfig();
pluginConfig.ShowDialog();
}
}
}