v1.0 includes primitive syntax highlighting, auto tab, and a few other controls.
v2.0 adds a bunch of buttons, adds //commenting, smoother autotab
Code:
- Code: Select all
using System.Linq;
using System.Windows.Forms;
using System;
using System.Text.RegularExpressions;
using System.IO;
using System.Drawing;
namespace MCDzienny.Plugins
{
public class CodeR : Plugin
{
// The name of the plugin.
string name = "CodeR";
// A relatively short description of the plugin.
string description = "An alternative to textbox.";
// A name or names of the authors of the plugin.
string author = "ismellike";
// A version number that is displayed to the end users.
string version = "2.0";
// A version number that is used for update checking. It's an absolute number that
// represents a release number. It should be incremented by 1 each time the new version
// is released.
int versionNumber = 2;
// A user control that contains graphical user interface of the plugin.
UserControl gui = new CodeR_GUI();
public override string Description
{
get { return description; }
}
public override string Author
{
get { return author; }
}
public override string Name
{
get { return name; }
}
public override UserControl MainInterface
{
get { return gui; }
}
public override string Version
{
get { return version; }
}
public override int VersionNumber
{
get { return versionNumber; }
}
public override void Initialize()
{
if (!Directory.Exists("extra/plugins"))
Directory.CreateDirectory("extra/plugins");
}
public override void Terminate()
{
}
}
}
namespace MCDzienny.Plugins
{
public partial class CodeR_GUI : UserControl
{
public CodeR_GUI()
{
InitializeComponent();
}
}
}
namespace MCDzienny.Plugins
{
partial class CodeR_GUI
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Internals
string GetDefinition(Button b)
{
if (b.Text == "Create Class")
return "Erases everything and shows a new class";
if (b.Text == "Compile")
return "Saves your command in a .cs file and compiles it";
if (b.Text == "Compare Players")
return "Creates a bool for comparing players";
if (b.Text == "Highlight")
return "Highlights key terms";
if (b.Text == "Command")
return "Finds a command";
if (b.Text == "Who")
return "Finds player who";
if (b.Text == "Blockchange")
return "Makes a blockchange at x,y,z";
if (b.Text == "SendMessage")
return "Sends a message to a player";
if (b.Text == "GlobalMessage")
return "Sends a global message";
if (b.Text == "Split Msg")
return "Creates a switch for message";
if (b.Text == "Join")
return "Makes a player join event (not implemented)";
if (b.Text == "Disconnect")
return "Makes a player disconnect event (not implemented)";
if (b.Text == "p.Blockchange")
return "Makes a player blockchange event (not implemented)";
if (b.Text == "Timer")
return "Makes a timer event (not implemented)";
if (b.Text == "Create File")
return "Creates a file";
if (b.Text == "Edit File")
return "Creates a method for editing a file";
return "lolwut?";
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
label5.Text = (richTextBox1.GetLineFromCharIndex(richTextBox1.SelectionStart) + 1).ToString();
}
void Highlight(object sender, EventArgs e)
{
string tokens = "(string|int|else|object|return|new|for|try|void|class|if|static|while|ushort|byte|catch|namespace|bool|{|})";
Regex rex = new Regex(tokens);
MatchCollection mc = rex.Matches(richTextBox1.Text);
int StartCursorPosition = richTextBox1.SelectionStart;
foreach (Match m in mc)
{
int startIndex = m.Index;
int StopIndex = m.Length;
richTextBox1.Select(startIndex, StopIndex);
if (m.Value == "{" || m.Value == "}")
richTextBox1.SelectionColor = Color.Purple;
else
richTextBox1.SelectionColor = Color.Blue;
richTextBox1.SelectionStart = StartCursorPosition;
richTextBox1.SelectionColor = Color.Black;
}
}
private void hover(object sender, EventArgs e)
{
Button b = sender as Button;
toolTip1.Show(GetDefinition(b), b);
}
private void button1_Click(object sender, EventArgs e)
{
try
{
if (richTextBox1.Text == "")
{
MessageBox.Show("Code cannot be left blank"); return;
}
if (textBox1.Text == "")
{
MessageBox.Show("Name cannot be left blank");
return;
}
DialogResult dr = DialogResult.Yes;
if (File.Exists("extra/commands/source/Cmd" + textBox1.Text + ".cs"))
dr = MessageBox.Show("Command already exists", "Override?", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
File.WriteAllText("extra/commands/source/Cmd" + textBox1.Text + ".cs", richTextBox1.Text);
Command.all.Find("compile").Use(null, textBox1.Text);
MessageBox.Show("Compiled as " + textBox1.Text + "!");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
void Click(object sender, EventArgs e)
{
Button b = sender as Button;
InsertAsSelected(GetString(b.Text));
}
string GetString(string text)
{
if (text == "Compare Players")
return "public bool ComparePlayer(Player who, Player p)\n\t\t{\n\t\tif(who==null||who.hidden)\n" + "\t\t\t{\n" + "\t\t\treturn false;\n" + "\t\t\t}\n" + "\t\tif(who.group.Permission>p.group.Permission)\n\t\t\t{\n\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t\t}";
if (text == "Split Msg")
return "string[] split = message.Trim().Split(' ');\r\n\t\tswitch(split[0])\r\n\t\t\t{\r\n\t\t\tdefault:\r\n\t\t\t\tHelp(p);\r\n\t\tbreak;\r\n\t\t\t}";
if (text == "Command")
return "Command.all.Find(\"cmd\").Use(p,\"\");";
if (text == "SendMessage")
return "Player.SendMessage(p,\"msg\");";
if (text == "GlobalMessage")
return "Player.GlobalMessage(\"msg\");";
if (text == "Blockchange")
return "p.level.Blockchange(x,y,z,Block.Zero);";
if (text == "Who")
return "Player who = Player.Find(message);";
if (text == "Edit File")
return "string path = \"change path\";\r\n\t\tusing(var sr = new StreamReader(path))\r\n\t\tusing(var sw = new StreamWriter(path+\".tmp\"))\r\n\t\t\t{\r\n\t\t\t\tstring line;\r\n\t\t\t\twhile((string line=sr.ReadLine())!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsw.WriteLine(line);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\tFile.Delete(path);\r\n\t\tFile.Move(path+\".tmp\",path);";
if (text == "Create File")
return "string path = \"change path\";\r\n\t\tFile.Create(path);";
if (text == "Create Class")
{
richTextBox1.Text = "";
return "using System;\n" +
"namespace MCDzienny\n" +
"{\n" +
"\tpublic class Cmd____ : Command\n" +
"\t{\n" +
"\t\tpublic override string name { get { return \"___\"; } }\r\n" +
"\t\tpublic override string shortcut { get { return \"\"; } }\r\n" +
"\t\tpublic override string type { get { return \"other\"; } }\r\n" +
"\t\tpublic override bool museumUsable { get { return false; } }\r\n" +
"\t\tpublic override LevelPermission defaultRank { get { return LevelPermission.Banned; } }" +
Environment.NewLine +
"\t\tpublic override void Init()\r\n" +
"\t\t{\r\n\t\t\r\n" +
"\t\t}" +
Environment.NewLine +
"\t\tpublic override void Use(Player p, string message)\r\n" +
"\t\t{\r\n" + "\t\t\r\n" +
"\t\t}" +
Environment.NewLine +
"\t\tpublic override void Help(Player p)\n" +
"\t\t{\n" +
"\t\t\tPlayer.SendMessage(p, \"\t\");\n" +
"\t\t}\n" +
"\t}\n" +
"}";
}
return "";
}
void InsertAsSelected(string stuff)
{
try
{
richTextBox1.Text = richTextBox1.Text.Insert(richTextBox1.SelectionStart, stuff);
button4.PerformClick();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
string ReadTabBefore(string line)
{
string tabs = "";
for (int x = 0; x <= line.Length - 1; x++)
{
if (line[x] == '\t' || line[x] == '{')
{
tabs += "\t";
}
else
{
break;
}
}
more = tabs.Length;
return tabs;
}
int more;
void Format(object sender, KeyEventArgs e)
{
try
{
if (e.KeyCode == Keys.Enter)
{
int Start = richTextBox1.SelectionStart;
string which;
if (ReadTabBefore(richTextBox1.Lines.ElementAt(richTextBox1.GetLineFromCharIndex(Start) - 1)).Length > ReadTabBefore(richTextBox1.Lines.ElementAt(richTextBox1.GetLineFromCharIndex(Start))).Length)
{
which = ReadTabBefore(richTextBox1.Lines.ElementAt(richTextBox1.GetLineFromCharIndex(Start) - 1));
}
else
{
which = ReadTabBefore(richTextBox1.Lines.ElementAt(richTextBox1.GetLineFromCharIndex(Start)));
}
richTextBox1.Text = richTextBox1.Text.Insert(Start, "\r\n" + which);
richTextBox1.SelectionStart = Start + more + 1;
button4.PerformClick();
e.Handled = true;
}
if (e.KeyCode == Keys.OemQuestion && !e.Shift)
{
if (richTextBox1.Text[richTextBox1.SelectionStart - 1] == '/')
{
richTextBox1.SelectionColor = Color.Green;
}
e.Handled=true;
}
if (e.KeyCode == Keys.OemQuotes && e.Shift)
{
int check = 0;
foreach (Char c in richTextBox1.Text)
if (c == '"')
check += 1;
if (check % 2 != 0)
{
HighlightWhere(richTextBox1.Text, GetOther(richTextBox1.SelectionStart, '"'), Color.Red);
}
e.Handled = true;
}
}
catch
{
}
}
string GetOther(int index, char c)
{
bool retrieve = false;
string builder = "";
for (int x = index; x >= 0; x--)
{
Char ch = richTextBox1.Text[x];
if (retrieve)
builder += ch;
if (ch == c)
{
builder += ch;
if (retrieve)
break;
retrieve = !retrieve;
}
}
return builder;
}
void HighlightWhere(string line, string what, Color color)
{
string tokens = "(" + what + ")";
Regex rex = new Regex(tokens);
MatchCollection mc = rex.Matches(line);
int StartCursorPosition = richTextBox1.SelectionStart;
foreach (Match m in mc)
{
int startIndex = m.Index;
int StopIndex = m.Length;
richTextBox1.Select(startIndex, StopIndex);
richTextBox1.SelectionColor = color;
richTextBox1.SelectionStart = StartCursorPosition;
richTextBox1.SelectionColor = Color.Black;
}
richTextBox1.SelectionStart = StartCursorPosition;
}
#endregion
#region Windows Form Designer generated code
private void InitializeComponent()
{
try
{
this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
label4 = new Label();
label5 = new Label();
button4 = new Button();
button3 = new Button();
button2 = new Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 611);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(480, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Compile";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 14);
this.label1.TabIndex = 3;
this.label1.Text = "Code:";
//
// richTextBox1
//
this.richTextBox1.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.richTextBox1.Location = new System.Drawing.Point(12, 26);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(480, 491);
this.richTextBox1.TabIndex = 4;
this.richTextBox1.Text = "";
richTextBox1.AcceptsTab = true;
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
richTextBox1.Click += new EventHandler(richTextBox1_TextChanged);
richTextBox1.SelectionTabs = new int[] { 10, 20, 30, 40, 50, 60, 70, 80 };
richTextBox1.KeyDown += new KeyEventHandler(Format);
//
// textBox1
//
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Location = new System.Drawing.Point(35, 523);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(42, 21);
this.textBox1.TabIndex = 5;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 526);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 14);
this.label2.TabIndex = 6;
this.label2.Text = "Cmd";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(74, 526);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(20, 14);
this.label3.TabIndex = 7;
this.label3.Text = ".cs";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(366, 527);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(73, 14);
this.label4.TabIndex = 8;
this.label4.Text = "Line Number:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(436, 527);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(14, 14);
this.label5.TabIndex = 9;
this.label5.Text = "1";
//
// button2
//
this.button2.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(100, 523);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(76, 23);
this.button2.TabIndex = 10;
this.button2.Text = "Create Class";
this.button2.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(182, 523);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(96, 23);
this.button3.TabIndex = 11;
this.button3.Text = "Compare Players";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button4.Location = new System.Drawing.Point(284, 523);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(76, 23);
this.button4.TabIndex = 12;
this.button4.Text = "Highlight";
this.button4.UseVisualStyleBackColor = true;
button4.Click += new EventHandler(Highlight);
//
// button5
//
this.button5.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button5.Location = new System.Drawing.Point(15, 552);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(76, 23);
this.button5.TabIndex = 13;
this.button5.Text = "Command";
this.button5.UseVisualStyleBackColor = true;
//
// button6
//
this.button6.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button6.Location = new System.Drawing.Point(97, 552);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(45, 23);
this.button6.TabIndex = 14;
this.button6.Text = "Who";
this.button6.UseVisualStyleBackColor = true;
//
// button7
//
this.button7.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button7.Location = new System.Drawing.Point(161, 581);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(91, 23);
this.button7.TabIndex = 15;
this.button7.Text = "p.Blockchange";
this.button7.UseVisualStyleBackColor = true;
//
// button8
//
this.button8.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button8.Location = new System.Drawing.Point(232, 552);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(83, 23);
this.button8.TabIndex = 16;
this.button8.Text = "SendMessage";
this.button8.UseVisualStyleBackColor = true;
//
// button9
//
this.button9.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button9.Location = new System.Drawing.Point(321, 552);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(90, 23);
this.button9.TabIndex = 17;
this.button9.Text = "GlobalMessage";
this.button9.UseVisualStyleBackColor = true;
//
// button10
//
this.button10.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button10.Location = new System.Drawing.Point(417, 552);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(75, 23);
this.button10.TabIndex = 18;
this.button10.Text = "Split Msg";
this.button10.UseVisualStyleBackColor = true;
//
// button11
//
this.button11.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button11.Location = new System.Drawing.Point(15, 582);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(62, 23);
this.button11.TabIndex = 19;
this.button11.Text = "Join";
this.button11.UseVisualStyleBackColor = true;
//
// button12
//
this.button12.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button12.Location = new System.Drawing.Point(83, 581);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(72, 23);
this.button12.TabIndex = 20;
this.button12.Text = "Disconnect";
this.button12.UseVisualStyleBackColor = true;
//
// button13
//
this.button13.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button13.Location = new System.Drawing.Point(148, 552);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(78, 23);
this.button13.TabIndex = 21;
this.button13.Text = "Blockchange";
this.button13.UseVisualStyleBackColor = true;
//
// button14
//
this.button14.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button14.Location = new System.Drawing.Point(258, 581);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(57, 23);
this.button14.TabIndex = 22;
this.button14.Text = "Timer";
this.button14.UseVisualStyleBackColor = true;
//
// button15
//
this.button15.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button15.Location = new System.Drawing.Point(321, 581);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(90, 23);
this.button15.TabIndex = 23;
this.button15.Text = "Create File";
this.button15.UseVisualStyleBackColor = true;
//
// button16
//
this.button16.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button16.Location = new System.Drawing.Point(417, 582);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(75, 23);
this.button16.TabIndex = 24;
this.button16.Text = "Edit File";
this.button16.UseVisualStyleBackColor = true;
//
// GUI
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Snow;
this.ClientSize = new System.Drawing.Size(504, 646);
this.Controls.Add(this.button16);
this.Controls.Add(this.button15);
this.Controls.Add(this.button14);
this.Controls.Add(this.button13);
this.Controls.Add(this.button12);
this.Controls.Add(this.button11);
this.Controls.Add(this.button10);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
this.Controls.Add(this.button6);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Font = new System.Drawing.Font("Miramonte", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ForeColor = System.Drawing.Color.Black;
this.Name = "GUI";
this.Text = "GUI";
this.ResumeLayout(false);
this.PerformLayout();
foreach (Control c in Controls)
{
if (c is Button)
{
string text = ((Button)c).Text;
((Button)c).MouseHover += new EventHandler(hover);
if (text != "Compile" && text != "Highlight")
{
((Button)c).Click += new EventHandler(Click);
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
#endregion
private Button button1;
private Label label1;
private ToolTip toolTip1 = new ToolTip();
private RichTextBox richTextBox1;
private TextBox textBox1;
private Label label2;
private Label label3;
private Label label4;
private Label label5;
private Button button2;
private Button button3;
private Button button4;
private Button button5;
private Button button6;
private Button button7;
private Button button8;
private Button button9;
private Button button10;
private Button button11;
private Button button12;
private Button button13;
private Button button14;
private Button button15;
private Button button16;
}
}