-
Notifications
You must be signed in to change notification settings - Fork 4
/
MainMenu.cs
201 lines (163 loc) · 7.65 KB
/
MainMenu.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace UltimaOnlineMapCreator
{
public partial class MainMenu : Form
{
public MainMenu()
{
InitializeComponent();
}
private void usersubmittedpluginsToolStripMenuItem_Click(object sender, EventArgs e)
{
//This Snippet Hides One Form To Simulate Opening Another
this.Hide();
Form Form5 = new UserSubmittedPlugins();
Form5.Show();
}
private void aboutthissoftwareToolStripMenuItem_Click(object sender, EventArgs e)
{
//This Snippet Hides One Form To Simulate Opening Another
this.Hide();
Form Form1 = new AboutThisSoftware();
Form1.Show();
}
private void button2_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("GenerateTerrainTypes.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button1_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("GenerateTileTransitions.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button3_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("ConfigureColorTables.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button9_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("GenerateDataIndexLog.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button5_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("GenerateMapTemplate.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button6_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("EncodeAltitudeBitmap.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void button4_Click(object sender, EventArgs e)
{
//This Snippet Launches An Application From The Same Folder
//Process pr = new Process();
//System.Diagnostics.Process.Start("CreateStatics.exe");
//This Snippet Launches An Application In Another Folder
Directory.SetCurrentDirectory(@"Plugins");
Process.Start("CompileYourNewMap.exe");
//This Snippet Exits The Application And Kills The Thread
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void setupAdobePhotoshopToolStripMenuItem_Click(object sender, EventArgs e)
{
#region Removed To Accomodate Multiple Paint Programs
#region Developer Notes
/*
This Program Was Designed To Be Used With Adobe Photoshop And
So I Only Had One Button To Access The Adobe Photoshop Folder.
I Have Since Disabled This Button And Instead Created A Drop
Down Menu System That Gives Users The Choice Of Opening Up Either
The Adobe Photoshop Folder Or The Other Paint Programs Folder.
Inside Each Of These Folders Are Tools Map Creators Can Use To
Design And Create Their Own Game Maps For Ultima Online.
OLD CODE IF YOU WISH TO ONLY ACCOMODATE ONE PAINT PROGRAM:
//This Snippet Launches A Working Directory From A Button
String path = Path.GetDirectoryName(Application.ExecutablePath.ToString());
if (File.Exists(Application.ExecutablePath))
{
Process.Start(Path.Combine(path, "Utilities/AdobePhotoshopCC"));
}
*/
#endregion
#endregion
}
private void Form01_UOMC_GNUGPLv2_Label_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
//This Snippet Launches A Web Browser And Displays A URL
this.Form01_UOMC_GNUGPLv2_Label.LinkVisited = true;
System.Diagnostics.Process.Start("http://www.gnu.org/licenses/gpl-2.0.html");
}
private void adobePhotoshopCCToolStripMenuItem_Click(object sender, EventArgs e)
{
//This Snippet Launches A Working Directory From A Button
String path = Path.GetDirectoryName(Application.ExecutablePath.ToString());
if (File.Exists(Application.ExecutablePath))
{
Process.Start(Path.Combine(path, "Utilities/AdobePhotoshopCC"));
}
}
private void otherPaintProgramsToolStripMenuItem_Click(object sender, EventArgs e)
{
//This Snippet Launches A Working Directory From A Button
String path = Path.GetDirectoryName(Application.ExecutablePath.ToString());
if (File.Exists(Application.ExecutablePath))
{
Process.Start(Path.Combine(path, "Utilities/OtherPaintPrograms"));
}
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
//This Snippet Kills The Application Process Upon Close
Process.GetCurrentProcess().Kill();
}
}
}