mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-30 00:10:36 +00:00
Add menu for copying text of byaml entries
This commit is contained in:
parent
a5cfcfa035
commit
8cc333624a
2 changed files with 72 additions and 54 deletions
118
File_Format_Library/GUI/Byaml/ByamlEditor.Designer.cs
generated
118
File_Format_Library/GUI/Byaml/ByamlEditor.Designer.cs
generated
|
@ -50,14 +50,15 @@
|
||||||
this.stTabControl1 = new Toolbox.Library.Forms.STTabControl();
|
this.stTabControl1 = new Toolbox.Library.Forms.STTabControl();
|
||||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||||
|
this.btnToXml = new Toolbox.Library.Forms.STButton();
|
||||||
|
this.stPanel2 = new Toolbox.Library.Forms.STPanel();
|
||||||
|
this.btnXmlToByaml = new Toolbox.Library.Forms.STButton();
|
||||||
this.stContextMenuStrip1 = new Toolbox.Library.Forms.STContextMenuStrip(this.components);
|
this.stContextMenuStrip1 = new Toolbox.Library.Forms.STContextMenuStrip(this.components);
|
||||||
this.addItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.addItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.btnXmlToByaml = new Toolbox.Library.Forms.STButton();
|
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.stPanel2 = new Toolbox.Library.Forms.STPanel();
|
|
||||||
this.btnToXml = new Toolbox.Library.Forms.STButton();
|
|
||||||
this.contextMenuStrip1.SuspendLayout();
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
|
@ -261,43 +262,26 @@
|
||||||
this.tabPage2.Text = "XML Editor";
|
this.tabPage2.Text = "XML Editor";
|
||||||
this.tabPage2.UseVisualStyleBackColor = true;
|
this.tabPage2.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// stContextMenuStrip1
|
// btnToXml
|
||||||
//
|
//
|
||||||
this.stContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.btnToXml.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.addItemToolStripMenuItem,
|
this.btnToXml.Location = new System.Drawing.Point(15, 6);
|
||||||
this.editToolStripMenuItem,
|
this.btnToXml.Name = "btnToXml";
|
||||||
this.renameToolStripMenuItem,
|
this.btnToXml.Size = new System.Drawing.Size(107, 23);
|
||||||
this.deleteToolStripMenuItem});
|
this.btnToXml.TabIndex = 2;
|
||||||
this.stContextMenuStrip1.Name = "stContextMenuStrip1";
|
this.btnToXml.Text = "Generate";
|
||||||
this.stContextMenuStrip1.Size = new System.Drawing.Size(124, 92);
|
this.btnToXml.UseVisualStyleBackColor = false;
|
||||||
|
this.btnToXml.Click += new System.EventHandler(this.btnToXml_Click);
|
||||||
//
|
//
|
||||||
// addItemToolStripMenuItem
|
// stPanel2
|
||||||
//
|
//
|
||||||
this.addItemToolStripMenuItem.Name = "addItemToolStripMenuItem";
|
this.stPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
this.addItemToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
this.addItemToolStripMenuItem.Text = "Add Item";
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.addItemToolStripMenuItem.Click += new System.EventHandler(this.addNodeToolStripMenuItem_Click);
|
this.stPanel2.Location = new System.Drawing.Point(6, 35);
|
||||||
//
|
this.stPanel2.Name = "stPanel2";
|
||||||
// editToolStripMenuItem
|
this.stPanel2.Size = new System.Drawing.Size(183, 30);
|
||||||
//
|
this.stPanel2.TabIndex = 1;
|
||||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
|
||||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
|
|
||||||
this.editToolStripMenuItem.Text = "Edit";
|
|
||||||
this.editToolStripMenuItem.Click += new System.EventHandler(this.editValueNodeMenuItem_Click);
|
|
||||||
//
|
|
||||||
// renameToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
|
|
||||||
this.renameToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
|
|
||||||
this.renameToolStripMenuItem.Text = "Rename";
|
|
||||||
this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// deleteToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
|
|
||||||
this.deleteToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
|
|
||||||
this.deleteToolStripMenuItem.Text = "Delete";
|
|
||||||
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
|
|
||||||
//
|
//
|
||||||
// btnXmlToByaml
|
// btnXmlToByaml
|
||||||
//
|
//
|
||||||
|
@ -310,26 +294,51 @@
|
||||||
this.btnXmlToByaml.UseVisualStyleBackColor = false;
|
this.btnXmlToByaml.UseVisualStyleBackColor = false;
|
||||||
this.btnXmlToByaml.Click += new System.EventHandler(this.btnXmlToByaml_Click);
|
this.btnXmlToByaml.Click += new System.EventHandler(this.btnXmlToByaml_Click);
|
||||||
//
|
//
|
||||||
// stPanel2
|
// stContextMenuStrip1
|
||||||
//
|
//
|
||||||
this.stPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.stContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
this.addItemToolStripMenuItem,
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.editToolStripMenuItem,
|
||||||
this.stPanel2.Location = new System.Drawing.Point(6, 35);
|
this.renameToolStripMenuItem,
|
||||||
this.stPanel2.Name = "stPanel2";
|
this.deleteToolStripMenuItem,
|
||||||
this.stPanel2.Size = new System.Drawing.Size(532, 328);
|
this.copyToolStripMenuItem});
|
||||||
this.stPanel2.TabIndex = 1;
|
this.stContextMenuStrip1.Name = "stContextMenuStrip1";
|
||||||
|
this.stContextMenuStrip1.Size = new System.Drawing.Size(181, 136);
|
||||||
//
|
//
|
||||||
// btnToXml
|
// addItemToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.btnToXml.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.addItemToolStripMenuItem.Name = "addItemToolStripMenuItem";
|
||||||
this.btnToXml.Location = new System.Drawing.Point(15, 6);
|
this.addItemToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.btnToXml.Name = "btnToXml";
|
this.addItemToolStripMenuItem.Text = "Add Item";
|
||||||
this.btnToXml.Size = new System.Drawing.Size(107, 23);
|
this.addItemToolStripMenuItem.Click += new System.EventHandler(this.addNodeToolStripMenuItem_Click);
|
||||||
this.btnToXml.TabIndex = 2;
|
//
|
||||||
this.btnToXml.Text = "Generate";
|
// editToolStripMenuItem
|
||||||
this.btnToXml.UseVisualStyleBackColor = false;
|
//
|
||||||
this.btnToXml.Click += new System.EventHandler(this.btnToXml_Click);
|
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||||
|
this.editToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
|
this.editToolStripMenuItem.Text = "Edit";
|
||||||
|
this.editToolStripMenuItem.Click += new System.EventHandler(this.editValueNodeMenuItem_Click);
|
||||||
|
//
|
||||||
|
// renameToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
|
||||||
|
this.renameToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
|
this.renameToolStripMenuItem.Text = "Rename";
|
||||||
|
this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// deleteToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
|
||||||
|
this.deleteToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
|
this.deleteToolStripMenuItem.Text = "Delete";
|
||||||
|
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// copyToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
||||||
|
this.copyToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
|
this.copyToolStripMenuItem.Text = "Copy as text";
|
||||||
|
this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// ByamlEditor
|
// ByamlEditor
|
||||||
//
|
//
|
||||||
|
@ -384,5 +393,6 @@
|
||||||
private Toolbox.Library.Forms.STButton btnXmlToByaml;
|
private Toolbox.Library.Forms.STButton btnXmlToByaml;
|
||||||
private Toolbox.Library.Forms.STPanel stPanel2;
|
private Toolbox.Library.Forms.STPanel stPanel2;
|
||||||
private Toolbox.Library.Forms.STButton btnToXml;
|
private Toolbox.Library.Forms.STButton btnToXml;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -583,6 +583,14 @@ namespace FirstPlugin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (listViewCustom1.SelectedItems.Count <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Clipboard.SetText(listViewCustom1.SelectedItems[0].Text);
|
||||||
|
}
|
||||||
|
|
||||||
private void deleteNodeToolStripMenuItem_Click(object sender, EventArgs e)
|
private void deleteNodeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (treeView1.SelectedNode == null)
|
if (treeView1.SelectedNode == null)
|
||||||
|
|
Loading…
Reference in a new issue