Commit fce82972 authored by 16서원빈's avatar 16서원빈

Initial commit

parents
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" 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>{D8BB69F0-B434-41A0-B4DE-6DD49C0E0D98}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>ButtonPusherEditor</RootNamespace>
<AssemblyName>ButtonPusherEditor</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</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>
<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.Net.Http" />
<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" />
</Project>
\ No newline at end of file
namespace ButtonPusherEditor
{
partial class Form1
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form 디자이너에서 생성한 코드
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
this.noteLane = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.button3 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.Title = new System.Windows.Forms.TextBox();
this.Artist = new System.Windows.Forms.TextBox();
this.Genre = new System.Windows.Forms.TextBox();
this.BPM = new System.Windows.Forms.TextBox();
this.Level = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// noteLane
//
this.noteLane.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.noteLane.AutoSize = true;
this.noteLane.BackColor = System.Drawing.Color.Black;
this.noteLane.Location = new System.Drawing.Point(0, 0);
this.noteLane.Margin = new System.Windows.Forms.Padding(0);
this.noteLane.Name = "noteLane";
this.noteLane.Size = new System.Drawing.Size(2514, 258);
this.noteLane.TabIndex = 0;
this.noteLane.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawMeasures);
this.noteLane.MouseDown += new System.Windows.Forms.MouseEventHandler(this.noteLane_MouseDown);
this.noteLane.MouseUp += new System.Windows.Forms.MouseEventHandler(this.noteLane_MouseUp);
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.ColumnCount = 5;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Controls.Add(this.button3, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 4, 1);
this.tableLayoutPanel1.Controls.Add(this.label4, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.label3, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.Title, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.Artist, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.Genre, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.BPM, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.Level, 4, 2);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.button1, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.button2, 0, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 310);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1352, 257);
this.tableLayoutPanel1.TabIndex = 1;
//
// button3
//
this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button3.Font = new System.Drawing.Font("맑은 고딕", 13.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button3.Location = new System.Drawing.Point(273, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(264, 79);
this.button3.TabIndex = 12;
this.button3.Text = "Load BPE";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.ImportBPE);
//
// label5
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("맑은 고딕", 19.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label5.Location = new System.Drawing.Point(1083, 85);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(266, 85);
this.label5.TabIndex = 9;
this.label5.Text = "Play Level";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("맑은 고딕", 19.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label4.Location = new System.Drawing.Point(813, 85);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(264, 85);
this.label4.TabIndex = 8;
this.label4.Text = "BPM";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("맑은 고딕", 19.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label3.Location = new System.Drawing.Point(543, 85);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(264, 85);
this.label3.TabIndex = 7;
this.label3.Text = "Genre";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("맑은 고딕", 19.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.Location = new System.Drawing.Point(273, 85);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(264, 85);
this.label2.TabIndex = 6;
this.label2.Text = "Artist";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Title
//
this.Title.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Title.Location = new System.Drawing.Point(3, 173);
this.Title.Name = "Title";
this.Title.Size = new System.Drawing.Size(264, 35);
this.Title.TabIndex = 0;
//
// Artist
//
this.Artist.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Artist.Location = new System.Drawing.Point(273, 173);
this.Artist.Name = "Artist";
this.Artist.Size = new System.Drawing.Size(264, 35);
this.Artist.TabIndex = 1;
//
// Genre
//
this.Genre.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Genre.Location = new System.Drawing.Point(543, 173);
this.Genre.Name = "Genre";
this.Genre.Size = new System.Drawing.Size(264, 35);
this.Genre.TabIndex = 2;
//
// BPM
//
this.BPM.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.BPM.Location = new System.Drawing.Point(813, 173);
this.BPM.Name = "BPM";
this.BPM.Size = new System.Drawing.Size(264, 35);
this.BPM.TabIndex = 3;
this.BPM.TextChanged += new System.EventHandler(this.BPMChanged);
//
// Level
//
this.Level.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Level.Location = new System.Drawing.Point(1083, 173);
this.Level.Name = "Level";
this.Level.Size = new System.Drawing.Size(266, 35);
this.Level.TabIndex = 4;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("맑은 고딕", 19.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label1.Location = new System.Drawing.Point(3, 85);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(264, 85);
this.label1.TabIndex = 5;
this.label1.Text = "Title";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button1.Font = new System.Drawing.Font("맑은 고딕", 13.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button1.Location = new System.Drawing.Point(1083, 3);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(266, 79);
this.button1.TabIndex = 10;
this.button1.Text = "Add Measure";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.AddMeasure);
//
// button2
//
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button2.Font = new System.Drawing.Font("맑은 고딕", 13.875F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button2.Location = new System.Drawing.Point(3, 3);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(264, 79);
this.button2.TabIndex = 11;
this.button2.Text = "Export BPE";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.ExportBPE);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.noteLane);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Margin = new System.Windows.Forms.Padding(0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1355, 292);
this.panel1.TabIndex = 2;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(13F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1376, 579);
this.Controls.Add(this.panel1);
this.Controls.Add(this.tableLayoutPanel1);
this.MinimumSize = new System.Drawing.Size(1400, 650);
this.Name = "Form1";
this.Text = "Button Pusher Pattern Editor";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel noteLane;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TextBox Title;
private System.Windows.Forms.TextBox Artist;
private System.Windows.Forms.TextBox Genre;
private System.Windows.Forms.TextBox BPM;
private System.Windows.Forms.TextBox Level;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button3;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ButtonPusherEditor
{
[Flags]
enum Note : UInt32
{
None = 0b0000,
SBT = 0b0001,
LBT = 0b0010,
SMO = 0b0100,
LMO = 0b1000,
///////////////////////////////////////// SMO
CP = 0b10000000000000000000000000000100,
JP = 0b01000000000000000000000000000100,
PU = 0b00100000000000000000000000000100,
PI = 0b00010000000000000000000000000100,
GD = 0b00001000000000000000000000000100,
/////////////////////////////////////////L MO
HU = 0b00000000000000000000000100001000,
HD = 0b00000000000000000000000010001000,
JS = 0b00000000000000000000000001001000,
HP = 0b00000000000000000000000000101000,
OT = 0b00000000000000000000000000011000,
// Reset ////SSSSSSSSSSSSSSLLLLLLLLLLLLLLCCCC
SMOReset = 0b00000000000000111111111111111011,
LMOReset = 0b11111111111111000000000000000111
}
public partial class Form1 : Form
{
private static readonly int npm = 24;
private float bpm = 120;
private float measureScale = 2f;
private readonly int MEASURE_DIVISOR = 8;
private float MeasureSize
{
get
{
return measureScale * bpm;
}
}
private List<Note[]> measures;
private Pen btnPen;
private Pen smoPen;
private Pen lmoPen;
private Pen measurePen;
private Pen beatPen;
public Form1()
{
InitializeComponent();
DoubleBuffered = true;
noteLane.Height *= 2;
typeof(Panel).InvokeMember(
"DoubleBuffered",
BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
null,
noteLane,
new object[] { true });
btnPen = new Pen(Color.FromArgb(0xA0, 0x00, 0x80, 0x00), 1f);
smoPen = new Pen(Color.FromArgb(0xA0, 0x80, 0x00, 0x00), 1f);
lmoPen = new Pen(Color.FromArgb(0xA0, 0x00, 0x00, 0xFF), 1f);
measurePen = new Pen(Color.White, 3f);
beatPen = new Pen(Color.White, 1f);
ResetMeasures();
}
private void ResetMeasures()
{
measures = new List<Note[]>();
for (int i = 0; i < 10; i++)
AddMeasure();
}
private int? dragStartPointX = null;
private void noteLane_MouseDown(object sender, MouseEventArgs e)
{
dragStartPointX = e.X;
}
private void noteLane_MouseUp(object sender, MouseEventArgs e)
{
if (dragStartPointX.HasValue)
{
bool isMotion = e.Button == MouseButtons.Right
|| ModifierKeys.HasFlag(Keys.Control);
SelectNote(isMotion, dragStartPointX.Value, e.X);
}
dragStartPointX = null;
DrawMeasures();
}
private void SelectNote(bool isMotion, int posX, int posEndX = -1)
{
if (posEndX == -1)
posEndX = posX;
else if (posX > posEndX)
{
int tmp = posX;
posX = posEndX;
posEndX = tmp;
}
int measure = (int)(posX / MeasureSize);
int beat = (int)Math.Round((posX - (MeasureSize * measure))
* npm / MeasureSize);
int measureEnd = measure;
int beatEnd = beat;
if (posEndX != -1)
{
measureEnd = (int)(posEndX / MeasureSize);
beatEnd = (int)Math.Round((posEndX - (MeasureSize * measureEnd))
* npm / MeasureSize);
}
while (measureEnd >= measures.Count)
AddMeasure();
if ((measures[measure][beat] & Note.SMO) != 0
&& isMotion && posX == posEndX)
{
measures[measure][beat] &= Note.SMOReset;
return;
}
Note? motion = null;
if (isMotion)
{
Func<string> MotionKeyDialog = delegate()
{
Form prompt = new Form()
{
Width = 500,
Height = 150,
FormBorderStyle = FormBorderStyle.FixedDialog,
Text = "Input motion key",
StartPosition = FormStartPosition.CenterScreen
};
Label textLabel = new Label()
{ Left = 50, Top = 20, Text = "Motion key" };
TextBox textBox = new TextBox()
{ Left = 50, Top = 50, Width = 400 };
Button confirmation = new Button()
{
Text = "Ok",
Left = 350,
Width = 100,
Top = 70,
DialogResult = DialogResult.OK
};
confirmation.Click += (sender, e) => { prompt.Close(); };
prompt.Controls.Add(textBox);
prompt.Controls.Add(confirmation);
prompt.Controls.Add(textLabel);
prompt.AcceptButton = confirmation;
return prompt.ShowDialog() == DialogResult.OK
? textBox.Text : "";
};
string res = MotionKeyDialog();
motion = Enum.GetValues(typeof(Note)).OfType<Note>()
.Where(x => x.ToString() == res.Trim())
.FirstOrDefault();
if (motion == Note.None)
{
MessageBox.Show("Motion not found: " + res);
return;
}
}
if (posX == posEndX)
FlipNoteFlag(measure, beat, motion);
else
{
if (measure != measureEnd)
{
for (int j = beat; j < npm; j++)
FlipNoteFlag(measure, j, motion, true);
for (int i = measure + 1; i < measureEnd; i++)
{
for (int j = 0; j < npm; j++)
FlipNoteFlag(i, j, motion, true);
}
for (int j = 0; j < beatEnd; j++)
FlipNoteFlag(measureEnd, j, motion, true);
}
else
for (int j = beat; j <= beatEnd; j++)
FlipNoteFlag(measure, j, motion, true);
}
}
private void FlipNoteFlag(int measure, int beat, Note? motion = null, bool isLongMotion = false)
{
if (motion.HasValue)
{
if (isLongMotion)
measures[measure][beat] &= Note.LMOReset;
else
measures[measure][beat] &= Note.SMOReset;
measures[measure][beat] |= motion.Value;
}
else
measures[measure][beat] ^= Note.SBT;
}
private void BPMChanged(object sender, EventArgs e)
{
if (float.TryParse(BPM.Text, out bpm))
{
DrawMeasures();
}
}
private void AddMeasure(object sender = null, EventArgs e = null)
{
measures.Add(new Note[npm]);
DrawMeasures();
}
private void DrawMeasures(object sender = null, PaintEventArgs e = null)
{
if (sender == null)
{
noteLane.Refresh();
return;
}
var g = e.Graphics;
for (int i = 0; i < measures.Count; i++)
{
g.DrawLine(measurePen, (i + 1) * MeasureSize, 0,
(i + 1) * MeasureSize, noteLane.Height);
for (int j = 0; j < npm; j++)
{
float x = i * MeasureSize + j * MeasureSize / npm;
if (j % (npm / MEASURE_DIVISOR) == 0)
g.DrawLine(beatPen, x, 0, x, noteLane.Height);
if (measures[i][j] == Note.None)
continue;
bool btn = (measures[i][j] & (Note.SBT | Note.LBT)) != 0;
bool smo = (measures[i][j] & Note.SMO) != 0;
bool lmo = (measures[i][j] & Note.LMO) != 0;
if (btn)
g.DrawLine(btnPen, x, 0, x, noteLane.Height);
if (smo)
g.DrawLine(smoPen, x, 0, x, noteLane.Height);
if (lmo)
g.DrawLine(lmoPen, x, 0, x, noteLane.Height);
}
}
noteLane.Width = (int)MeasureSize * measures.Count;
}
private void ExportBPE(object sender, EventArgs e)
{
var sfd = new SaveFileDialog
{
Filter = "Button Pusher Pattern|*.bpe"
};
if (sfd.ShowDialog() != DialogResult.OK || sfd.FileName == "")
return;
FileInfo file = new FileInfo(sfd.FileName);
using (var writer
= new StreamWriter((file.OpenWrite())))
{
writer.WriteLine("#TITLE " + Title.Text);
writer.WriteLine("#ARTIST " + Artist.Text);
writer.WriteLine("#GENRE " + Genre.Text);
writer.WriteLine("#BPM " + BPM.Text);
writer.WriteLine("#PLAYLEVEL " + Level.Text);
writer.WriteLine();
List<Note[]> tempMeasures = new List<Note[]>();
foreach (Note[] measure in measures)
{
Note[] tempMeasure = new Note[npm];
measure.CopyTo(tempMeasure, 0);
tempMeasures.Add(tempMeasure);
}
for (int i = 0; i < measures.Count; i++)
{
Longbuttonize(i);
foreach (Note noteType in Enum.GetValues(typeof(Note)))
{
if (noteType > (Note)0b1111 || noteType == Note.None)
continue;
BPEDataLinePreprocess(noteType, i);
}
}
for (int i = 0; i < measures.Count; i++)
{
foreach (Note noteType in Enum.GetValues(typeof(Note)))
{
if (noteType > (Note)0b1111 || noteType == Note.None)
continue;
string line = BPEDataLineBuilder(noteType, i);
writer.Write(line);
}
}
measures = tempMeasures;
}
}
private void Longbuttonize(int line)
{
for (int i = 0; i < npm; i++)
{
int m, b;
if (i != npm - 1)
{
m = line;
b = i + 1;
}
else if (line < measures.Count - 1)
{
m = line + 1;
b = 0;
}
else
continue;
if ((measures[m][b] & (Note.SBT | Note.LBT)) != 0
&& (measures[line][i] & (Note.SBT | Note.LBT)) != 0)
{
measures[m][b] &= ~Note.SBT;
measures[m][b] |= Note.LBT;
measures[line][i] &= ~Note.SBT;
measures[line][i] |= Note.LBT;
}
}
}
bool keepLongBtn = false;
bool keepLongMtn = false;
private void BPEDataLinePreprocess(Note type, int line)
{
bool isLong = ((Note.LBT | Note.LMO) & type) != 0;
bool isMotion = ((Note.SMO | Note.LMO) & type) != 0;
if (!isLong)
return;
for (int i = 0; i < npm; i++)
{
int m, b;
if (i != 0)
{
m = line;
b = i - 1;
}
else if (line != 0)
{
m = line - 1;
b = npm - 1;
}
else
continue;
if ((measures[m][b] & measures[line][i] & type) != 0)
{
if (!isMotion)
{
if (keepLongBtn)
{
measures[m][b] ^= type;
}
keepLongBtn = true;
}
else
{
if (keepLongMtn)
{
if ((measures[m][b] & measures[line][i]
& ~Note.LMOReset & ~(Note)0b1111) != 0)
measures[m][b] ^= measures[m][b] & ~Note.LMOReset;
else
keepLongMtn = false;
}
else
keepLongMtn = true;
}
}
else
{
if (!isMotion)
{
if (keepLongBtn)
{
measures[line][i] ^=type;
measures[m][b] ^= type;
}
keepLongBtn = false;
}
else
{
if (keepLongMtn)
{
measures[line][i] ^= measures[m][b] & ~Note.LMOReset;
measures[m][b] ^= measures[m][b] & ~Note.LMOReset;
}
keepLongMtn = false;
}
}
}
}
private string BPEDataLineBuilder(Note type, int line)
{
int gcd = npm / 2;
for (int i = 1; i < npm; i++)
{
if (gcd == 1)
break;
if (i % gcd == 0)
continue;
if ((measures[line][i] & type) != 0)
{
i = 0;
gcd /= 2;
continue;
}
}
string head = "#" + line.ToString().PadLeft(3, '0')
+ type.ToString() + " ";
string body = "";
for (int i = 0; i < npm / gcd; i++)
{
Note key = measures[line][i * gcd];
if ((key & type) != 0)
{
if ((type & (Note.SBT | Note.LBT)) != 0)
body += "AA";
else
{
foreach (Note nt in Enum.GetValues(typeof(Note)))
{
if (nt < (Note)0b1111
|| nt == Note.LMOReset || nt==Note.SMOReset)
continue;
if ((key & nt & ~(Note)0b1111) != 0)
body += nt.ToString();
}
}
}
else
body += "00";
}
if (body == "0000")
return "";
return head + body + "\n";
}
private void ParseBPEHeader(FileInfo file)
{
using (StreamReader reader
= new StreamReader(new BufferedStream(file.OpenRead())))
{
string line;
while ((line = reader.ReadLine()) != null)
{
if (line == "" || line[0] != '#')
continue;
string[] token = line.Split(new char[] { ' ' }, 2);
string field = token[0];
string value = token[1].Trim();
switch (field)
{
case "#TITLE":
Title.Text = value;
break;
case "#ARTIST":
Artist.Text = value;
break;
case "#GENRE":
Genre.Text = value;
break;
case "#BPM":
float outBPM;
if (float.TryParse(value, out outBPM))
bpm = outBPM;
else
bpm = 120;
BPM.Text = outBPM.ToString();
break;
case "#PLAYLEVEL":
int outLevel;
if (int.TryParse(value, out outLevel))
Level.Text = outLevel.ToString();
else
Level.Text = "0";
break;
}
}
}
}
private void ParseBPENote(FileInfo file)
{
ResetMeasures();
Tuple<int, int> tempLongStart = null;
using (StreamReader reader
= new StreamReader(new BufferedStream(file.OpenRead())))
{
string line;
while ((line = reader.ReadLine()) != null)
{
if (line == "" || line[0] != '#')
continue;
string[] token = line.Split(new char[] { ' ' }, 2);
string field = token[0];
string value = token[1].Trim();
if (field.Length != 7)
continue;
string[] CHANNELS = { "SBT", "LBT", "SMO", "LMO" };
string channel = field.Substring(4, 3);
if (!int.TryParse(field.Substring(1, 3), out int measure))
continue;
if (Array.FindIndex(CHANNELS, x => x == channel) == -1)
continue;
int seq = value.Length / 2;
while (measure >= measures.Count)
AddMeasure();
for (int i = 0; i < seq; i++)
{
string key = value.Substring(i * 2, 2);
if (key == "00")
continue;
int beat = i * npm / seq;
if (channel == "SMO")
{
measures[measure][beat] |= Note.SMO;
}
else if (channel[0] == 'S')
{
measures[measure][beat] |= Note.SBT;
}
else if (channel[0] == 'L')
{
if (tempLongStart == null)
{
tempLongStart = new Tuple<int, int>(measure, beat);
continue;
}
if (measure == tempLongStart.Item1)
{
for (int b = tempLongStart.Item2; b < beat; b++)
measures[measure][b] |= Note.SBT;
}
else
{
for (int b = tempLongStart.Item2; b < npm; b++)
measures[tempLongStart.Item1][b] |= Note.SBT;
for (int m = tempLongStart.Item1 + 1; m < measure; m++)
{
for (int b = 0; b < npm; b++)
measures[m][b] |= Note.SBT;
}
for (int b = 0; b < beat; b++)
measures[measure][b] |= Note.SBT;
}
tempLongStart = null;
}
}
}
}
DrawMeasures();
}
private void ImportBPE(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog
{
Filter = "Button Pusher Pattern Files|*.bpe"
};
if (ofd.ShowDialog() != DialogResult.OK)
return;
FileInfo file = new FileInfo(ofd.FileName);
ParseBPEHeader(file);
ParseBPENote(file);
}
}
}
<?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>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ButtonPusherEditor
{
static class Program
{
/// <summary>
/// 해당 응용 프로그램의 주 진입점입니다.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
// 이러한 특성 값을 변경하세요.
[assembly: AssemblyTitle("ButtonPusherEditor")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ButtonPusherEditor")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
[assembly: ComVisible(false)]
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
[assembly: Guid("d8bb69f0-b434-41a0-b4de-6dd49c0e0d98")]
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
//
// 주 버전
// 부 버전
// 빌드 번호
// 수정 버전
//
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 이 코드는 도구를 사용하여 생성되었습니다.
// 런타임 버전:4.0.30319.42000
//
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
// 이러한 변경 내용이 손실됩니다.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ButtonPusherEditor.Properties
{
/// <summary>
/// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다.
/// </summary>
// 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder
// 클래스에서 자동으로 생성되었습니다.
// 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여
// ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오.
[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>
/// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다.
/// </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("ButtonPusherEditor.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해
/// 현재 스레드의 CurrentUICulture 속성을 재정의합니다.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?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>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ButtonPusherEditor.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;
}
}
}
}
<?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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment