-
Notifications
You must be signed in to change notification settings - Fork 0
/
Toolkit.cs
79 lines (62 loc) · 2.74 KB
/
Toolkit.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
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
using System;
using System.Linq;
using System.Windows.Forms;
namespace OldSpice
{
public partial class Toolkit : Form
{
public Toolkit()
{
InitializeComponent();
}
private void button5_Click(object sender, EventArgs e)
{
//used for inheriting methods from main form
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\D2K Editor (Map and Mis)\D2kEditor.exe");
}
private void button1_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Map Renderer\MapRenderer.exe");
}
private void button2_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Mission Editor\MissionEditorV0.3.exe");
}
private void button3_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Resource Editor\ResourceEditor.exe");
}
private void button4_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Sound Effect Tool\SoundEffectToolV0.1.exe");
}
private void button6_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Table Editor (UIB)\UITableEditorV0.3.exe");
}
private void button7_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\Tileset Editor\TileSetEditorV0.1.exe");
}
private void button8_Click(object sender, EventArgs e)
{
var inherited = Application.OpenForms.OfType<OSL>().Single();
string d2kEditor = inherited.getRegistryValue("D2K+");
inherited.ProcessStart(d2kEditor + @"\User Interface Editor\UILEditorV0.1.exe");
}
}
}