-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
83 lines (71 loc) · 1.67 KB
/
Plugin.cs
File metadata and controls
83 lines (71 loc) · 1.67 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Windows.Forms;
using TD.SandBar;
using NWN2Toolset;
using NWN2Toolset.Plugins;
namespace ConversationTranslator
{
public class ConversationTranslatorPlugin : INWN2Plugin
{
private MenuButtonItem _menuItem;
private void HandlePluginLaunch(object sender, EventArgs e)
{
using (Logger frm = new Logger())
{
frm.ShowDialog();
}
}
public void Load(INWN2PluginHost cHost)
{
}
public void Shutdown(INWN2PluginHost cHost)
{
}
public void Startup(INWN2PluginHost cHost)
{
_menuItem = cHost.GetMenuForPlugin(this);
_menuItem.Activate += new EventHandler(this.HandlePluginLaunch);
}
public void Unload(INWN2PluginHost cHost)
{
}
public MenuButtonItem PluginMenuItem
{
get
{
return _menuItem;
}
}
public string DisplayName
{
get
{
return "Conversation Translator";
}
}
public string MenuName
{
get
{
return "Conversation Translator";
}
}
public string Name
{
get
{
return "FDRConversationTranslator";
}
}
public object Preferences
{
get
{
return null;
}
set
{
}
}
}
}