я молодец
This commit is contained in:
parent
060dc34df2
commit
9e2cdc53a2
2 changed files with 21 additions and 4 deletions
|
@ -78,6 +78,7 @@
|
|||
this.ButtonAddChar = new System.Windows.Forms.Button();
|
||||
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
|
@ -393,6 +394,7 @@
|
|||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.textBox1);
|
||||
this.panel3.Controls.Add(this.SpriteNumberLabel);
|
||||
this.panel3.Controls.Add(this.SpriteNumberTextBox);
|
||||
this.panel3.Controls.Add(this.OpenButton);
|
||||
|
@ -529,6 +531,7 @@
|
|||
this.TextBoxWall1.Name = "TextBoxWall1";
|
||||
this.TextBoxWall1.Size = new System.Drawing.Size(100, 20);
|
||||
this.TextBoxWall1.TabIndex = 2;
|
||||
this.TextBoxWall1.TextChanged += new System.EventHandler(this.TextBoxWall1_TextChanged);
|
||||
//
|
||||
// ComboBoxMove
|
||||
//
|
||||
|
@ -578,6 +581,14 @@
|
|||
//
|
||||
this.openFileDialog1.FileName = "openFileDialog1";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(132, 114);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(235, 20);
|
||||
this.textBox1.TabIndex = 17;
|
||||
this.textBox1.Text = "Здесь должна быть кнопка амплитуды X Y !!!";
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -652,6 +663,7 @@
|
|||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -199,10 +199,10 @@ namespace WindowsFormsApplication1
|
|||
File.AppendAllText(filename, " Person per;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.texture = txLoadImage(\"Pictures\\Personaj.bmp\");" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.x = 50;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.y = 50;"+ Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.x = " + TextBoxWall1.Text + ";" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.y = " + TextBoxWall1.Text + ";" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.nomer_kadra = 0;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.nach_dv = 300;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.nach_dv = per.y;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.ampl_y = 150;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.ampl_x = 10;" + Environment.NewLine);
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ namespace WindowsFormsApplication1
|
|||
File.AppendAllText(filename, " txTransparentBlt(txDC(), per.x, per.y, 55, 86, per.texture, 55 * per.nomer_kadra, 0, RGB(0, 255, 255));" + Environment.NewLine);
|
||||
File.AppendAllText(filename, Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.nomer_kadra++;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " if (per.nomer_kadra > 2)" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " if (per.nomer_kadra > " + SpriteNumberTextBox.Text + ")" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " {" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " per.nomer_kadra = 0;" + Environment.NewLine);
|
||||
File.AppendAllText(filename, " }" + Environment.NewLine);
|
||||
|
@ -336,5 +336,10 @@ namespace WindowsFormsApplication1
|
|||
b1[0].Visible = true;
|
||||
this.panel1.Controls.Add(b1[0]);
|
||||
}
|
||||
|
||||
private void TextBoxWall1_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue