mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-10-26 14:24:33 +00:00
Add texture builder tool
This commit is contained in:
1 parent
1dfac32f29
commit
71cbb69800
13 files changed
+974
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextureBuilder", "TextureBuilder\TextureBuilder.csproj", "{6F19681C-4CAC-4285-A932-075F93808C12}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6F19681C-4CAC-4285-A932-075F93808C12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6F19681C-4CAC-4285-A932-075F93808C12}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6F19681C-4CAC-4285-A932-075F93808C12}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6F19681C-4CAC-4285-A932-075F93808C12}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
</startup>
|
||||
</configuration>
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
namespace TextureBuilder
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (disposing && (components != null)) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent ()
|
||||
{
|
||||
this.pictureCompiled = new System.Windows.Forms.PictureBox();
|
||||
this.pictureTrim = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBase = new System.Windows.Forms.PictureBox();
|
||||
this.buttonBase = new System.Windows.Forms.Button();
|
||||
this.buttonTrim = new System.Windows.Forms.Button();
|
||||
this.export = new System.Windows.Forms.Button();
|
||||
this.textName = new System.Windows.Forms.TextBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureCompiled)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureTrim)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBase)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureCompiled
|
||||
//
|
||||
this.pictureCompiled.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
this.pictureCompiled.Location = new System.Drawing.Point(12, 111);
|
||||
this.pictureCompiled.Name = "pictureCompiled";
|
||||
this.pictureCompiled.Size = new System.Drawing.Size(256, 128);
|
||||
this.pictureCompiled.TabIndex = 0;
|
||||
this.pictureCompiled.TabStop = false;
|
||||
//
|
||||
// pictureTrim
|
||||
//
|
||||
this.pictureTrim.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureTrim.Location = new System.Drawing.Point(82, 12);
|
||||
this.pictureTrim.Name = "pictureTrim";
|
||||
this.pictureTrim.Size = new System.Drawing.Size(64, 64);
|
||||
this.pictureTrim.TabIndex = 1;
|
||||
this.pictureTrim.TabStop = false;
|
||||
//
|
||||
// pictureBase
|
||||
//
|
||||
this.pictureBase.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBase.Location = new System.Drawing.Point(12, 12);
|
||||
this.pictureBase.Name = "pictureBase";
|
||||
this.pictureBase.Size = new System.Drawing.Size(64, 64);
|
||||
this.pictureBase.TabIndex = 2;
|
||||
this.pictureBase.TabStop = false;
|
||||
//
|
||||
// buttonBase
|
||||
//
|
||||
this.buttonBase.Location = new System.Drawing.Point(12, 82);
|
||||
this.buttonBase.Name = "buttonBase";
|
||||
this.buttonBase.Size = new System.Drawing.Size(64, 23);
|
||||
this.buttonBase.TabIndex = 3;
|
||||
this.buttonBase.Text = "Base";
|
||||
this.buttonBase.UseVisualStyleBackColor = true;
|
||||
this.buttonBase.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// buttonTrim
|
||||
//
|
||||
this.buttonTrim.Location = new System.Drawing.Point(82, 82);
|
||||
this.buttonTrim.Name = "buttonTrim";
|
||||
this.buttonTrim.Size = new System.Drawing.Size(64, 23);
|
||||
this.buttonTrim.TabIndex = 4;
|
||||
this.buttonTrim.Text = "Trim";
|
||||
this.buttonTrim.UseVisualStyleBackColor = true;
|
||||
this.buttonTrim.Click += new System.EventHandler(this.buttonTrim_Click);
|
||||
//
|
||||
// export
|
||||
//
|
||||
this.export.Location = new System.Drawing.Point(204, 82);
|
||||
this.export.Name = "export";
|
||||
this.export.Size = new System.Drawing.Size(64, 23);
|
||||
this.export.TabIndex = 5;
|
||||
this.export.Text = "Export";
|
||||
this.export.UseVisualStyleBackColor = true;
|
||||
this.export.Click += new System.EventHandler(this.export_Click);
|
||||
//
|
||||
// textName
|
||||
//
|
||||
this.textName.Location = new System.Drawing.Point(152, 56);
|
||||
this.textName.Name = "textName";
|
||||
this.textName.Size = new System.Drawing.Size(116, 20);
|
||||
this.textName.TabIndex = 6;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(282, 252);
|
||||
this.Controls.Add(this.textName);
|
||||
this.Controls.Add(this.export);
|
||||
this.Controls.Add(this.buttonTrim);
|
||||
this.Controls.Add(this.buttonBase);
|
||||
this.Controls.Add(this.pictureBase);
|
||||
this.Controls.Add(this.pictureTrim);
|
||||
this.Controls.Add(this.pictureCompiled);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureCompiled)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureTrim)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBase)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureCompiled;
|
||||
private System.Windows.Forms.PictureBox pictureTrim;
|
||||
private System.Windows.Forms.PictureBox pictureBase;
|
||||
private System.Windows.Forms.Button buttonBase;
|
||||
private System.Windows.Forms.Button buttonTrim;
|
||||
private System.Windows.Forms.Button export;
|
||||
private System.Windows.Forms.TextBox textName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TextureBuilder
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
Bitmap baseImage;
|
||||
Bitmap trimImage;
|
||||
Bitmap compiledImage;
|
||||
|
||||
Bitmap drawerSide;
|
||||
Bitmap drawerSideH;
|
||||
Bitmap drawerSideV;
|
||||
Bitmap drawerFront1;
|
||||
Bitmap drawerFront2;
|
||||
Bitmap drawerFront4;
|
||||
Bitmap drawerSort;
|
||||
Bitmap drawerTrim;
|
||||
|
||||
SolidBrush shadeBrush = new SolidBrush(Color.FromArgb(32, 0, 0, 0));
|
||||
SolidBrush handleBrush = new SolidBrush(Color.FromArgb(192, 0, 0, 0));
|
||||
|
||||
public Form1 ()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void compileSide ()
|
||||
{
|
||||
drawerSide = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerSide)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
|
||||
private void compileSideH ()
|
||||
{
|
||||
drawerSideH = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerSideH)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 1, 7, 14, 2), scaledRect(trimImage, 1, 7, 14, 2), GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
|
||||
private void compileSideV ()
|
||||
{
|
||||
drawerSideV = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerSideV)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 7, 1, 2, 14), scaledRect(trimImage, 7, 1, 2, 14), GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
|
||||
private void compileSort ()
|
||||
{
|
||||
drawerSort = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerSort)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 4, 4, 8, 2), scaledRect(trimImage, 4, 4, 8, 2), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 5, 6, 6, 1), scaledRect(trimImage, 5, 6, 6, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 6, 7, 4, 1), scaledRect(trimImage, 6, 7, 4, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 7, 8, 2, 4), scaledRect(trimImage, 7, 8, 2, 4), GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
|
||||
private void compileFront1 ()
|
||||
{
|
||||
drawerFront1 = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerFront1)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 6, 1, 4, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 1, 14, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 2, 1, 12));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 14, 2, 1, 12));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 15, 15, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 1, 1, 14));
|
||||
}
|
||||
}
|
||||
|
||||
private void compileFront2 ()
|
||||
{
|
||||
drawerFront2 = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerFront2)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 1, 7, 14, 2), scaledRect(trimImage, 1, 7, 14, 2), GraphicsUnit.Pixel);
|
||||
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 6, 1, 4, 1));
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 6, 9, 4, 1));
|
||||
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 1, 14, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 9, 14, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 14, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 10, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 14, 10, 1, 4));
|
||||
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 7, 15, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 15, 15, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 1, 1, 6));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 9, 1, 6));
|
||||
}
|
||||
}
|
||||
|
||||
private void compileFront4 ()
|
||||
{
|
||||
drawerFront4 = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerFront4)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 0, 16, 1), scaledRect(trimImage, 0, 0, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 15, 16, 1), scaledRect(trimImage, 0, 15, 16, 1), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 0, 1, 1, 14), scaledRect(trimImage, 0, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 15, 1, 1, 14), scaledRect(trimImage, 15, 1, 1, 14), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 1, 7, 14, 2), scaledRect(trimImage, 1, 7, 14, 2), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 7, 1, 2, 6), scaledRect(trimImage, 7, 1, 2, 6), GraphicsUnit.Pixel);
|
||||
g.DrawImage(trimImage, scaledRect(drawerSide, 7, 9, 2, 6), scaledRect(trimImage, 7, 9, 2, 6), GraphicsUnit.Pixel);
|
||||
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 3, 1, 2, 1));
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 11, 1, 2, 1));
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 3, 9, 2, 1));
|
||||
g.FillRectangle(handleBrush, scaledRect(drawerFront1, 11, 9, 2, 1));
|
||||
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 1, 6, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 1, 6, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 9, 6, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 9, 6, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 6, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 14, 2, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 10, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 6, 10, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 10, 1, 4));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 14, 10, 1, 4));
|
||||
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 7, 7, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 7, 7, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 15, 7, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 9, 15, 7, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 7, 1, 1, 6));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 1, 1, 6));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 7, 9, 1, 6));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 9, 1, 6));
|
||||
}
|
||||
}
|
||||
|
||||
private void compileTrim ()
|
||||
{
|
||||
drawerTrim = new Bitmap(baseImage.Size.Width, baseImage.Size.Height, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(drawerTrim)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(trimImage, 0, 0, drawerSide.Size.Width, drawerSide.Size.Height);
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 1, 15, 15, 1));
|
||||
g.FillRectangle(shadeBrush, scaledRect(drawerFront1, 15, 1, 1, 14));
|
||||
}
|
||||
}
|
||||
|
||||
private Rectangle scaledRect (Bitmap refImage, int x, int y, int w, int h)
|
||||
{
|
||||
float scaleX = refImage.Size.Width / 16f;
|
||||
float scaleY = refImage.Size.Height / 16f;
|
||||
|
||||
return new Rectangle((int)(scaleX * x), (int)(scaleY * y), (int)(scaleX * w), (int)(scaleY * h));
|
||||
}
|
||||
|
||||
private void compileImage ()
|
||||
{
|
||||
if (baseImage == null || trimImage == null) {
|
||||
pictureCompiled.Image = null;
|
||||
return;
|
||||
}
|
||||
|
||||
compileSide();
|
||||
compileSideH();
|
||||
compileSideV();
|
||||
compileSort();
|
||||
compileFront1();
|
||||
compileFront2();
|
||||
compileFront4();
|
||||
compileTrim();
|
||||
|
||||
compiledImage = new Bitmap(256, 128, PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(compiledImage)) {
|
||||
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.DrawImage(drawerSide, new Rectangle(0, 0, 64, 64));
|
||||
g.DrawImage(drawerSideH, new Rectangle(64, 0, 64, 64));
|
||||
g.DrawImage(drawerSideV, new Rectangle(128, 0, 64, 64));
|
||||
g.DrawImage(drawerSort, new Rectangle(192, 0, 64, 64));
|
||||
g.DrawImage(drawerFront1, new Rectangle(0, 64, 64, 64));
|
||||
g.DrawImage(drawerFront2, new Rectangle(64, 64, 64, 64));
|
||||
g.DrawImage(drawerFront4, new Rectangle(128, 64, 64, 64));
|
||||
g.DrawImage(drawerTrim, new Rectangle(192, 64, 64, 64));
|
||||
}
|
||||
|
||||
pictureCompiled.Image = compiledImage;
|
||||
}
|
||||
|
||||
private void button1_Click (object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog() {
|
||||
Filter = "Image files (*.png)|*.png",
|
||||
RestoreDirectory = true,
|
||||
};
|
||||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK) {
|
||||
using (Stream fileStream = openFileDialog1.OpenFile()) {
|
||||
baseImage = (Bitmap)Bitmap.FromStream(fileStream);
|
||||
|
||||
Bitmap dest = new Bitmap(64, 64, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(dest)) {
|
||||
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
|
||||
g.DrawImage(baseImage, 0, 0, 64, 64);
|
||||
}
|
||||
pictureBase.Image = dest;
|
||||
}
|
||||
}
|
||||
|
||||
compileImage();
|
||||
}
|
||||
|
||||
private void buttonTrim_Click (object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog() {
|
||||
Filter = "Image files (*.png)|*.png",
|
||||
RestoreDirectory = true,
|
||||
};
|
||||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK) {
|
||||
using (Stream fileStream = openFileDialog1.OpenFile()) {
|
||||
trimImage = (Bitmap)Bitmap.FromStream(fileStream);
|
||||
|
||||
Bitmap dest = new Bitmap(64, 64, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
|
||||
using (Graphics g = Graphics.FromImage(dest)) {
|
||||
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
|
||||
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
|
||||
g.DrawImage(trimImage, 0, 0, 64, 64);
|
||||
}
|
||||
pictureTrim.Image = dest;
|
||||
}
|
||||
}
|
||||
|
||||
compileImage();
|
||||
}
|
||||
|
||||
private void export_Click (object sender, EventArgs e)
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(textName.Text))
|
||||
return;
|
||||
|
||||
try {
|
||||
drawerSide.Save("drawers_" + textName.Text + "_side.png", ImageFormat.Png);
|
||||
drawerSideH.Save("drawers_" + textName.Text + "_side_h.png", ImageFormat.Png);
|
||||
drawerSideV.Save("drawers_" + textName.Text + "_side_v.png", ImageFormat.Png);
|
||||
drawerSort.Save("drawers_" + textName.Text + "_sort.png", ImageFormat.Png);
|
||||
drawerFront1.Save("drawers_" + textName.Text + "_front_1.png", ImageFormat.Png);
|
||||
drawerFront2.Save("drawers_" + textName.Text + "_front_2.png", ImageFormat.Png);
|
||||
drawerFront4.Save("drawers_" + textName.Text + "_front_4.png", ImageFormat.Png);
|
||||
drawerTrim.Save("drawers_" + textName.Text + "_trim.png", ImageFormat.Png);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TextureBuilder
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main ()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("TextureBuilder")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("TextureBuilder")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("d9f648a4-2044-4c9d-bc2c-2cccc9273e8a")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TextureBuilder.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources ()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TextureBuilder.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TextureBuilder.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6F19681C-4CAC-4285-A932-075F93808C12}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TextureBuilder</RootNamespace>
|
||||
<AssemblyName>TextureBuilder</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</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.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
Reference in new issue
Block a user