diff --git a/.vs/FloatToolGUI/v16/.suo b/.vs/FloatToolGUI/v16/.suo index 178d949..ecb0aaf 100644 Binary files a/.vs/FloatToolGUI/v16/.suo and b/.vs/FloatToolGUI/v16/.suo differ diff --git a/FloatToolGUI/About.Designer.cs b/FloatToolGUI/About.Designer.cs index f5a4da7..9a85ba8 100644 --- a/FloatToolGUI/About.Designer.cs +++ b/FloatToolGUI/About.Designer.cs @@ -41,20 +41,25 @@ private void InitializeComponent() // // close_btn // + this.close_btn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); this.close_btn.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.close_btn.Font = new System.Drawing.Font("Microsoft Tai Le", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.close_btn.FlatAppearance.BorderSize = 0; + this.close_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.close_btn.Font = new System.Drawing.Font("Microsoft JhengHei Light", 18F); + this.close_btn.ForeColor = System.Drawing.Color.White; this.close_btn.Location = new System.Drawing.Point(11, 184); this.close_btn.Name = "close_btn"; this.close_btn.Size = new System.Drawing.Size(218, 45); this.close_btn.TabIndex = 0; this.close_btn.Text = "Закрыть"; - this.close_btn.UseVisualStyleBackColor = true; + this.close_btn.UseVisualStyleBackColor = false; this.close_btn.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Righteous", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(29, 7); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(181, 47); @@ -65,16 +70,18 @@ private void InitializeComponent() // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Righteous", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.White; this.label2.Location = new System.Drawing.Point(52, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(131, 21); this.label2.TabIndex = 2; - this.label2.Text = "Версия 0.2.1 GUI"; + this.label2.Text = "Версия 0.3.1 GUI"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Maiandra GD", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.White; this.label3.Location = new System.Drawing.Point(21, 86); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(202, 14); @@ -86,6 +93,7 @@ private void InitializeComponent() // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Maiandra GD", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.ForeColor = System.Drawing.Color.White; this.label4.Location = new System.Drawing.Point(37, 109); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(167, 14); @@ -96,6 +104,7 @@ private void InitializeComponent() // this.divam.AutoSize = true; this.divam.Font = new System.Drawing.Font("Maiandra GD", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.divam.ForeColor = System.Drawing.Color.White; this.divam.Location = new System.Drawing.Point(53, 133); this.divam.Name = "divam"; this.divam.Size = new System.Drawing.Size(43, 14); @@ -107,6 +116,7 @@ private void InitializeComponent() // this.granzi.AutoSize = true; this.granzi.Font = new System.Drawing.Font("Maiandra GD", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.granzi.ForeColor = System.Drawing.Color.White; this.granzi.Location = new System.Drawing.Point(116, 133); this.granzi.Name = "granzi"; this.granzi.Size = new System.Drawing.Size(72, 14); @@ -118,6 +128,7 @@ private void InitializeComponent() // this.brisk.AutoSize = true; this.brisk.Font = new System.Drawing.Font("Maiandra GD", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.brisk.ForeColor = System.Drawing.Color.White; this.brisk.Location = new System.Drawing.Point(5, 159); this.brisk.Name = "brisk"; this.brisk.Size = new System.Drawing.Size(227, 14); @@ -130,6 +141,7 @@ private void InitializeComponent() this.AcceptButton = this.close_btn; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44))))); this.CancelButton = this.close_btn; this.ClientSize = new System.Drawing.Size(239, 237); this.ControlBox = false; diff --git a/FloatToolGUI/FloatToolGUI.csproj b/FloatToolGUI/FloatToolGUI.csproj index 0fc2fc9..1144b96 100644 --- a/FloatToolGUI/FloatToolGUI.csproj +++ b/FloatToolGUI/FloatToolGUI.csproj @@ -126,9 +126,11 @@ + + diff --git a/FloatToolGUI/Main.Designer.cs b/FloatToolGUI/Main.Designer.cs index 191d4c7..adffbc9 100644 --- a/FloatToolGUI/Main.Designer.cs +++ b/FloatToolGUI/Main.Designer.cs @@ -16,14 +16,18 @@ protected override void Dispose(bool disposing) if (disposing && (components != null)) { components.Dispose(); - } - client.Dispose(); + if (client.IsInitialized) + { + client.Dispose(); + } if (thread1.IsAlive) { thread1.Abort(); } - base.Dispose(disposing); + if (!base.IsDisposed) { + base.Dispose(disposing); + } } #region Код, автоматически созданный конструктором форм Windows @@ -36,97 +40,323 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FloatTool)); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.button1 = new System.Windows.Forms.Button(); - this.label4 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel8 = new System.Windows.Forms.Panel(); + this.panel13 = new System.Windows.Forms.Panel(); + this.panel11 = new System.Windows.Forms.Panel(); + this.panel12 = new System.Windows.Forms.Panel(); + this.panel10 = new System.Windows.Forms.Panel(); + this.panel7 = new System.Windows.Forms.Panel(); + this.panel9 = new System.Windows.Forms.Panel(); + this.button9 = new System.Windows.Forms.Button(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); + this.button7 = new System.Windows.Forms.Button(); + this.button6 = new System.Windows.Forms.Button(); + this.button8 = new System.Windows.Forms.Button(); + this.button5 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.panel3 = new System.Windows.Forms.Panel(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.panel6 = new System.Windows.Forms.Panel(); this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.button1 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.comboBox3 = new System.Windows.Forms.ComboBox(); - this.comboBox2 = new System.Windows.Forms.ComboBox(); - this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.panel5 = new System.Windows.Forms.Panel(); + this.panel14 = new System.Windows.Forms.Panel(); this.checkBox3 = new System.Windows.Forms.CheckBox(); + this.label6 = new System.Windows.Forms.Label(); this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.button2 = new System.Windows.Forms.Button(); + this.textBox3 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.progressBar1 = new System.Windows.Forms.ProgressBar(); - this.button2 = new System.Windows.Forms.Button(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.настройкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.информацияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.туториалToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.оПрограммеToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.timer1 = new System.Windows.Forms.Timer(this.components); - this.groupBox1.SuspendLayout(); - this.groupBox2.SuspendLayout(); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.panel8.SuspendLayout(); + this.panel13.SuspendLayout(); + this.panel11.SuspendLayout(); + this.panel7.SuspendLayout(); + this.panel9.SuspendLayout(); + this.contextMenuStrip1.SuspendLayout(); + this.panel3.SuspendLayout(); + this.panel6.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel14.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); - this.groupBox3.SuspendLayout(); - this.menuStrip1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel4.SuspendLayout(); this.SuspendLayout(); // - // textBox1 + // textBox2 // - resources.ApplyResources(this.textBox1, "textBox1"); - this.textBox1.Name = "textBox1"; - this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox2.Cursor = System.Windows.Forms.Cursors.Default; + resources.ApplyResources(this.textBox2, "textBox2"); + this.textBox2.ForeColor = System.Drawing.Color.White; + this.textBox2.Name = "textBox2"; + this.textBox2.ReadOnly = true; + this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); // - // groupBox1 - // - this.groupBox1.BackColor = System.Drawing.Color.Transparent; - this.groupBox1.Controls.Add(this.button1); - this.groupBox1.Controls.Add(this.label4); - this.groupBox1.Controls.Add(this.checkBox1); - this.groupBox1.Controls.Add(this.label3); - this.groupBox1.Controls.Add(this.textBox1); - this.groupBox1.Controls.Add(this.comboBox3); - this.groupBox1.Controls.Add(this.comboBox2); - this.groupBox1.Controls.Add(this.label2); - this.groupBox1.Controls.Add(this.label1); - this.groupBox1.Controls.Add(this.comboBox1); - resources.ApplyResources(this.groupBox1, "groupBox1"); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.TabStop = false; + // timer1 // - // button1 + this.timer1.Enabled = true; + this.timer1.Interval = 15000; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // - resources.ApplyResources(this.button1, "button1"); - this.button1.Name = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); + // panel1 // - // label4 + this.panel1.BackColor = System.Drawing.Color.Silver; + this.panel1.Controls.Add(this.panel8); + this.panel1.Controls.Add(this.panel7); + resources.ApplyResources(this.panel1, "panel1"); + this.panel1.Name = "panel1"; // - resources.ApplyResources(this.label4, "label4"); - this.label4.Name = "label4"; + // panel8 + // + this.panel8.Controls.Add(this.panel13); + this.panel8.Controls.Add(this.panel10); + resources.ApplyResources(this.panel8, "panel8"); + this.panel8.Name = "panel8"; + // + // panel13 + // + this.panel13.Controls.Add(this.panel11); + this.panel13.Controls.Add(this.panel12); + resources.ApplyResources(this.panel13, "panel13"); + this.panel13.Name = "panel13"; + // + // panel11 + // + this.panel11.Controls.Add(this.textBox2); + resources.ApplyResources(this.panel11, "panel11"); + this.panel11.Name = "panel11"; + // + // panel12 + // + this.panel12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + resources.ApplyResources(this.panel12, "panel12"); + this.panel12.Name = "panel12"; + // + // panel10 + // + this.panel10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + resources.ApplyResources(this.panel10, "panel10"); + this.panel10.Name = "panel10"; + // + // panel7 + // + this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(242)))), ((int)(((byte)(227))))); + this.panel7.Controls.Add(this.panel9); + this.panel7.Controls.Add(this.button5); + this.panel7.Controls.Add(this.button4); + this.panel7.Controls.Add(this.button3); + resources.ApplyResources(this.panel7, "panel7"); + this.panel7.Name = "panel7"; + // + // panel9 + // + this.panel9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(37)))), ((int)(((byte)(37))))); + this.panel9.Controls.Add(this.button9); + this.panel9.Controls.Add(this.button7); + this.panel9.Controls.Add(this.button6); + this.panel9.Controls.Add(this.button8); + resources.ApplyResources(this.panel9, "panel9"); + this.panel9.Name = "panel9"; + this.panel9.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel9_MouseDown); + // + // button9 + // + resources.ApplyResources(this.button9, "button9"); + this.button9.BackColor = System.Drawing.Color.Transparent; + this.button9.ContextMenuStrip = this.contextMenuStrip1; + this.button9.FlatAppearance.BorderSize = 0; + this.button9.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); + this.button9.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black; + this.button9.ForeColor = System.Drawing.Color.White; + this.button9.Name = "button9"; + this.button9.UseVisualStyleBackColor = false; + this.button9.Click += new System.EventHandler(this.button9_Click); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripMenuItem2, + this.toolStripMenuItem3}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1"); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Image = global::FloatToolGUI.Properties.Resources.github; + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + resources.ApplyResources(this.toolStripMenuItem2, "toolStripMenuItem2"); + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // toolStripMenuItem3 + // + this.toolStripMenuItem3.Name = "toolStripMenuItem3"; + resources.ApplyResources(this.toolStripMenuItem3, "toolStripMenuItem3"); + this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click); + // + // button7 + // + this.button7.BackColor = System.Drawing.Color.Transparent; + this.button7.FlatAppearance.BorderSize = 0; + this.button7.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); + this.button7.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black; + resources.ApplyResources(this.button7, "button7"); + this.button7.ForeColor = System.Drawing.Color.White; + this.button7.Image = global::FloatToolGUI.Properties.Resources.unmuted; + this.button7.Name = "button7"; + this.button7.UseVisualStyleBackColor = false; + this.button7.Click += new System.EventHandler(this.button7_Click); + // + // button6 + // + resources.ApplyResources(this.button6, "button6"); + this.button6.BackColor = System.Drawing.Color.Transparent; + this.button6.FlatAppearance.BorderSize = 0; + this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); + this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black; + this.button6.ForeColor = System.Drawing.Color.White; + this.button6.Name = "button6"; + this.button6.UseVisualStyleBackColor = false; + this.button6.Click += new System.EventHandler(this.button6_Click); + // + // button8 + // + resources.ApplyResources(this.button8, "button8"); + this.button8.BackColor = System.Drawing.Color.Transparent; + this.button8.FlatAppearance.BorderSize = 0; + this.button8.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); + this.button8.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black; + this.button8.ForeColor = System.Drawing.Color.White; + this.button8.Name = "button8"; + this.button8.UseVisualStyleBackColor = false; + this.button8.Click += new System.EventHandler(this.button8_Click); + // + // button5 + // + resources.ApplyResources(this.button5, "button5"); + this.button5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(57)))), ((int)(((byte)(147)))), ((int)(((byte)(221))))); + this.button5.FlatAppearance.BorderSize = 0; + this.button5.ForeColor = System.Drawing.Color.White; + this.button5.Name = "button5"; + this.button5.UseVisualStyleBackColor = false; + // + // button4 + // + resources.ApplyResources(this.button4, "button4"); + this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(126)))), ((int)(((byte)(161)))), ((int)(((byte)(114))))); + this.button4.FlatAppearance.BorderSize = 0; + this.button4.ForeColor = System.Drawing.Color.White; + this.button4.Name = "button4"; + this.button4.UseVisualStyleBackColor = false; + // + // button3 + // + resources.ApplyResources(this.button3, "button3"); + this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(87)))), ((int)(((byte)(87))))); + this.button3.FlatAppearance.BorderSize = 0; + this.button3.ForeColor = System.Drawing.Color.White; + this.button3.Name = "button3"; + this.button3.UseVisualStyleBackColor = false; + // + // panel3 + // + this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(37)))), ((int)(((byte)(37))))); + this.panel3.Controls.Add(this.label9); + this.panel3.Controls.Add(this.label8); + resources.ApplyResources(this.panel3, "panel3"); + this.panel3.Name = "panel3"; + this.panel3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel3_MouseDown); + // + // progressBar1 + // + resources.ApplyResources(this.progressBar1, "progressBar1"); + this.progressBar1.Cursor = System.Windows.Forms.Cursors.Default; + this.progressBar1.ForeColor = System.Drawing.Color.Black; + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Step = 1; + // + // label9 + // + resources.ApplyResources(this.label9, "label9"); + this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); + this.label9.Name = "label9"; + // + // label8 + // + resources.ApplyResources(this.label8, "label8"); + this.label8.BackColor = System.Drawing.Color.Transparent; + this.label8.ForeColor = System.Drawing.Color.White; + this.label8.Name = "label8"; + // + // panel6 + // + this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44))))); + this.panel6.Controls.Add(this.checkBox1); + this.panel6.Controls.Add(this.button1); + this.panel6.Controls.Add(this.label3); + this.panel6.Controls.Add(this.comboBox3); + this.panel6.Controls.Add(this.label1); + this.panel6.Controls.Add(this.label4); + this.panel6.Controls.Add(this.comboBox1); + this.panel6.Controls.Add(this.label2); + this.panel6.Controls.Add(this.textBox1); + this.panel6.Controls.Add(this.comboBox2); + resources.ApplyResources(this.panel6, "panel6"); + this.panel6.Name = "panel6"; // // checkBox1 // resources.ApplyResources(this.checkBox1, "checkBox1"); + this.checkBox1.ForeColor = System.Drawing.Color.White; this.checkBox1.Name = "checkBox1"; this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // + // button1 + // + resources.ApplyResources(this.button1, "button1"); + this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); + this.button1.FlatAppearance.BorderSize = 0; + this.button1.ForeColor = System.Drawing.Color.White; + this.button1.Name = "button1"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // // label3 // resources.ApplyResources(this.label3, "label3"); + this.label3.ForeColor = System.Drawing.Color.White; this.label3.Name = "label3"; // // comboBox3 // + resources.ApplyResources(this.comboBox3, "comboBox3"); + this.comboBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.comboBox3.Cursor = System.Windows.Forms.Cursors.Hand; + this.comboBox3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); this.comboBox3.FormattingEnabled = true; this.comboBox3.Items.AddRange(new object[] { resources.GetString("comboBox3.Items"), @@ -134,31 +364,27 @@ private void InitializeComponent() resources.GetString("comboBox3.Items2"), resources.GetString("comboBox3.Items3"), resources.GetString("comboBox3.Items4")}); - resources.ApplyResources(this.comboBox3, "comboBox3"); this.comboBox3.Name = "comboBox3"; this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged); // - // comboBox2 - // - this.comboBox2.Cursor = System.Windows.Forms.Cursors.Hand; - this.comboBox2.FormattingEnabled = true; - resources.ApplyResources(this.comboBox2, "comboBox2"); - this.comboBox2.Name = "comboBox2"; - this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged); - // - // label2 - // - resources.ApplyResources(this.label2, "label2"); - this.label2.Name = "label2"; - // // label1 // resources.ApplyResources(this.label1, "label1"); + this.label1.ForeColor = System.Drawing.Color.White; this.label1.Name = "label1"; // + // label4 + // + resources.ApplyResources(this.label4, "label4"); + this.label4.ForeColor = System.Drawing.Color.White; + this.label4.Name = "label4"; + // // comboBox1 // + resources.ApplyResources(this.comboBox1, "comboBox1"); + this.comboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.comboBox1.Cursor = System.Windows.Forms.Cursors.Hand; + this.comboBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { resources.GetString("comboBox1.Items"), @@ -195,57 +421,115 @@ private void InitializeComponent() resources.GetString("comboBox1.Items31"), resources.GetString("comboBox1.Items32"), resources.GetString("comboBox1.Items33")}); - resources.ApplyResources(this.comboBox1, "comboBox1"); this.comboBox1.Name = "comboBox1"; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // - // groupBox2 - // - this.groupBox2.Controls.Add(this.checkBox3); - this.groupBox2.Controls.Add(this.checkBox2); - this.groupBox2.Controls.Add(this.label7); - this.groupBox2.Controls.Add(this.label6); - this.groupBox2.Controls.Add(this.label5); - this.groupBox2.Controls.Add(this.numericUpDown2); - this.groupBox2.Controls.Add(this.numericUpDown1); - this.groupBox2.Controls.Add(this.textBox3); - this.groupBox2.Controls.Add(this.progressBar1); - this.groupBox2.Controls.Add(this.button2); - resources.ApplyResources(this.groupBox2, "groupBox2"); - this.groupBox2.ForeColor = System.Drawing.Color.Black; - this.groupBox2.Name = "groupBox2"; - this.groupBox2.TabStop = false; + // label2 + // + resources.ApplyResources(this.label2, "label2"); + this.label2.ForeColor = System.Drawing.Color.White; + this.label2.Name = "label2"; + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + resources.ApplyResources(this.textBox1, "textBox1"); + this.textBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); + this.textBox1.Name = "textBox1"; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // comboBox2 + // + resources.ApplyResources(this.comboBox2, "comboBox2"); + this.comboBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.comboBox2.Cursor = System.Windows.Forms.Cursors.Hand; + this.comboBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Name = "comboBox2"; + this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged); + // + // panel5 + // + this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44))))); + this.panel5.Controls.Add(this.panel14); + this.panel5.Controls.Add(this.checkBox3); + this.panel5.Controls.Add(this.label6); + this.panel5.Controls.Add(this.checkBox2); + this.panel5.Controls.Add(this.button2); + this.panel5.Controls.Add(this.textBox3); + this.panel5.Controls.Add(this.label7); + this.panel5.Controls.Add(this.label5); + this.panel5.Controls.Add(this.numericUpDown2); + this.panel5.Controls.Add(this.numericUpDown1); + resources.ApplyResources(this.panel5, "panel5"); + this.panel5.Name = "panel5"; + // + // panel14 + // + resources.ApplyResources(this.panel14, "panel14"); + this.panel14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.panel14.Controls.Add(this.progressBar1); + this.panel14.Name = "panel14"; + this.panel14.Paint += new System.Windows.Forms.PaintEventHandler(this.panel14_Paint); // // checkBox3 // resources.ApplyResources(this.checkBox3, "checkBox3"); + this.checkBox3.ForeColor = System.Drawing.Color.White; this.checkBox3.Name = "checkBox3"; this.checkBox3.UseVisualStyleBackColor = true; // + // label6 + // + resources.ApplyResources(this.label6, "label6"); + this.label6.ForeColor = System.Drawing.Color.White; + this.label6.Name = "label6"; + // // checkBox2 // resources.ApplyResources(this.checkBox2, "checkBox2"); + this.checkBox2.ForeColor = System.Drawing.Color.White; this.checkBox2.Name = "checkBox2"; this.checkBox2.UseVisualStyleBackColor = true; // + // button2 + // + resources.ApplyResources(this.button2, "button2"); + this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56))))); + this.button2.Cursor = System.Windows.Forms.Cursors.Hand; + this.button2.FlatAppearance.BorderSize = 0; + this.button2.ForeColor = System.Drawing.Color.White; + this.button2.Name = "button2"; + this.button2.UseVisualStyleBackColor = false; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // textBox3 + // + resources.ApplyResources(this.textBox3, "textBox3"); + this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); + this.textBox3.Name = "textBox3"; + // // label7 // resources.ApplyResources(this.label7, "label7"); + this.label7.ForeColor = System.Drawing.Color.White; this.label7.Name = "label7"; // - // label6 - // - resources.ApplyResources(this.label6, "label6"); - this.label6.Name = "label6"; - // // label5 // resources.ApplyResources(this.label5, "label5"); + this.label5.ForeColor = System.Drawing.Color.White; this.label5.Name = "label5"; // // numericUpDown2 // resources.ApplyResources(this.numericUpDown2, "numericUpDown2"); + this.numericUpDown2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.numericUpDown2.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.numericUpDown2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); this.numericUpDown2.Maximum = new decimal(new int[] { 9999999, 0, @@ -261,6 +545,9 @@ private void InitializeComponent() // numericUpDown1 // resources.ApplyResources(this.numericUpDown1, "numericUpDown1"); + this.numericUpDown1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); + this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.numericUpDown1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); this.numericUpDown1.Minimum = new decimal(new int[] { 10, 0, @@ -273,170 +560,103 @@ private void InitializeComponent() 0, 0}); // - // textBox3 + // panel2 // - resources.ApplyResources(this.textBox3, "textBox3"); - this.textBox3.Name = "textBox3"; + this.panel2.Controls.Add(this.panel5); + this.panel2.Controls.Add(this.panel6); + this.panel2.Controls.Add(this.panel3); + resources.ApplyResources(this.panel2, "panel2"); + this.panel2.Name = "panel2"; // - // progressBar1 + // panel4 // - resources.ApplyResources(this.progressBar1, "progressBar1"); - this.progressBar1.Name = "progressBar1"; - this.progressBar1.Step = 1; - // - // button2 - // - this.button2.Cursor = System.Windows.Forms.Cursors.Hand; - resources.ApplyResources(this.button2, "button2"); - this.button2.Name = "button2"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // groupBox3 - // - this.groupBox3.Controls.Add(this.textBox2); - resources.ApplyResources(this.groupBox3, "groupBox3"); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.TabStop = false; - // - // textBox2 - // - this.textBox2.BackColor = System.Drawing.Color.Gray; - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Cursor = System.Windows.Forms.Cursors.Default; - resources.ApplyResources(this.textBox2, "textBox2"); - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); - // - // menuStrip1 - // - this.menuStrip1.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.menuStrip1, "menuStrip1"); - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.настройкиToolStripMenuItem, - this.информацияToolStripMenuItem}); - this.menuStrip1.Name = "menuStrip1"; - // - // настройкиToolStripMenuItem - // - this.настройкиToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem2, - this.toolStripSeparator1}); - this.настройкиToolStripMenuItem.Name = "настройкиToolStripMenuItem"; - resources.ApplyResources(this.настройкиToolStripMenuItem, "настройкиToolStripMenuItem"); - // - // toolStripMenuItem2 - // - this.toolStripMenuItem2.BackColor = System.Drawing.SystemColors.Control; - this.toolStripMenuItem2.Checked = true; - this.toolStripMenuItem2.CheckOnClick = true; - this.toolStripMenuItem2.CheckState = System.Windows.Forms.CheckState.Checked; - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - resources.ApplyResources(this.toolStripMenuItem2, "toolStripMenuItem2"); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1"); - // - // информацияToolStripMenuItem - // - this.информацияToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem1, - this.туториалToolStripMenuItem, - this.оПрограммеToolStripMenuItem}); - this.информацияToolStripMenuItem.Name = "информацияToolStripMenuItem"; - resources.ApplyResources(this.информацияToolStripMenuItem, "информацияToolStripMenuItem"); - // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.Image = global::FloatToolGUI.Properties.Resources.github; - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1"); - this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); - // - // туториалToolStripMenuItem - // - this.туториалToolStripMenuItem.Name = "туториалToolStripMenuItem"; - resources.ApplyResources(this.туториалToolStripMenuItem, "туториалToolStripMenuItem"); - this.туториалToolStripMenuItem.Click += new System.EventHandler(this.туториалToolStripMenuItem_Click); - // - // оПрограммеToolStripMenuItem - // - this.оПрограммеToolStripMenuItem.Name = "оПрограммеToolStripMenuItem"; - resources.ApplyResources(this.оПрограммеToolStripMenuItem, "оПрограммеToolStripMenuItem"); - this.оПрограммеToolStripMenuItem.Click += new System.EventHandler(this.оПрограммеToolStripMenuItem_Click); - // - // timer1 - // - this.timer1.Enabled = true; - this.timer1.Interval = 15000; - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + this.panel4.Controls.Add(this.panel1); + resources.ApplyResources(this.panel4, "panel4"); + this.panel4.Name = "panel4"; // // FloatTool // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Gray; - this.Controls.Add(this.groupBox3); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); - this.Controls.Add(this.menuStrip1); - this.ForeColor = System.Drawing.Color.Navy; - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(242)))), ((int)(((byte)(227))))); + this.ControlBox = false; + this.Controls.Add(this.panel4); + this.Controls.Add(this.panel2); + this.ForeColor = System.Drawing.Color.Black; this.Name = "FloatTool"; this.Load += new System.EventHandler(this.Form1_Load); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel8.ResumeLayout(false); + this.panel13.ResumeLayout(false); + this.panel11.ResumeLayout(false); + this.panel11.PerformLayout(); + this.panel7.ResumeLayout(false); + this.panel9.ResumeLayout(false); + this.contextMenuStrip1.ResumeLayout(false); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + this.panel6.ResumeLayout(false); + this.panel6.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.panel14.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel4.ResumeLayout(false); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.GroupBox groupBox1; - private System.Windows.Forms.ComboBox comboBox1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.ComboBox comboBox2; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Timer timer1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Panel panel8; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel6; private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label3; private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label4; - private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.GroupBox groupBox3; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.Label label7; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.ComboBox comboBox2; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.CheckBox checkBox3; private System.Windows.Forms.Label label6; + private System.Windows.Forms.ProgressBar progressBar1; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label5; private System.Windows.Forms.NumericUpDown numericUpDown2; private System.Windows.Forms.NumericUpDown numericUpDown1; - private System.Windows.Forms.TextBox textBox3; - private System.Windows.Forms.ProgressBar progressBar1; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.CheckBox checkBox3; - private System.Windows.Forms.CheckBox checkBox2; - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStripMenuItem информацияToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem туториалToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem оПрограммеToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem настройкиToolStripMenuItem; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Panel panel9; + private System.Windows.Forms.Button button6; + private System.Windows.Forms.Button button8; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Panel panel13; + private System.Windows.Forms.Panel panel11; + private System.Windows.Forms.Panel panel12; + private System.Windows.Forms.Panel panel10; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.Button button9; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.Timer timer1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Panel panel14; } } diff --git a/FloatToolGUI/Main.cs b/FloatToolGUI/Main.cs index da37bf2..5b1185b 100644 --- a/FloatToolGUI/Main.cs +++ b/FloatToolGUI/Main.cs @@ -11,6 +11,7 @@ using System.Media; using System.Net; using System.Reflection; +using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -22,139 +23,9 @@ namespace FloatToolGUI public partial class FloatTool : Form { Thread thread1; - public static string ToExactString(double d) - { - if (double.IsPositiveInfinity(d)) - return "+Infinity"; - if (double.IsNegativeInfinity(d)) - return "-Infinity"; - if (double.IsNaN(d)) - return "NaN"; - long bits = BitConverter.DoubleToInt64Bits(d); - bool negative = (bits < 0); - int exponent = (int)((bits >> 52) & 0x7ffL); - long mantissa = bits & 0xfffffffffffffL; - if (exponent == 0) - { - exponent++; - } - else - { - mantissa = mantissa | (1L << 52); - } - exponent -= 1075; + public bool muteSound = false; - if (mantissa == 0) - { - return "0"; - } - while ((mantissa & 1) == 0) - { - mantissa >>= 1; - exponent++; - } - ArbitraryDecimal ad = new ArbitraryDecimal(mantissa); - if (exponent < 0) - { - for (int i = 0; i < -exponent; i++) - ad.MultiplyBy(5); - ad.Shift(-exponent); - } - else - { - for (int i = 0; i < exponent; i++) - ad.MultiplyBy(2); - } - if (negative) - return "-" + ad.ToString(); - else - return ad.ToString(); - } - class ArbitraryDecimal - { - byte[] digits; - int decimalPoint = 0; - - internal ArbitraryDecimal(long x) - { - string tmp = x.ToString(CultureInfo.InvariantCulture); - digits = new byte[tmp.Length]; - for (int i = 0; i < tmp.Length; i++) - digits[i] = (byte)(tmp[i] - '0'); - Normalize(); - } - internal void MultiplyBy(int amount) - { - byte[] result = new byte[digits.Length + 1]; - for (int i = digits.Length - 1; i >= 0; i--) - { - int resultDigit = digits[i] * amount + result[i + 1]; - result[i] = (byte)(resultDigit / 10); - result[i + 1] = (byte)(resultDigit % 10); - } - if (result[0] != 0) - { - digits = result; - } - else - { - Array.Copy(result, 1, digits, 0, digits.Length); - } - Normalize(); - } - internal void Shift(int amount) - { - decimalPoint += amount; - } - internal void Normalize() - { - int first; - for (first = 0; first < digits.Length; first++) - if (digits[first] != 0) - break; - int last; - for (last = digits.Length - 1; last >= 0; last--) - if (digits[last] != 0) - break; - - if (first == 0 && last == digits.Length - 1) - return; - - byte[] tmp = new byte[last - first + 1]; - for (int i = 0; i < tmp.Length; i++) - tmp[i] = digits[i + first]; - - decimalPoint -= digits.Length - (last + 1); - digits = tmp; - } - public override String ToString() - { - char[] digitString = new char[digits.Length]; - for (int i = 0; i < digits.Length; i++) - digitString[i] = (char)(digits[i] + '0'); - if (decimalPoint == 0) - { - return new string(digitString); - } - if (decimalPoint < 0) - { - return new string(digitString) + - new string('0', -decimalPoint); - } - if (decimalPoint >= digitString.Length) - { - return "0." + - new string('0', (decimalPoint - digitString.Length)) + - new string(digitString); - } - return new string(digitString, 0, - digitString.Length - decimalPoint) + - "." + - new string(digitString, - digitString.Length - decimalPoint, - decimalPoint); - } - } + static public decimal craft(double[] ingridients, float minFloat, float maxFloat) { decimal avgFloat = 0; @@ -234,12 +105,10 @@ public void parseCraft(double[] inputs, List outputs, string want, bool textBox2.AppendText("Коомбинация найдена!" + Environment.NewLine); textBox2.AppendText("Возможный флоат: " + flotOrigin + Environment.NewLine); textBox2.AppendText("Список флоатов: ["); - if (toolStripMenuItem2.Checked) + if (!muteSound) { //play sound - System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly(); - System.IO.Stream s = a.GetManifestResourceStream("notify.wav"); - SoundPlayer player = new SoundPlayer(s); + SoundPlayer player = new SoundPlayer(); player.Play(); } client.SetPresence(new RichPresence() @@ -261,7 +130,7 @@ public void parseCraft(double[] inputs, List outputs, string want, bool } else { - textBox2.AppendText("]" + Environment.NewLine + "======================================" + Environment.NewLine); + textBox2.AppendText("]" + Environment.NewLine + "=====================================" + Environment.NewLine); } } } @@ -302,6 +171,7 @@ public void updateSearchStr() public FloatTool() { InitializeComponent(); + this.SetStyle(ControlStyles.ResizeRedraw, true); } public DiscordRpcClient client; private void Form1_Load(object sender, EventArgs e) @@ -348,6 +218,10 @@ private void Form1_Load(object sender, EventArgs e) LargeImageText = "FloatTool" } }); + + thread1 = new Thread(runCycle); + this.MaximizedBounds = Screen.FromHandle(this.Handle).WorkingArea; + } private void textBox1_TextChanged(object sender, EventArgs e) @@ -355,6 +229,11 @@ private void textBox1_TextChanged(object sender, EventArgs e) } + private void runCycle() + { + Console.WriteLine("Thread loaded!"); + } + private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { @@ -561,6 +440,10 @@ private void StartCalculation() textBox2.AppendText( "Программа завершила проверку всех комбинаций!" + Environment.NewLine); textBox1.SelectionStart = textBox1.Text.Length; textBox2.ScrollToCaret(); + thread1.Abort(); + button2.Text = "Старт"; + progressBar1.Value = 0; + SwitchEnabled(); } )); @@ -569,6 +452,7 @@ private void StartCalculation() private void button2_Click(object sender, EventArgs e) { if(button2.Text == "Старт") { + thread1.Abort(); thread1 = new Thread(StartCalculation); thread1.Start(); } @@ -677,40 +561,82 @@ private bool floatRangeText(string text, string minVal, string maxVal) return false; } - private void toolStripMenuItem1_Click(object sender, EventArgs e) + private void timer1_Tick(object sender, EventArgs e) { - System.Diagnostics.Process.Start("https://github.com/Nemeshio/FloatTool-GUI"); + client.Invoke(); } - private void туториалToolStripMenuItem_Click(object sender, EventArgs e) + private void button8_Click(object sender, EventArgs e) { - System.Diagnostics.Process.Start("https://github.com/Nemeshio/FloatTool-GUI/wiki/%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F"); + Application.Exit(); } - private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e) + private void button6_Click(object sender, EventArgs e) { - About aboutForm = new About(); - aboutForm.Show(); + this.WindowState = FormWindowState.Minimized; } - private void перезапускToolStripMenuItem_Click(object sender, EventArgs e) + public const int WM_NCLBUTTONDOWN = 0xA1; + public const int HT_CAPTION = 0x2; + + [System.Runtime.InteropServices.DllImport("user32.dll")] + public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); + [System.Runtime.InteropServices.DllImport("user32.dll")] + public static extern bool ReleaseCapture(); + + private void panel3_MouseDown(object sender, MouseEventArgs e) { + if (e.Button == MouseButtons.Left) + { + ReleaseCapture(); + SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); + } + } + private void panel9_MouseDown(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Left) + { + ReleaseCapture(); + SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); + } } - private void toolStripDropDownButton1_Click(object sender, EventArgs e) + private void button7_Click(object sender, EventArgs e) { + if (muteSound) + { + muteSound = false; + button7.Image = FloatToolGUI.Properties.Resources.unmuted; + SoundPlayer player = new SoundPlayer(); + player.Play(); + } + else + { + muteSound = true; + button7.Image = FloatToolGUI.Properties.Resources.muted; + } + } + private void button9_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://github.com/Nemeshio/FloatTool-GUI/wiki/%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F"); } - private void comboBox4_SelectedIndexChanged(object sender, EventArgs e) + private void toolStripMenuItem2_Click(object sender, EventArgs e) { + System.Diagnostics.Process.Start("https://github.com/Nemeshio/FloatTool-GUI/"); + } + private void toolStripMenuItem3_Click(object sender, EventArgs e) + { + About aboutForm = new About(); + aboutForm.Show(); } - private void timer1_Tick(object sender, EventArgs e) + private void panel14_Paint(object sender, PaintEventArgs e) { - client.Invoke(); + } } } diff --git a/FloatToolGUI/Main.resx b/FloatToolGUI/Main.resx index 2e368ea..f3384d0 100644 --- a/FloatToolGUI/Main.resx +++ b/FloatToolGUI/Main.resx @@ -117,60 +117,799 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fill + - - 352, 20 + + Microsoft JhengHei UI Light, 10pt + + + 0, 0 + + + 40, 40, 40, 40 + + + + True + + + 353, 290 + + + 0 + + + Добро пожаловать в FloatTool! +Инструмент для создания флоатов при помощи крафтов CS:GO + + + textBox2 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel11 + + + 0 + + + 132, 17 + + + panel8 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel1 + + + 0 + + + panel7 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel1 + + + 1 + + + Fill + + + 0, 0 + + + 363, 340 + + + 7 + + + panel1 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel4 + + + 0 + + + panel13 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel8 + + + 0 + + + panel10 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel8 + + + 1 + + + Fill + + + 0, 40 + + + 363, 300 + + + 2 + + + panel8 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel1 + + + 0 + + + panel11 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel13 + + + 0 + + + panel12 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel13 + + + 1 + + + Fill + + + 10, 0 + + + 353, 300 + + + 4 + + + panel13 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel8 + + + 0 + + + Fill + + + 0, 10 + + + 353, 290 + + + 2 + + + panel11 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel13 + + + 0 + + + Top + + + 0, 0 + + + 353, 10 + + + 3 + + + panel12 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel13 + + + 1 + + + Left + + + 0, 0 + + + 10, 300 + + + 1 + + + panel10 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel8 + + + 1 + + + panel9 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 0 + + + button5 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 1 + + + button4 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 2 + + + button3 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 3 + + + Top + + + 0, 0 + + + 363, 40 + + + 1 + + + panel7 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel1 + + + 1 + + + button9 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 0 + + + button7 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 1 + + + button6 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 2 + + + button8 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 3 + + + Top + + + 0, 0 + + + 363, 40 + + + 3 + + + panel9 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 0 + + + Top, Right + + + 219, 17 + + + 150, 48 + + + contextMenuStrip1 + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Flat + + + Microsoft JhengHei Light, 16pt + + + NoControl + + + 241, 1 + + + 40, 40 + + + 4 + + + ? + + + button9 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 0 + + + 149, 22 + + + GitHub + + + Ссылка на репозиторий проекта + + + 149, 22 + + + О программе + + + Информация о разработчике + + + Flat + + + Microsoft JhengHei Light, 16pt + + + NoControl + + + 0, 1 + + + 1, 1, 1, 1 + + + 40, 40 + + + 3 + + + button7 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 1 + + + Top, Right + + + Flat + + + Microsoft JhengHei Light, 16pt + + + NoControl + + + 281, 1 + + + 40, 40 + + + 2 + + + _ + + + button6 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 2 + + + Top, Right + + + Flat + + + Microsoft JhengHei Light, 16pt + + + NoControl + + + 323, 1 + + + 40, 40 + + + 0 + + + X + + + button8 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel9 + + + 3 + + + Top, Right + + + Flat + + + Microsoft JhengHei Light, 12pt + + + NoControl + + + 273, 0 + + + 30, 26 + + + 2 + + + - + + + button5 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 1 + + + Top, Right + + + Flat + + + Microsoft JhengHei Light, 12pt + + + NoControl + + + 303, 0 + + + 30, 26 + + + 1 + + + O + + + button4 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 2 + + + Top, Right + + + Flat + + + Microsoft JhengHei Light, 12pt + + + NoControl + + + 333, 0 + + + 30, 26 + + + 0 + + + X + + + button3 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel7 + + + 3 + + + True + + + 137, 20 + + + 36, 15 + + + 1 + + + v.0.3.1 + + + label9 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 258, 21 + + panel3 - - + 0 - - Nova | Predator (Field-Tested) + + True - - - Right + + Microsoft JhengHei Light, 22pt - - textBox1 + + NoControl - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 1, 2 - - groupBox1 + + 140, 38 - - 4 + + 0 - - button1 + + FloatTool - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label8 - - groupBox1 + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + panel3 + + + 1 + + + Top + + + 0, 0 + + + 427, 40 + + 0 - - label4 + + panel3 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - groupBox1 + + panel2 - + + 2 + + + None + + + NoControl + + + -1, 7 + + + 226, 27 + + 1 + + progressBar1 + + + System.Windows.Forms.ProgressBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel14 + + + 0 + checkBox1 @@ -178,10 +917,22 @@ System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 2 + 0 + + + button1 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + + 1 label3 @@ -190,10 +941,10 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 3 + 2 comboBox3 @@ -202,34 +953,10 @@ System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 5 - - - comboBox2 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 6 - - - label2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 7 + 3 label1 @@ -238,10 +965,22 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 8 + 4 + + + label4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + + 5 comboBox1 @@ -250,100 +989,91 @@ System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 9 - - - Georgia, 9pt, style=Italic - - - 12, 27 - - - 617, 83 - - - 3 - - - Поиск Скина - - - groupBox1 + 6 - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label2 - - $this + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 2 + + panel6 - - 508, 50 + + 7 - - 102, 23 + + textBox1 - - 10 + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Проверить + + panel6 - - button1 + + 8 - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + comboBox2 - - groupBox1 + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 0 + + panel6 - - True + + 9 - - 232, 24 + + Top - - 114, 15 + + 0, 40 - - 9 + + 427, 145 - - Полное название: + + 1 - - label4 + + panel6 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - groupBox1 + + panel2 - + 1 + + None + True + + Microsoft JhengHei Light, 10pt + + + NoControl + - 199, 52 + 167, 61 Yes - 84, 19 + 88, 22 8 @@ -361,19 +1091,64 @@ System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 2 + 0 + + + Bottom, Right + + + Flat + + + Microsoft JhengHei Light, 10pt + + + NoControl + + + 156, 90 + + + 265, 24 + + + 10 + + + Проверить + + + button1 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + + 1 + + + None True + + Microsoft JhengHei Light, 10pt + + + NoControl + - 296, 53 + 285, 11 - 70, 15 + 71, 18 7 @@ -388,10 +1163,19 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 3 + 2 + + + None + + + Flat + + + Microsoft JhengHei Light, 9pt Factory New @@ -409,10 +1193,10 @@ Battle-Scarred - 372, 50 + 288, 31 - 130, 23 + 130, 24 6 @@ -427,88 +1211,94 @@ System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 - 5 + 3 - - 61, 50 + + None - - 132, 23 + + True - - 5 + + Microsoft JhengHei Light, 10pt - - Predator + + NoControl - - comboBox2 + + 9, 11 - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 88, 18 - - groupBox1 + + 3 - - 6 + + Тип оружия: - - True + + label1 - - 15, 53 + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 40, 15 + + panel6 - + 4 - - Скин: - - - label2 + + Bottom, Left - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True - - groupBox1 + + Microsoft JhengHei Light, 10pt - - 7 + + NoControl - - True + + 14, 93 - - 6, 24 + + 127, 18 - - 82, 15 + + 9 - - 3 + + Полное название: - - Тип оружия: + + MiddleCenter - - label1 + + label4 - + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - groupBox1 + + panel6 - - 8 + + 5 + + + None + + + Flat + + + Microsoft JhengHei Light, 9pt AK-47 @@ -613,10 +1403,10 @@ XM1014 - 94, 20 + 12, 31 - 132, 23 + 132, 24 2 @@ -631,11 +1421,131 @@ System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox1 + panel6 + 6 + + + None + + + True + + + Microsoft JhengHei Light, 10pt + + + NoControl + + + 147, 11 + + + 43, 18 + + + 4 + + + Скин: + + + label2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + + 7 + + + Bottom + + + Microsoft JhengHei Light, 12pt + + + 0, 120 + + + 10, 12, 10, 12 + + + 2, 25 + + + 427, 25 + + + 0 + + + Nova | Predator (Field-Tested) + + + Right + + + textBox1 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + + 8 + + + None + + + Flat + + + Microsoft JhengHei Light, 9pt + + + 150, 31 + + + 132, 24 + + + 5 + + + Predator + + + comboBox2 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel6 + + 9 + + panel14 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel5 + + + 0 + checkBox3 @@ -643,10 +1553,22 @@ System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 0 + 1 + + + label6 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel5 + + + 2 checkBox2 @@ -655,10 +1577,34 @@ System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 1 + 3 + + + button2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel5 + + + 4 + + + textBox3 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel5 + + + 5 label7 @@ -667,22 +1613,10 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 2 - - - label6 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 3 + 6 label5 @@ -691,10 +1625,10 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 4 + 7 numericUpDown2 @@ -703,10 +1637,10 @@ System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 5 + 8 numericUpDown1 @@ -715,163 +1649,112 @@ System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 6 - - - textBox3 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 + 9 - - 7 + + Fill - - progressBar1 + + Microsoft JhengHei Light, 10pt - - System.Windows.Forms.ProgressBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 0, 185 - - groupBox2 + + 427, 155 - - 8 + + 0 - - button2 + + panel5 - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - groupBox2 + + panel2 - - 9 + + 0 - - Microsoft Tai Le, 8.25pt, style=Italic + + None - - 12, 116 + + 12, 99 - - 218, 226 + + 225, 42 - - 4 + + 10 - - Подбор + + panel14 - - groupBox2 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + panel5 - - $this + + 0 - - 1 + + None True + + NoControl + - 102, 96 + 245, 36 - 110, 18 + 136, 22 9 - По возрастанию - - - checkBox3 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 0 - - - True - - - 7, 96 - - - 91, 18 - - - 8 - - - Сортировать - - - checkBox2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 1 - - - True - - - 3, 73 - - - 53, 14 - - - 7 + По возрастанию - - Пропуск: + + checkBox3 - - label7 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + panel5 - - groupBox2 + + 1 - - 2 + + None True + + Microsoft JhengHei Light, 10pt + + + NoControl + - 3, 47 + 9, 40 - 69, 14 + 89, 18 6 @@ -886,85 +1769,91 @@ System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 3 + 2 - + + None + + True - - 3, 22 + + NoControl - - 85, 14 + + 245, 8 - - 5 + + 111, 22 - - Нужный флоат: + + 8 - - label5 + + Сортировать - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + checkBox2 - - groupBox2 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 4 + + panel5 - - 94, 72 + + 3 - - 116, 21 + + None - - 4 + + Flat - - numericUpDown2 + + Microsoft JhengHei Light, 18pt - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + NoControl - - groupBox2 + + 244, 60 - - 5 + + 177, 82 - - 94, 45 + + 0 - - 116, 21 + + Старт - - 3 + + button2 - - numericUpDown1 + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + panel5 - - groupBox2 + + 4 - - 6 + + None + + + Microsoft JhengHei Light, 10pt - 94, 19 + 122, 12 - 116, 21 + 116, 18 2 @@ -979,221 +1868,199 @@ System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - groupBox2 + panel5 - 7 - - - 6, 120 - - - 203, 29 - - - 1 - - - progressBar1 - - - System.Windows.Forms.ProgressBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 5 - - groupBox2 + + None - - 8 + + True - - 6, 155 + + NoControl - - 204, 63 + + 9, 71 - - 0 + + 67, 18 - - Старт + + 7 - - button2 + + Пропуск: - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label7 - - groupBox2 + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 9 + + panel5 - - textBox2 + + 6 - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + None - - groupBox3 + + True - - 0 + + Microsoft JhengHei Light, 10pt - - Segoe UI, 9.75pt + + NoControl - - 236, 114 + + 9, 12 - - 393, 228 + + 108, 18 - + 5 - - Результат - - - groupBox3 + + Нужный флоат: - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label5 - - $this + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 0 + + panel5 - - 7, 18 + + 7 - - True + + None - - Both + + Microsoft JhengHei Light, 10pt - - 380, 204 + + 122, 72 - - 0 + + 116, 21 - - Добро пожаловать в FloatTool! -Инструмент для создания флоатов при помощи крафтов CS:GO + + 4 - - textBox2 + + numericUpDown2 - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - groupBox3 + + panel5 - - 0 + + 8 - - 17, 17 - - + None - - 180, 22 + + Microsoft JhengHei Light, 10pt - - Включить звук + + 122, 41 - - Производить звук уведомления при нахождении комбинации + + 116, 21 + + + 3 - - 177, 6 + + numericUpDown1 - - 79, 20 + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Настройки + + panel5 - - 93, 20 + + 9 - - Информация + + Left - + 0, 0 - - 634, 24 - - - 6 + + 427, 340 - - menuStrip1 + + 8 - - menuStrip1 + + panel2 - - System.Windows.Forms.MenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + $this - - 3 - - - 149, 22 + + 2 - - GitHub + + Fill - - Ссылка на репозиторий проекта + + 427, 0 - - 149, 22 + + 363, 340 - - Туториал + + 9 - - Ссылка на краткую инструкцию по использованию + + panel4 - - 149, 22 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - О программе + + $this - - Информация о разработчике + + 1 - - 132, 17 - True + + 60 + - 6, 13 + 6, 15 Center - 634, 346 + 790, 340 + + + Microsoft JhengHei Light, 8.25pt @@ -1732,20 +2599,17 @@ WtT/Dwq2uvjgV6RrAAAAAElFTkSuQmCC - - 650, 385 - - 650, 385 + 790, 340 - - FloatTool + + CenterScreen - - настройкиToolStripMenuItem + + timer1 - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Timer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 toolStripMenuItem2 @@ -1753,42 +2617,12 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - toolStripSeparator1 - - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - информацияToolStripMenuItem - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - toolStripMenuItem1 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - туториалToolStripMenuItem - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - оПрограммеToolStripMenuItem + + toolStripMenuItem3 - + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - timer1 - - - System.Windows.Forms.Timer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - FloatTool diff --git a/FloatToolGUI/Properties/Resources.Designer.cs b/FloatToolGUI/Properties/Resources.Designer.cs index 856b884..4592c86 100644 --- a/FloatToolGUI/Properties/Resources.Designer.cs +++ b/FloatToolGUI/Properties/Resources.Designer.cs @@ -69,5 +69,25 @@ internal static System.Drawing.Bitmap github { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap muted { + get { + object obj = ResourceManager.GetObject("muted", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap unmuted { + get { + object obj = ResourceManager.GetObject("unmuted", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/FloatToolGUI/Properties/Resources.resx b/FloatToolGUI/Properties/Resources.resx index 234c039..83b16b4 100644 --- a/FloatToolGUI/Properties/Resources.resx +++ b/FloatToolGUI/Properties/Resources.resx @@ -121,4 +121,10 @@ ..\github.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\muted.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\unmuted.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/FloatToolGUI/muted.png b/FloatToolGUI/muted.png new file mode 100644 index 0000000..69966e0 Binary files /dev/null and b/FloatToolGUI/muted.png differ diff --git a/FloatToolGUI/unmuted.png b/FloatToolGUI/unmuted.png new file mode 100644 index 0000000..4144265 Binary files /dev/null and b/FloatToolGUI/unmuted.png differ