сделал красивее строки персонажа

Идеально тлдрмвтоуорукрдгаркутаовриуктоарвлмеквпаиыоаивраволимавлтмрвитмкуьтимваотиуцритасоцуимоуттильваттсиыьм таывмтвытаьм вам вытмваь 
(►:
This commit is contained in:
Nikita_Silantyev 2018-04-10 16:56:13 +04:00 committed by GitHub
parent 50fad066df
commit 007fb3355d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 68 additions and 14 deletions

View file

@ -41,6 +41,7 @@ namespace WindowsFormsApplication1
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.SaveCharButton = new System.Windows.Forms.Button(); this.SaveCharButton = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.openSpace = new System.Windows.Forms.PictureBox();
this.SpriteNumberLabel = new System.Windows.Forms.Label(); this.SpriteNumberLabel = new System.Windows.Forms.Label();
this.SpriteNumberTextBox = new System.Windows.Forms.TextBox(); this.SpriteNumberTextBox = new System.Windows.Forms.TextBox();
this.OpenButton = new System.Windows.Forms.Button(); this.OpenButton = new System.Windows.Forms.Button();
@ -59,7 +60,7 @@ namespace WindowsFormsApplication1
this.ButtonAddChar = new System.Windows.Forms.Button(); this.ButtonAddChar = new System.Windows.Forms.Button();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.openSpace = new System.Windows.Forms.PictureBox(); this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
@ -104,6 +105,7 @@ namespace WindowsFormsApplication1
// //
// panel1 // panel1
// //
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label13); this.panel1.Controls.Add(this.label13);
this.panel1.Controls.Add(this.PictureBoxBackground); this.panel1.Controls.Add(this.PictureBoxBackground);
this.panel1.Controls.Add(this.LabelBackground); this.panel1.Controls.Add(this.LabelBackground);
@ -143,6 +145,7 @@ namespace WindowsFormsApplication1
this.LabelBackground.Size = new System.Drawing.Size(77, 13); this.LabelBackground.Size = new System.Drawing.Size(77, 13);
this.LabelBackground.TabIndex = 11; this.LabelBackground.TabIndex = 11;
this.LabelBackground.Text = "Выбрать фон:"; this.LabelBackground.Text = "Выбрать фон:";
this.LabelBackground.Click += new System.EventHandler(this.LabelBackground_Click);
// //
// dobavitFonButton // dobavitFonButton
// //
@ -209,6 +212,14 @@ namespace WindowsFormsApplication1
this.panel3.TabIndex = 2; this.panel3.TabIndex = 2;
this.panel3.Visible = false; this.panel3.Visible = false;
// //
// openSpace
//
this.openSpace.Location = new System.Drawing.Point(65, 206);
this.openSpace.Name = "openSpace";
this.openSpace.Size = new System.Drawing.Size(245, 55);
this.openSpace.TabIndex = 17;
this.openSpace.TabStop = false;
//
// SpriteNumberLabel // SpriteNumberLabel
// //
this.SpriteNumberLabel.AutoSize = true; this.SpriteNumberLabel.AutoSize = true;
@ -357,13 +368,15 @@ namespace WindowsFormsApplication1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// openSpace // label1
// //
this.openSpace.Location = new System.Drawing.Point(65, 206); this.label1.AutoSize = true;
this.openSpace.Name = "openSpace"; this.label1.Location = new System.Drawing.Point(14, 274);
this.openSpace.Size = new System.Drawing.Size(245, 55); this.label1.Name = "label1";
this.openSpace.TabIndex = 17; this.label1.Size = new System.Drawing.Size(259, 13);
this.openSpace.TabStop = false; this.label1.TabIndex = 24;
this.label1.Text = "number name state view delete";
this.label1.Click += new System.EventHandler(this.label1_Click);
// //
// MainForm // MainForm
// //
@ -421,5 +434,6 @@ namespace WindowsFormsApplication1
private System.Windows.Forms.PictureBox PictureBoxBackground; private System.Windows.Forms.PictureBox PictureBoxBackground;
private System.Windows.Forms.Label label13; private System.Windows.Forms.Label label13;
private System.Windows.Forms.PictureBox openSpace; private System.Windows.Forms.PictureBox openSpace;
private System.Windows.Forms.Label label1;
} }
} }

View file

