Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
oxysoft committed Dec 21, 2014
1 parent 9a5560c commit 50e3aea
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

/maplechargen/bin/Debug
/maplechargen/obj/Debug
/maplechargen/obj/Release
/maplechargen/bin/Release
*.user
Binary file modified maplechargen.v12.suo
Binary file not shown.
1 change: 1 addition & 0 deletions maplechargen/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion maplechargen/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
Expand All @@ -19,6 +20,21 @@ public Form1() {
// Generate();
}

private void Form1_Load(object sender, EventArgs e) {
if (!Directory.Exists(@"C:\maplewookie\"))
Directory.CreateDirectory(@"C:\maplewookie\");

if (!Directory.Exists(@"C:\maplewookie\output"))
Directory.CreateDirectory(@"C:\maplewookie\output");

if (!Directory.Exists(@"C:\maplewookie\gd")) {
MessageBox.Show(@"Please create the gd folder under C:\maplewookie\", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

Application.Exit();
}
}

private void onGenerateClicked(object sender, EventArgs e) {
btnSave.Enabled = false;
btnGenerate.Enabled = false;
Expand Down Expand Up @@ -79,7 +95,7 @@ private void btnStop_Click(object sender, EventArgs e) {


public void Save(string name) {
TrimBitmap(bmp).Save(@"C:\output\" + name + ".png");
TrimBitmap(bmp).Save(@"C:\maplewookie\output\" + name + ".png");
}

// google had this in store for me
Expand Down
Binary file added maplechargen/Resources/icon.ico
Binary file not shown.
Binary file added maplechargen/Resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maplechargen/Resources/icon2.ico
Binary file not shown.
Binary file added maplechargen/Resources/icon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maplechargen/icon2.ico
Binary file not shown.
38 changes: 38 additions & 0 deletions maplechargen/maplechargen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
<AssemblyName>maplewookie</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -32,6 +47,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon2.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -92,6 +110,26 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="icon2.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 50e3aea

Please sign in to comment.