@ -38,6 +38,8 @@ namespace WindowsFormsApplication1
openFileDialog1.Filter = "Kartinki|*.bmp"; openFileDialog1.Filter = "Kartinki|*.bmp";
saveFileDialog1.Filter = "cpp files|*.cpp"; saveFileDialog1.Filter = "cpp files|*.cpp";
} }
private void buttonAddCharClick(object sender, EventArgs e) private void buttonAddCharClick(object sender, EventArgs e)
@ -50,6 +52,7 @@ namespace WindowsFormsApplication1
return "per" + nomer.ToString(); return "per" + nomer.ToString();
} }
private void delete_pics2(string filename, int nomer) private void delete_pics2(string filename, int nomer)
{ {
File.AppendAllText(filename, Environment.NewLine); File.AppendAllText(filename, Environment.NewLine);
@ -99,7 +102,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l1.Left = 30; persons[nomerPersa].l1.Left = 30;
persons[nomerPersa].l1.Width = 20; persons[nomerPersa].l1.Width = 20;
persons[nomerPersa].l1.Visible = true; persons[nomerPersa].l1.Visible = true;
persons[nomerPersa].l1.Text = "1"; persons[nomerPersa].l1.Text = nomerPersa.ToString()+1;
this.panel1.Controls.Add(persons[nomerPersa].l1); this.panel1.Controls.Add(persons[nomerPersa].l1);
persons[nomerPersa].l2 = new Label(); persons[nomerPersa].l2 = new Label();
@ -107,7 +110,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l2.Left = 60; persons[nomerPersa].l2.Left = 60;
persons[nomerPersa].l2.Width = 60; persons[nomerPersa].l2.Width = 60;
persons[nomerPersa].l2.Visible = true; persons[nomerPersa].l2.Visible = true;
persons[nomerPersa].l2.Text = "Перс1"; persons[nomerPersa].l2.Text = "Перс " + nomerPersa.ToString()+1;
this.panel1.Controls.Add(persons[nomerPersa].l2); this.panel1.Controls.Add(persons[nomerPersa].l2);
persons[nomerPersa].l3 = new Label(); persons[nomerPersa].l3 = new Label();
@ -115,7 +118,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l3.Left = 120; persons[nomerPersa].l3.Left = 120;
persons[nomerPersa].l3.Width = 40; persons[nomerPersa].l3.Width = 40;
persons[nomerPersa].l3.Visible = true; persons[nomerPersa].l3.Visible = true;
persons[nomerPersa].l3.Text = "ocphcghfgh"; persons[nomerPersa].l3.Text = "saved";
this.panel1.Controls.Add(persons[nomerPersa].l3); this.panel1.Controls.Add(persons[nomerPersa].l3);
persons[nomerPersa].b1 = new Button(); persons[nomerPersa].b1 = new Button();
@ -123,7 +126,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].b1.Left = 170; persons[nomerPersa].b1.Left = 170;
persons[nomerPersa].b1.Width = 50; persons[nomerPersa].b1.Width = 50;
persons[nomerPersa].b1.Visible = true; persons[nomerPersa].b1.Visible = true;
persons[nomerPersa].b1.Text = "R" + nomerPersa.ToString(); persons[nomerPersa].b1.Text = "view" + nomerPersa.ToString();
persons[nomerPersa].b1.MouseClick += persons[nomerPersa].b1.MouseClick +=
new MouseEventHandler(this.button1_Click_2); new MouseEventHandler(this.button1_Click_2);
this.panel1.Controls.Add(persons[nomerPersa].b1); this.panel1.Controls.Add(persons[nomerPersa].b1);
@ -133,9 +136,23 @@ namespace WindowsFormsApplication1
persons[nomerPersa].b2.Left = 230; persons[nomerPersa].b2.Left = 230;
persons[nomerPersa].b2.Width = 50; persons[nomerPersa].b2.Width = 50;
persons[nomerPersa].b2.Visible = true; persons[nomerPersa].b2.Visible = true;
persons[nomerPersa].b2.Text = "X"; persons[nomerPersa].b2.Text = "Delete";
this.panel1.Controls.Add(persons[nomerPersa].b2); this.panel1.Controls.Add(persons[nomerPersa].b2);
ToolTip tView = new ToolTip();
tView.IsBalloon = true;
tView.InitialDelay = 0;
tView.ShowAlways = true;
tView.AutoPopDelay = 2000;
tView.SetToolTip(persons[nomerPersa].b1, "View/edit person");
ToolTip tDelete = new ToolTip();
tDelete.IsBalloon = true;
tDelete.InitialDelay = 0;
tDelete.ShowAlways = true;
tDelete.AutoPopDelay = 2000;
tDelete.SetToolTip(persons[nomerPersa].b2, "Delete this person");
persons[nomerPersa].coord = TextBoxWall1.Text; persons[nomerPersa].coord = TextBoxWall1.Text;
persons[nomerPersa].coord2 = TextBoxWall2.Text; persons[nomerPersa].coord2 = TextBoxWall2.Text;
persons[nomerPersa].nomer = nomerPersa; persons[nomerPersa].nomer = nomerPersa;
@ -143,6 +160,9 @@ namespace WindowsFormsApplication1
nomerPersa++; nomerPersa++;
yPersa = yPersa + 30; yPersa = yPersa + 30;
openSpace.Image = null; openSpace.Image = null;
} }
private void circle_create_person(string filename, string name) private void circle_create_person(string filename, string name)
@ -295,5 +315,15 @@ namespace WindowsFormsApplication1
} }
} }
} }
private void LabelBackground_Click(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
} }
} }

View file

@ -1 +1 @@
38bfce534dc3c0d959750689d6e2ad74c4628282 9fcadd9ef444bb25b044c80f8ae2b04d1a041afd

View file

@ -17,3 +17,13 @@ C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication
C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb C:\Users\user\Desktop\Overnewing\vst\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.MainForm.resources
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Properties.Resources.resources
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.CoreCompileInputs.cache
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe
C:\Users\Инженерка\Desktop\MultRedactor-master\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb