#pragma once
#include "Splash.h"
#include "HighlightWordNode.h"

namespace FancyScript {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Form1 摘要
	///
	/// 警告: 如果更改此类的名称，则需要更改
	///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
	///          “资源文件名”属性。否则，
	///          设计器将不能与此窗体的关联
	///          本地化资源正确交互。
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(array<System::String ^> ^args)
		{
			InitializeComponent();

			splash = gcnew Splash();
			splash->Show();
			//显示splash

			oldline = 0;
			highlight = gcnew HighlightWord();
			highlight->setColor("and",System::Drawing::Color::Blue);
			highlight->setColor("break",System::Drawing::Color::Blue);
			highlight->setColor("do",System::Drawing::Color::Blue);
			highlight->setColor("else",System::Drawing::Color::Blue);
			highlight->setColor("elseif",System::Drawing::Color::Blue);
			highlight->setColor("end",System::Drawing::Color::Blue);
			highlight->setColor("false",System::Drawing::Color::Blue);
			highlight->setColor("for",System::Drawing::Color::Blue);
			highlight->setColor("function",System::Drawing::Color::Blue);
			highlight->setColor("if",System::Drawing::Color::Blue);
			highlight->setColor("in",System::Drawing::Color::Blue);
			highlight->setColor("local",System::Drawing::Color::Blue);
			highlight->setColor("nil",System::Drawing::Color::Blue);
			highlight->setColor("not",System::Drawing::Color::Blue);
			highlight->setColor("or",System::Drawing::Color::Blue);
			highlight->setColor("repeat",System::Drawing::Color::Blue);
			highlight->setColor("return",System::Drawing::Color::Blue);
			highlight->setColor("then",System::Drawing::Color::Blue);
			highlight->setColor("true",System::Drawing::Color::Blue);
			highlight->setColor("until",System::Drawing::Color::Blue);
			highlight->setColor("while",System::Drawing::Color::Blue);
			//以上是lua保留字
			highlight->setColor("outbuffer",System::Drawing::Color::OliveDrab);
			highlight->setColor("runtime",System::Drawing::Color::OliveDrab);
			highlight->setColor("oldruntime",System::Drawing::Color::OliveDrab);
			highlight->setColor("pi",System::Drawing::Color::OliveDrab);
			highlight->setColor("OPTYPE",System::Drawing::Color::MediumPurple);
			highlight->setColor("NEWUNIT",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATEUNIT",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATEGROUP",System::Drawing::Color::MediumPurple);
			highlight->setColor("NEWGEFFECT",System::Drawing::Color::MediumPurple);
			highlight->setColor("USEPANEL",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATEPANEL",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATEWIDGET",System::Drawing::Color::MediumPurple);
			highlight->setColor("CREATEPANEL",System::Drawing::Color::MediumPurple);
			highlight->setColor("CREATEWIDGET",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATECAMERA",System::Drawing::Color::MediumPurple);
			highlight->setColor("UPDATEMAPMODEL",System::Drawing::Color::MediumPurple);
			highlight->setColor("DEBUG",System::Drawing::Color::MediumPurple);
			highlight->setColor("AIGOTO",System::Drawing::Color::MediumPurple);
			highlight->setColor("AIGOBYWAYPOINT",System::Drawing::Color::MediumPurple);
			highlight->setColor("GAMECONTROL",System::Drawing::Color::MediumPurple);
			highlight->setColor("LOADTEXTURE",System::Drawing::Color::MediumPurple);
			highlight->setColor("NEWBULLET",System::Drawing::Color::MediumPurple);
			highlight->setColor("WIDGETTYPE",System::Drawing::Color::MediumPurple);
			highlight->setColor("BUTTON",System::Drawing::Color::MediumPurple);
			highlight->setColor("CHECKBOX",System::Drawing::Color::MediumPurple);
			highlight->setColor("RADIOBOX",System::Drawing::Color::MediumPurple);
			highlight->setColor("SCROLLBAR",System::Drawing::Color::MediumPurple);
			highlight->setColor("STATIC",System::Drawing::Color::MediumPurple);
			highlight->setColor("POPLIST",System::Drawing::Color::MediumPurple);
			highlight->setColor("PROGRESSBAR",System::Drawing::Color::MediumPurple);
			highlight->setColor("LIST",System::Drawing::Color::MediumPurple);
			highlight->setColor("COLORTHEME",System::Drawing::Color::MediumPurple);
			highlight->setColor("GREY",System::Drawing::Color::MediumPurple);
			highlight->setColor("BLUE",System::Drawing::Color::MediumPurple);
			highlight->setColor("FLATBLUE",System::Drawing::Color::MediumPurple);
			highlight->setColor("ORANGE",System::Drawing::Color::MediumPurple);
			highlight->setColor("FLATORANGE",System::Drawing::Color::MediumPurple);
			highlight->setColor("TRANSPARENT",System::Drawing::Color::MediumPurple);
			highlight->setColor("GAMECONTROL",System::Drawing::Color::MediumPurple);
			highlight->setColor("PAUSE",System::Drawing::Color::MediumPurple);
			highlight->setColor("BLOCKINPUT",System::Drawing::Color::MediumPurple);
			highlight->setColor("ALLOWINPUT",System::Drawing::Color::MediumPurple);
			highlight->setColor("WIN",System::Drawing::Color::MediumPurple);
			highlight->setColor("LOSE",System::Drawing::Color::MediumPurple);
			highlight->setColor("RESUME",System::Drawing::Color::MediumPurple);
			highlight->setColor("CAMERATYPE",System::Drawing::Color::MediumPurple);
			highlight->setColor("FOLLOWPLAYER",System::Drawing::Color::MediumPurple);
			highlight->setColor("SIDEPLAYER",System::Drawing::Color::MediumPurple);
			highlight->setColor("FOLLOWTARGET",System::Drawing::Color::MediumPurple);
			highlight->setColor("FREECAMERA",System::Drawing::Color::MediumPurple);

			highlight->setColor("newUnit",System::Drawing::Color::Orange);
			highlight->setColor("updateUnit",System::Drawing::Color::Orange);
			highlight->setColor("updateGroup",System::Drawing::Color::Orange);
			highlight->setColor("newGEffect",System::Drawing::Color::Orange);
			highlight->setColor("usePanel",System::Drawing::Color::Orange);
			highlight->setColor("createPanel",System::Drawing::Color::Orange);
			highlight->setColor("createWidget",System::Drawing::Color::Orange);
			highlight->setColor("updateCamera",System::Drawing::Color::Orange);
			highlight->setColor("updateMapModel",System::Drawing::Color::Orange);
			highlight->setColor("debug",System::Drawing::Color::Orange);
			highlight->setColor("aiGoto",System::Drawing::Color::Orange);
			highlight->setColor("aiGoByWaypoint",System::Drawing::Color::Orange);
			highlight->setColor("gameControl",System::Drawing::Color::Orange);
			highlight->setColor("loadTexture",System::Drawing::Color::Orange);
			highlight->setColor("newBullet",System::Drawing::Color::Orange);
			highlight->setColor("pushBuffer",System::Drawing::Color::Orange);
			highlight->setColor("emptyBuffer",System::Drawing::Color::Orange);
			highlight->setColor("main",System::Drawing::Color::Orange);

			undobuffer =  gcnew cli::array<String^>(64);
			undoposbuffer =  gcnew cli::array<int>(64);
			for (int i=0;i<32;i++)
			{
				undobuffer[i] = "";
				undoposbuffer[i] = 0;
			}

			undocount = 1;
			curundocount = 1;
			maxundocount = 1;
			newundo = true;

			filepath = "";

			searchhighlight = false;

			if (args->Length)
			{
				filepath = args[0];
			}
		}

	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
		HighlightWord ^highlight;
		int oldline;
		String ^filepath;
		cli::array<String^> ^undobuffer;
		cli::array<int> ^undoposbuffer;
		int undocount,curundocount,maxundocount;
		bool newundo;
		bool searchhighlight;
		int pageline;

	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  FileMenu;
	private: System::Windows::Forms::ToolStripMenuItem^  FileNew;
	private: System::Windows::Forms::ToolStripMenuItem^  FileOpen;




	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator;
	private: System::Windows::Forms::ToolStripMenuItem^  FileSave;
	private: System::Windows::Forms::ToolStripMenuItem^  FileSaveAs;


	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator2;
	private: System::Windows::Forms::ToolStripMenuItem^  FileExit;
	private: System::Windows::Forms::ToolStripMenuItem^  EditMenu;
	private: System::Windows::Forms::ToolStripMenuItem^  EditUndo;
	private: System::Windows::Forms::ToolStripMenuItem^  EditRedo;




	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator3;
	private: System::Windows::Forms::ToolStripMenuItem^  EditCut;
	private: System::Windows::Forms::ToolStripMenuItem^  EditCopy;
	private: System::Windows::Forms::ToolStripMenuItem^  EditPaste;



	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
	private: System::Windows::Forms::ToolStripMenuItem^  EditSelectAll;
	private: System::Windows::Forms::ToolStripMenuItem^  ToolMenu;




	private: System::Windows::Forms::StatusStrip^  statusStrip1;
	private: System::Windows::Forms::ToolStrip^  toolStrip1;
	protected: 











	private:
		/// <summary>
		Splash ^splash;
	private: System::Windows::Forms::ToolStripButton^  新建NToolStripButton;
	private: System::Windows::Forms::ToolStripButton^  打开OToolStripButton;
	private: System::Windows::Forms::ToolStripButton^  保存SToolStripButton;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
	private: System::Windows::Forms::ToolStripButton^  剪切UToolStripButton;
	private: System::Windows::Forms::ToolStripButton^  复制CToolStripButton;
	private: System::Windows::Forms::ToolStripButton^  粘贴PToolStripButton;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator6;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;


	private: System::Windows::Forms::ToolStripButton^  toolStripButton1;
	private: System::Windows::Forms::ToolStripButton^  toolStripButton2;
	private: System::Windows::Forms::SplitContainer^  splitContainer1;
	private: System::Windows::Forms::SplitContainer^  splitContainer2;
	private: System::Windows::Forms::RichTextBox^  richTextBox1;


	private: System::Windows::Forms::TreeView^  treeView1;
	private: System::Windows::Forms::ImageList^  imageList1;
	private: System::Windows::Forms::ListBox^  listBox1;
	private: System::Windows::Forms::VScrollBar^  vScrollBar1;
	private: System::Windows::Forms::OpenFileDialog^  openFileDialog1;
	private: System::Windows::Forms::SaveFileDialog^  saveFileDialog1;
	private: System::Windows::Forms::RichTextBox^  richTextBox2;
	private: System::Windows::Forms::ToolStripStatusLabel^  toolStripStatusLabel1;
	private: System::Windows::Forms::ContextMenuStrip^  contextMenuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  toolStripMenuItem1;
	private: System::Windows::Forms::ToolStripMenuItem^  toolStripMenuItem2;
	private: System::Windows::Forms::ToolStripMenuItem^  toolStripMenuItem3;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator7;
	private: System::Windows::Forms::ToolStripMenuItem^  toolStripMenuItem4;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripMenuItem5;
	private: System::Windows::Forms::ToolStripMenuItem^  刷新语法高亮ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator8;
	private: System::Windows::Forms::ToolStripMenuItem^  toolStripMenuItem6;
	private: System::Windows::Forms::ToolStripSplitButton^  toolStripSplitButton1;
	private: System::Windows::Forms::ToolStripMenuItem^  lUA保留字ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  fS脚本全局常量ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  fS类型常量ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  fS函数ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  lUA注释ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  lUA字符串ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripMenuItem7;


	private: System::Windows::Forms::RichTextBox^  richTextBox3;
	private: System::Windows::Forms::ToolStrip^  toolStrip2;
	private: System::Windows::Forms::ToolStripTextBox^  toolStripTextBox1;
	private: System::Windows::Forms::ToolStripButton^  toolStripButton3;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator9;
	private: System::Windows::Forms::ToolStripButton^  toolStripButton4;
	private: System::Windows::Forms::ToolStripMenuItem^  とある脚本の撰写指南ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator10;
	private: System::Windows::Forms::ToolStripMenuItem^  炮姐求交往AToolStripMenuItem;
	private: System::Windows::Forms::ToolStripLabel^  toolStripLabel1;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator11;

	private: System::Windows::Forms::ToolStripLabel^  toolStripLabel2;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator12;
	private: System::Windows::Forms::ToolStripStatusLabel^  toolStripStatusLabel2;
	private: System::Windows::Forms::ToolStripTextBox^  toolStripTextBox2;
	private: System::Windows::Forms::ToolStripSplitButton^  toolStripSplitButton2;
	private: System::Windows::Forms::ToolStripMenuItem^  大小写匹配ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  全字匹配ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripMenuItem8;
	private: System::Windows::Forms::ToolStripMenuItem^  替换ToolStripMenuItem;
	private: System::Windows::Forms::ToolStripTextBox^  toolStripTextBox3;
	private: System::Windows::Forms::ToolStripMenuItem^  下划线标亮ToolStripMenuItem;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::ToolStripMenuItem^  查找FToolStripMenuItem;








	private: System::ComponentModel::IContainer^  components;







			 /// </summary>


#pragma region Windows Form Designer generated code
			 /// <summary>
			 /// 设计器支持所需的方法 - 不要
			 /// 使用代码编辑器修改此方法的内容。
			 /// </summary>
			 void InitializeComponent(void)
			 {
				 this->components = (gcnew System::ComponentModel::Container());
				 System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
				 System::Windows::Forms::TreeNode^  treeNode1 = (gcnew System::Windows::Forms::TreeNode(L"输出缓存 "));
				 System::Windows::Forms::TreeNode^  treeNode2 = (gcnew System::Windows::Forms::TreeNode(L"新建单位"));
				 System::Windows::Forms::TreeNode^  treeNode3 = (gcnew System::Windows::Forms::TreeNode(L"更新单位"));
				 System::Windows::Forms::TreeNode^  treeNode4 = (gcnew System::Windows::Forms::TreeNode(L"单位名"));
				 System::Windows::Forms::TreeNode^  treeNode5 = (gcnew System::Windows::Forms::TreeNode(L"单位编组"));
				 System::Windows::Forms::TreeNode^  treeNode6 = (gcnew System::Windows::Forms::TreeNode(L"机型"));
				 System::Windows::Forms::TreeNode^  treeNode7 = (gcnew System::Windows::Forms::TreeNode(L"阵营"));
				 System::Windows::Forms::TreeNode^  treeNode8 = (gcnew System::Windows::Forms::TreeNode(L"X坐标"));
				 System::Windows::Forms::TreeNode^  treeNode9 = (gcnew System::Windows::Forms::TreeNode(L"Y坐标"));
				 System::Windows::Forms::TreeNode^  treeNode10 = (gcnew System::Windows::Forms::TreeNode(L"Z坐标"));
				 System::Windows::Forms::TreeNode^  treeNode11 = (gcnew System::Windows::Forms::TreeNode(L"Z轴转向"));
				 System::Windows::Forms::TreeNode^  treeNode12 = (gcnew System::Windows::Forms::TreeNode(L"X轴转向"));
				 System::Windows::Forms::TreeNode^  treeNode13 = (gcnew System::Windows::Forms::TreeNode(L"Y周转向"));
				 System::Windows::Forms::TreeNode^  treeNode14 = (gcnew System::Windows::Forms::TreeNode(L"X轴惯性分量"));
				 System::Windows::Forms::TreeNode^  treeNode15 = (gcnew System::Windows::Forms::TreeNode(L"Y轴惯性分量"));
				 System::Windows::Forms::TreeNode^  treeNode16 = (gcnew System::Windows::Forms::TreeNode(L"Z轴惯性分量"));
				 System::Windows::Forms::TreeNode^  treeNode17 = (gcnew System::Windows::Forms::TreeNode(L"Z轴转向惯性分量"));
				 System::Windows::Forms::TreeNode^  treeNode18 = (gcnew System::Windows::Forms::TreeNode(L"X轴转向惯性分量"));
				 System::Windows::Forms::TreeNode^  treeNode19 = (gcnew System::Windows::Forms::TreeNode(L"耐久度"));
				 System::Windows::Forms::TreeNode^  treeNode20 = (gcnew System::Windows::Forms::TreeNode(L"前进、后退速度"));
				 System::Windows::Forms::TreeNode^  treeNode21 = (gcnew System::Windows::Forms::TreeNode(L"平移速度"));
				 System::Windows::Forms::TreeNode^  treeNode22 = (gcnew System::Windows::Forms::TreeNode(L"转向速度"));
				 System::Windows::Forms::TreeNode^  treeNode23 = (gcnew System::Windows::Forms::TreeNode(L"左转触发"));
				 System::Windows::Forms::TreeNode^  treeNode24 = (gcnew System::Windows::Forms::TreeNode(L"右转触发"));
				 System::Windows::Forms::TreeNode^  treeNode25 = (gcnew System::Windows::Forms::TreeNode(L"拉升触发"));
				 System::Windows::Forms::TreeNode^  treeNode26 = (gcnew System::Windows::Forms::TreeNode(L"压低触发"));
				 System::Windows::Forms::TreeNode^  treeNode27 = (gcnew System::Windows::Forms::TreeNode(L"前进触发"));
				 System::Windows::Forms::TreeNode^  treeNode28 = (gcnew System::Windows::Forms::TreeNode(L"后退触发"));
				 System::Windows::Forms::TreeNode^  treeNode29 = (gcnew System::Windows::Forms::TreeNode(L"左平移触发"));
				 System::Windows::Forms::TreeNode^  treeNode30 = (gcnew System::Windows::Forms::TreeNode(L"右平移触发"));
				 System::Windows::Forms::TreeNode^  treeNode31 = (gcnew System::Windows::Forms::TreeNode(L"漂移量"));
				 System::Windows::Forms::TreeNode^  treeNode32 = (gcnew System::Windows::Forms::TreeNode(L"翻转量"));
				 System::Windows::Forms::TreeNode^  treeNode33 = (gcnew System::Windows::Forms::TreeNode(L"突进量"));
				 System::Windows::Forms::TreeNode^  treeNode34 = (gcnew System::Windows::Forms::TreeNode(L"伤害密度"));
				 System::Windows::Forms::TreeNode^  treeNode35 = (gcnew System::Windows::Forms::TreeNode(L"目标单位"));
				 System::Windows::Forms::TreeNode^  treeNode36 = (gcnew System::Windows::Forms::TreeNode(L"启用单位AI"));
				 System::Windows::Forms::TreeNode^  treeNode37 = (gcnew System::Windows::Forms::TreeNode(L"机体疲劳"));
				 System::Windows::Forms::TreeNode^  treeNode38 = (gcnew System::Windows::Forms::TreeNode(L"速度X分量"));
				 System::Windows::Forms::TreeNode^  treeNode39 = (gcnew System::Windows::Forms::TreeNode(L"速度Y分量"));
				 System::Windows::Forms::TreeNode^  treeNode40 = (gcnew System::Windows::Forms::TreeNode(L"速度Z分量"));
				 System::Windows::Forms::TreeNode^  treeNode41 = (gcnew System::Windows::Forms::TreeNode(L"小行星密度"));
				 System::Windows::Forms::TreeNode^  treeNode42 = (gcnew System::Windows::Forms::TreeNode(L"裂缝密度"));
				 System::Windows::Forms::TreeNode^  treeNode43 = (gcnew System::Windows::Forms::TreeNode(L"路径点列表"));
				 System::Windows::Forms::TreeNode^  treeNode44 = (gcnew System::Windows::Forms::TreeNode(L"[单位属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(40) {treeNode4, 
					 treeNode5, treeNode6, treeNode7, treeNode8, treeNode9, treeNode10, treeNode11, treeNode12, treeNode13, treeNode14, treeNode15, 
					 treeNode16, treeNode17, treeNode18, treeNode19, treeNode20, treeNode21, treeNode22, treeNode23, treeNode24, treeNode25, treeNode26, 
					 treeNode27, treeNode28, treeNode29, treeNode30, treeNode31, treeNode32, treeNode33, treeNode34, treeNode35, treeNode36, treeNode37, 
					 treeNode38, treeNode39, treeNode40, treeNode41, treeNode42, treeNode43}));
				 System::Windows::Forms::TreeNode^  treeNode45 = (gcnew System::Windows::Forms::TreeNode(L"新建图像效果"));
				 System::Windows::Forms::TreeNode^  treeNode46 = (gcnew System::Windows::Forms::TreeNode(L"效果编号"));
				 System::Windows::Forms::TreeNode^  treeNode47 = (gcnew System::Windows::Forms::TreeNode(L"X坐标"));
				 System::Windows::Forms::TreeNode^  treeNode48 = (gcnew System::Windows::Forms::TreeNode(L"Y坐标"));
				 System::Windows::Forms::TreeNode^  treeNode49 = (gcnew System::Windows::Forms::TreeNode(L"Z坐标"));
				 System::Windows::Forms::TreeNode^  treeNode50 = (gcnew System::Windows::Forms::TreeNode(L"X轴方向分量"));
				 System::Windows::Forms::TreeNode^  treeNode51 = (gcnew System::Windows::Forms::TreeNode(L"Y轴方向分量"));
				 System::Windows::Forms::TreeNode^  treeNode52 = (gcnew System::Windows::Forms::TreeNode(L"Z轴方向分量"));
				 System::Windows::Forms::TreeNode^  treeNode53 = (gcnew System::Windows::Forms::TreeNode(L"[图像效果属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(7) {treeNode46, 
					 treeNode47, treeNode48, treeNode49, treeNode50, treeNode51, treeNode52}));
				 System::Windows::Forms::TreeNode^  treeNode54 = (gcnew System::Windows::Forms::TreeNode(L"使用面板"));
				 System::Windows::Forms::TreeNode^  treeNode55 = (gcnew System::Windows::Forms::TreeNode(L"创建面板"));
				 System::Windows::Forms::TreeNode^  treeNode56 = (gcnew System::Windows::Forms::TreeNode(L"创建控件"));
				 System::Windows::Forms::TreeNode^  treeNode57 = (gcnew System::Windows::Forms::TreeNode(L"面板名"));
				 System::Windows::Forms::TreeNode^  treeNode58 = (gcnew System::Windows::Forms::TreeNode(L"X坐标"));
				 System::Windows::Forms::TreeNode^  treeNode59 = (gcnew System::Windows::Forms::TreeNode(L"Y坐标"));
				 System::Windows::Forms::TreeNode^  treeNode60 = (gcnew System::Windows::Forms::TreeNode(L"Z坐标"));
				 System::Windows::Forms::TreeNode^  treeNode61 = (gcnew System::Windows::Forms::TreeNode(L"宽度"));
				 System::Windows::Forms::TreeNode^  treeNode62 = (gcnew System::Windows::Forms::TreeNode(L"高度"));
				 System::Windows::Forms::TreeNode^  treeNode63 = (gcnew System::Windows::Forms::TreeNode(L"标题文本"));
				 System::Windows::Forms::TreeNode^  treeNode64 = (gcnew System::Windows::Forms::TreeNode(L"Z轴转向"));
				 System::Windows::Forms::TreeNode^  treeNode65 = (gcnew System::Windows::Forms::TreeNode(L"Y轴转向"));
				 System::Windows::Forms::TreeNode^  treeNode66 = (gcnew System::Windows::Forms::TreeNode(L"X轴转向"));
				 System::Windows::Forms::TreeNode^  treeNode67 = (gcnew System::Windows::Forms::TreeNode(L"接受鼠标事件"));
				 System::Windows::Forms::TreeNode^  treeNode68 = (gcnew System::Windows::Forms::TreeNode(L"可见"));
				 System::Windows::Forms::TreeNode^  treeNode69 = (gcnew System::Windows::Forms::TreeNode(L"背景图像"));
				 System::Windows::Forms::TreeNode^  treeNode70 = (gcnew System::Windows::Forms::TreeNode(L"颜色主题"));
				 System::Windows::Forms::TreeNode^  treeNode71 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色R值"));
				 System::Windows::Forms::TreeNode^  treeNode72 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色G值"));
				 System::Windows::Forms::TreeNode^  treeNode73 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色B值"));
				 System::Windows::Forms::TreeNode^  treeNode74 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色A值"));
				 System::Windows::Forms::TreeNode^  treeNode75 = (gcnew System::Windows::Forms::TreeNode(L"[面板属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(18) {treeNode57, 
					 treeNode58, treeNode59, treeNode60, treeNode61, treeNode62, treeNode63, treeNode64, treeNode65, treeNode66, treeNode67, treeNode68, 
					 treeNode69, treeNode70, treeNode71, treeNode72, treeNode73, treeNode74}));
				 System::Windows::Forms::TreeNode^  treeNode76 = (gcnew System::Windows::Forms::TreeNode(L"控件类型"));
				 System::Windows::Forms::TreeNode^  treeNode77 = (gcnew System::Windows::Forms::TreeNode(L"控件名"));
				 System::Windows::Forms::TreeNode^  treeNode78 = (gcnew System::Windows::Forms::TreeNode(L"所属面板"));
				 System::Windows::Forms::TreeNode^  treeNode79 = (gcnew System::Windows::Forms::TreeNode(L"X坐标"));
				 System::Windows::Forms::TreeNode^  treeNode80 = (gcnew System::Windows::Forms::TreeNode(L"Y坐标"));
				 System::Windows::Forms::TreeNode^  treeNode81 = (gcnew System::Windows::Forms::TreeNode(L"Z坐标"));
				 System::Windows::Forms::TreeNode^  treeNode82 = (gcnew System::Windows::Forms::TreeNode(L"宽度"));
				 System::Windows::Forms::TreeNode^  treeNode83 = (gcnew System::Windows::Forms::TreeNode(L"高度"));
				 System::Windows::Forms::TreeNode^  treeNode84 = (gcnew System::Windows::Forms::TreeNode(L"接受鼠标事件"));
				 System::Windows::Forms::TreeNode^  treeNode85 = (gcnew System::Windows::Forms::TreeNode(L"可见"));
				 System::Windows::Forms::TreeNode^  treeNode86 = (gcnew System::Windows::Forms::TreeNode(L"颜色主题"));
				 System::Windows::Forms::TreeNode^  treeNode87 = (gcnew System::Windows::Forms::TreeNode(L"标题文本"));
				 System::Windows::Forms::TreeNode^  treeNode88 = (gcnew System::Windows::Forms::TreeNode(L"背景图像"));
				 System::Windows::Forms::TreeNode^  treeNode89 = (gcnew System::Windows::Forms::TreeNode(L"显示模型"));
				 System::Windows::Forms::TreeNode^  treeNode90 = (gcnew System::Windows::Forms::TreeNode(L"显示单位"));
				 System::Windows::Forms::TreeNode^  treeNode91 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色R值"));
				 System::Windows::Forms::TreeNode^  treeNode92 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色G值"));
				 System::Windows::Forms::TreeNode^  treeNode93 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色B值"));
				 System::Windows::Forms::TreeNode^  treeNode94 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色A值"));
				 System::Windows::Forms::TreeNode^  treeNode95 = (gcnew System::Windows::Forms::TreeNode(L"[按钮属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(8) {treeNode87, 
					 treeNode88, treeNode89, treeNode90, treeNode91, treeNode92, treeNode93, treeNode94}));
				 System::Windows::Forms::TreeNode^  treeNode96 = (gcnew System::Windows::Forms::TreeNode(L"标题文本"));
				 System::Windows::Forms::TreeNode^  treeNode97 = (gcnew System::Windows::Forms::TreeNode(L"选中状态"));
				 System::Windows::Forms::TreeNode^  treeNode98 = (gcnew System::Windows::Forms::TreeNode(L"[复选框属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(2) {treeNode96, 
					 treeNode97}));
				 System::Windows::Forms::TreeNode^  treeNode99 = (gcnew System::Windows::Forms::TreeNode(L"标题文本"));
				 System::Windows::Forms::TreeNode^  treeNode100 = (gcnew System::Windows::Forms::TreeNode(L"选中状态"));
				 System::Windows::Forms::TreeNode^  treeNode101 = (gcnew System::Windows::Forms::TreeNode(L"分组"));
				 System::Windows::Forms::TreeNode^  treeNode102 = (gcnew System::Windows::Forms::TreeNode(L"[单选框属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(3) {treeNode99, 
					 treeNode100, treeNode101}));
				 System::Windows::Forms::TreeNode^  treeNode103 = (gcnew System::Windows::Forms::TreeNode(L"标题文本"));
				 System::Windows::Forms::TreeNode^  treeNode104 = (gcnew System::Windows::Forms::TreeNode(L"大字体"));
				 System::Windows::Forms::TreeNode^  treeNode105 = (gcnew System::Windows::Forms::TreeNode(L"背景图像"));
				 System::Windows::Forms::TreeNode^  treeNode106 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色R值"));
				 System::Windows::Forms::TreeNode^  treeNode107 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色G值"));
				 System::Windows::Forms::TreeNode^  treeNode108 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色B值"));
				 System::Windows::Forms::TreeNode^  treeNode109 = (gcnew System::Windows::Forms::TreeNode(L"贴图颜色A值"));
				 System::Windows::Forms::TreeNode^  treeNode110 = (gcnew System::Windows::Forms::TreeNode(L"[静态框属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(7) {treeNode103, 
					 treeNode104, treeNode105, treeNode106, treeNode107, treeNode108, treeNode109}));
				 System::Windows::Forms::TreeNode^  treeNode111 = (gcnew System::Windows::Forms::TreeNode(L"条目数量"));
				 System::Windows::Forms::TreeNode^  treeNode112 = (gcnew System::Windows::Forms::TreeNode(L"选中条目"));
				 System::Windows::Forms::TreeNode^  treeNode113 = (gcnew System::Windows::Forms::TreeNode(L"条目表"));
				 System::Windows::Forms::TreeNode^  treeNode114 = (gcnew System::Windows::Forms::TreeNode(L"[下拉列表框属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(3) {treeNode111, 
					 treeNode112, treeNode113}));
				 System::Windows::Forms::TreeNode^  treeNode115 = (gcnew System::Windows::Forms::TreeNode(L"傲娇"));
				 System::Windows::Forms::TreeNode^  treeNode116 = (gcnew System::Windows::Forms::TreeNode(L"显示数值"));
				 System::Windows::Forms::TreeNode^  treeNode117 = (gcnew System::Windows::Forms::TreeNode(L"最大数值"));
				 System::Windows::Forms::TreeNode^  treeNode118 = (gcnew System::Windows::Forms::TreeNode(L"当前数值"));
				 System::Windows::Forms::TreeNode^  treeNode119 = (gcnew System::Windows::Forms::TreeNode(L"[进度条属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(4) {treeNode115, 
					 treeNode116, treeNode117, treeNode118}));
				 System::Windows::Forms::TreeNode^  treeNode120 = (gcnew System::Windows::Forms::TreeNode(L"单屏条目数"));
				 System::Windows::Forms::TreeNode^  treeNode121 = (gcnew System::Windows::Forms::TreeNode(L"条目数量"));
				 System::Windows::Forms::TreeNode^  treeNode122 = (gcnew System::Windows::Forms::TreeNode(L"选中条目"));
				 System::Windows::Forms::TreeNode^  treeNode123 = (gcnew System::Windows::Forms::TreeNode(L"第一屏显条目"));
				 System::Windows::Forms::TreeNode^  treeNode124 = (gcnew System::Windows::Forms::TreeNode(L"条目表"));
				 System::Windows::Forms::TreeNode^  treeNode125 = (gcnew System::Windows::Forms::TreeNode(L"[列表框属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(5) {treeNode120, 
					 treeNode121, treeNode122, treeNode123, treeNode124}));
				 System::Windows::Forms::TreeNode^  treeNode126 = (gcnew System::Windows::Forms::TreeNode(L"[控件属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(18) {treeNode76, 
					 treeNode77, treeNode78, treeNode79, treeNode80, treeNode81, treeNode82, treeNode83, treeNode84, treeNode85, treeNode86, treeNode95, 
					 treeNode98, treeNode102, treeNode110, treeNode114, treeNode119, treeNode125}));
				 System::Windows::Forms::TreeNode^  treeNode127 = (gcnew System::Windows::Forms::TreeNode(L"被单击"));
				 System::Windows::Forms::TreeNode^  treeNode128 = (gcnew System::Windows::Forms::TreeNode(L"被按下"));
				 System::Windows::Forms::TreeNode^  treeNode129 = (gcnew System::Windows::Forms::TreeNode(L"被松开"));
				 System::Windows::Forms::TreeNode^  treeNode130 = (gcnew System::Windows::Forms::TreeNode(L"高亮状态"));
				 System::Windows::Forms::TreeNode^  treeNode131 = (gcnew System::Windows::Forms::TreeNode(L"[控件事件]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(4) {treeNode127, 
					 treeNode128, treeNode129, treeNode130}));
				 System::Windows::Forms::TreeNode^  treeNode132 = (gcnew System::Windows::Forms::TreeNode(L"更新摄像机"));
				 System::Windows::Forms::TreeNode^  treeNode133 = (gcnew System::Windows::Forms::TreeNode(L"摄像机类型"));
				 System::Windows::Forms::TreeNode^  treeNode134 = (gcnew System::Windows::Forms::TreeNode(L"X坐标"));
				 System::Windows::Forms::TreeNode^  treeNode135 = (gcnew System::Windows::Forms::TreeNode(L"Y坐标"));
				 System::Windows::Forms::TreeNode^  treeNode136 = (gcnew System::Windows::Forms::TreeNode(L"Z坐标"));
				 System::Windows::Forms::TreeNode^  treeNode137 = (gcnew System::Windows::Forms::TreeNode(L"Z轴转角"));
				 System::Windows::Forms::TreeNode^  treeNode138 = (gcnew System::Windows::Forms::TreeNode(L"Y轴转角"));
				 System::Windows::Forms::TreeNode^  treeNode139 = (gcnew System::Windows::Forms::TreeNode(L"焦距"));
				 System::Windows::Forms::TreeNode^  treeNode140 = (gcnew System::Windows::Forms::TreeNode(L"[摄像机属性]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(7) {treeNode133, 
					 treeNode134, treeNode135, treeNode136, treeNode137, treeNode138, treeNode139}));
				 System::Windows::Forms::TreeNode^  treeNode141 = (gcnew System::Windows::Forms::TreeNode(L"更新地图模型"));
				 System::Windows::Forms::TreeNode^  treeNode142 = (gcnew System::Windows::Forms::TreeNode(L"输出调试文本"));
				 System::Windows::Forms::TreeNode^  treeNode143 = (gcnew System::Windows::Forms::TreeNode(L"AI自动寻路"));
				 System::Windows::Forms::TreeNode^  treeNode144 = (gcnew System::Windows::Forms::TreeNode(L"AI手动寻路"));
				 System::Windows::Forms::TreeNode^  treeNode145 = (gcnew System::Windows::Forms::TreeNode(L"控制游戏状态"));
				 System::Windows::Forms::TreeNode^  treeNode146 = (gcnew System::Windows::Forms::TreeNode(L"载入贴图"));
				 System::Windows::Forms::TreeNode^  treeNode147 = (gcnew System::Windows::Forms::TreeNode(L"创建炮弹"));
				 System::Windows::Forms::TreeNode^  treeNode148 = (gcnew System::Windows::Forms::TreeNode(L"运行时间"));
				 System::Windows::Forms::TreeNode^  treeNode149 = (gcnew System::Windows::Forms::TreeNode(L"上回合运行时间"));
				 System::Windows::Forms::TreeNode^  treeNode150 = (gcnew System::Windows::Forms::TreeNode(L"圆周率"));
				 System::Windows::Forms::TreeNode^  treeNode151 = (gcnew System::Windows::Forms::TreeNode(L"创建单位"));
				 System::Windows::Forms::TreeNode^  treeNode152 = (gcnew System::Windows::Forms::TreeNode(L"更新单位"));
				 System::Windows::Forms::TreeNode^  treeNode153 = (gcnew System::Windows::Forms::TreeNode(L"更新单位组"));
				 System::Windows::Forms::TreeNode^  treeNode154 = (gcnew System::Windows::Forms::TreeNode(L"创建图像效果"));
				 System::Windows::Forms::TreeNode^  treeNode155 = (gcnew System::Windows::Forms::TreeNode(L"使用、禁用面板"));
				 System::Windows::Forms::TreeNode^  treeNode156 = (gcnew System::Windows::Forms::TreeNode(L"更新面板"));
				 System::Windows::Forms::TreeNode^  treeNode157 = (gcnew System::Windows::Forms::TreeNode(L"更新控件"));
				 System::Windows::Forms::TreeNode^  treeNode158 = (gcnew System::Windows::Forms::TreeNode(L"创建面板"));
				 System::Windows::Forms::TreeNode^  treeNode159 = (gcnew System::Windows::Forms::TreeNode(L"创建控件"));
				 System::Windows::Forms::TreeNode^  treeNode160 = (gcnew System::Windows::Forms::TreeNode(L"更新摄像机"));
				 System::Windows::Forms::TreeNode^  treeNode161 = (gcnew System::Windows::Forms::TreeNode(L"更新地图模型"));
				 System::Windows::Forms::TreeNode^  treeNode162 = (gcnew System::Windows::Forms::TreeNode(L"输出调试文本"));
				 System::Windows::Forms::TreeNode^  treeNode163 = (gcnew System::Windows::Forms::TreeNode(L"AI自动寻路"));
				 System::Windows::Forms::TreeNode^  treeNode164 = (gcnew System::Windows::Forms::TreeNode(L"AI手动寻路"));
				 System::Windows::Forms::TreeNode^  treeNode165 = (gcnew System::Windows::Forms::TreeNode(L"控制游戏状态"));
				 System::Windows::Forms::TreeNode^  treeNode166 = (gcnew System::Windows::Forms::TreeNode(L"载入贴图"));
				 System::Windows::Forms::TreeNode^  treeNode167 = (gcnew System::Windows::Forms::TreeNode(L"创建炮弹"));
				 System::Windows::Forms::TreeNode^  treeNode168 = (gcnew System::Windows::Forms::TreeNode(L"[指令类型]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(17) {treeNode151, 
					 treeNode152, treeNode153, treeNode154, treeNode155, treeNode156, treeNode157, treeNode158, treeNode159, treeNode160, treeNode161, 
					 treeNode162, treeNode163, treeNode164, treeNode165, treeNode166, treeNode167}));
				 System::Windows::Forms::TreeNode^  treeNode169 = (gcnew System::Windows::Forms::TreeNode(L"按钮"));
				 System::Windows::Forms::TreeNode^  treeNode170 = (gcnew System::Windows::Forms::TreeNode(L"复选框"));
				 System::Windows::Forms::TreeNode^  treeNode171 = (gcnew System::Windows::Forms::TreeNode(L"单选框"));
				 System::Windows::Forms::TreeNode^  treeNode172 = (gcnew System::Windows::Forms::TreeNode(L"滚动条"));
				 System::Windows::Forms::TreeNode^  treeNode173 = (gcnew System::Windows::Forms::TreeNode(L"静态框"));
				 System::Windows::Forms::TreeNode^  treeNode174 = (gcnew System::Windows::Forms::TreeNode(L"下拉列表框"));
				 System::Windows::Forms::TreeNode^  treeNode175 = (gcnew System::Windows::Forms::TreeNode(L"进度条"));
				 System::Windows::Forms::TreeNode^  treeNode176 = (gcnew System::Windows::Forms::TreeNode(L"列表框"));
				 System::Windows::Forms::TreeNode^  treeNode177 = (gcnew System::Windows::Forms::TreeNode(L"[控件类型]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(8) {treeNode169, 
					 treeNode170, treeNode171, treeNode172, treeNode173, treeNode174, treeNode175, treeNode176}));
				 System::Windows::Forms::TreeNode^  treeNode178 = (gcnew System::Windows::Forms::TreeNode(L"灰色"));
				 System::Windows::Forms::TreeNode^  treeNode179 = (gcnew System::Windows::Forms::TreeNode(L"蓝色"));
				 System::Windows::Forms::TreeNode^  treeNode180 = (gcnew System::Windows::Forms::TreeNode(L"平面蓝色"));
				 System::Windows::Forms::TreeNode^  treeNode181 = (gcnew System::Windows::Forms::TreeNode(L"橙色"));
				 System::Windows::Forms::TreeNode^  treeNode182 = (gcnew System::Windows::Forms::TreeNode(L"平面橙色"));
				 System::Windows::Forms::TreeNode^  treeNode183 = (gcnew System::Windows::Forms::TreeNode(L"完全透明"));
				 System::Windows::Forms::TreeNode^  treeNode184 = (gcnew System::Windows::Forms::TreeNode(L"[颜色主题]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(6) {treeNode178, 
					 treeNode179, treeNode180, treeNode181, treeNode182, treeNode183}));
				 System::Windows::Forms::TreeNode^  treeNode185 = (gcnew System::Windows::Forms::TreeNode(L"跟踪玩家"));
				 System::Windows::Forms::TreeNode^  treeNode186 = (gcnew System::Windows::Forms::TreeNode(L"固定角度跟踪玩家"));
				 System::Windows::Forms::TreeNode^  treeNode187 = (gcnew System::Windows::Forms::TreeNode(L"跟踪目标"));
				 System::Windows::Forms::TreeNode^  treeNode188 = (gcnew System::Windows::Forms::TreeNode(L"自由摄像机"));
				 System::Windows::Forms::TreeNode^  treeNode189 = (gcnew System::Windows::Forms::TreeNode(L"[摄像机类型]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(4) {treeNode185, 
					 treeNode186, treeNode187, treeNode188}));
				 System::Windows::Forms::TreeNode^  treeNode190 = (gcnew System::Windows::Forms::TreeNode(L"暂停游戏"));
				 System::Windows::Forms::TreeNode^  treeNode191 = (gcnew System::Windows::Forms::TreeNode(L"继续游戏"));
				 System::Windows::Forms::TreeNode^  treeNode192 = (gcnew System::Windows::Forms::TreeNode(L"阻断玩家输入"));
				 System::Windows::Forms::TreeNode^  treeNode193 = (gcnew System::Windows::Forms::TreeNode(L"允许玩家输入"));
				 System::Windows::Forms::TreeNode^  treeNode194 = (gcnew System::Windows::Forms::TreeNode(L"胜利"));
				 System::Windows::Forms::TreeNode^  treeNode195 = (gcnew System::Windows::Forms::TreeNode(L"失败"));
				 System::Windows::Forms::TreeNode^  treeNode196 = (gcnew System::Windows::Forms::TreeNode(L"[游戏控制]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(6) {treeNode190, 
					 treeNode191, treeNode192, treeNode193, treeNode194, treeNode195}));
				 System::Windows::Forms::TreeNode^  treeNode197 = (gcnew System::Windows::Forms::TreeNode(L"[常量表]", gcnew cli::array< System::Windows::Forms::TreeNode^  >(8) {treeNode148, 
					 treeNode149, treeNode150, treeNode168, treeNode177, treeNode184, treeNode189, treeNode196}));
				 this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
				 this->FileMenu = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->FileNew = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->FileOpen = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->FileSave = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->FileSaveAs = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->FileExit = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditMenu = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditUndo = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditRedo = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator3 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->EditCut = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditCopy = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditPaste = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->查找FToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->EditSelectAll = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator8 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripMenuItem6 = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->ToolMenu = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->とある脚本の撰写指南ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator10 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->炮姐求交往AToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip());
				 this->toolStripStatusLabel1 = (gcnew System::Windows::Forms::ToolStripStatusLabel());
				 this->toolStripStatusLabel2 = (gcnew System::Windows::Forms::ToolStripStatusLabel());
				 this->toolStrip1 = (gcnew System::Windows::Forms::ToolStrip());
				 this->toolStripLabel2 = (gcnew System::Windows::Forms::ToolStripLabel());
				 this->toolStripSeparator12 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->新建NToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->打开OToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->保存SToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->剪切UToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->复制CToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->粘贴PToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
				 this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripButton1 = (gcnew System::Windows::Forms::ToolStripButton());
				 this->toolStripButton2 = (gcnew System::Windows::Forms::ToolStripButton());
				 this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripTextBox2 = (gcnew System::Windows::Forms::ToolStripTextBox());
				 this->toolStripSplitButton2 = (gcnew System::Windows::Forms::ToolStripSplitButton());
				 this->大小写匹配ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->全字匹配ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->下划线标亮ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripMenuItem8 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->替换ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripTextBox3 = (gcnew System::Windows::Forms::ToolStripTextBox());
				 this->toolStripSplitButton1 = (gcnew System::Windows::Forms::ToolStripSplitButton());
				 this->lUA保留字ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->lUA注释ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->lUA字符串ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripMenuItem7 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->fS脚本全局常量ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->fS类型常量ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->fS函数ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
				 this->splitContainer2 = (gcnew System::Windows::Forms::SplitContainer());
				 this->contextMenuStrip1 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
				 this->toolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripMenuItem3 = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripSeparator7 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripMenuItem4 = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->toolStripMenuItem5 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->刷新语法高亮ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
				 this->richTextBox2 = (gcnew System::Windows::Forms::RichTextBox());
				 this->vScrollBar1 = (gcnew System::Windows::Forms::VScrollBar());
				 this->listBox1 = (gcnew System::Windows::Forms::ListBox());
				 this->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());
				 this->toolStrip2 = (gcnew System::Windows::Forms::ToolStrip());
				 this->toolStripLabel1 = (gcnew System::Windows::Forms::ToolStripLabel());
				 this->toolStripSeparator11 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripTextBox1 = (gcnew System::Windows::Forms::ToolStripTextBox());
				 this->toolStripButton3 = (gcnew System::Windows::Forms::ToolStripButton());
				 this->toolStripSeparator9 = (gcnew System::Windows::Forms::ToolStripSeparator());
				 this->toolStripButton4 = (gcnew System::Windows::Forms::ToolStripButton());
				 this->richTextBox3 = (gcnew System::Windows::Forms::RichTextBox());
				 this->label3 = (gcnew System::Windows::Forms::Label());
				 this->label2 = (gcnew System::Windows::Forms::Label());
				 this->label1 = (gcnew System::Windows::Forms::Label());
				 this->treeView1 = (gcnew System::Windows::Forms::TreeView());
				 this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));
				 this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
				 this->saveFileDialog1 = (gcnew System::Windows::Forms::SaveFileDialog());
				 this->menuStrip1->SuspendLayout();
				 this->statusStrip1->SuspendLayout();
				 this->toolStrip1->SuspendLayout();
				 this->splitContainer1->Panel1->SuspendLayout();
				 this->splitContainer1->Panel2->SuspendLayout();
				 this->splitContainer1->SuspendLayout();
				 this->splitContainer2->Panel1->SuspendLayout();
				 this->splitContainer2->Panel2->SuspendLayout();
				 this->splitContainer2->SuspendLayout();
				 this->contextMenuStrip1->SuspendLayout();
				 this->toolStrip2->SuspendLayout();
				 this->SuspendLayout();
				 // 
				 // menuStrip1
				 // 
				 this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->FileMenu, this->EditMenu, 
					 this->ToolMenu});
				 this->menuStrip1->Location = System::Drawing::Point(0, 0);
				 this->menuStrip1->Name = L"menuStrip1";
				 this->menuStrip1->Size = System::Drawing::Size(705, 24);
				 this->menuStrip1->TabIndex = 0;
				 this->menuStrip1->Text = L"menuStrip1";
				 // 
				 // FileMenu
				 // 
				 this->FileMenu->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->FileNew, this->FileOpen, 
					 this->toolStripSeparator, this->FileSave, this->FileSaveAs, this->toolStripSeparator2, this->FileExit});
				 this->FileMenu->Name = L"FileMenu";
				 this->FileMenu->Size = System::Drawing::Size(81, 20);
				 this->FileMenu->Text = L"禁书目录(&F)";
				 // 
				 // FileNew
				 // 
				 this->FileNew->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"FileNew.Image")));
				 this->FileNew->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->FileNew->Name = L"FileNew";
				 this->FileNew->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::N));
				 this->FileNew->Size = System::Drawing::Size(199, 22);
				 this->FileNew->Text = L"新建(&N)";
				 this->FileNew->Click += gcnew System::EventHandler(this, &Form1::FileNew_Click);
				 // 
				 // FileOpen
				 // 
				 this->FileOpen->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"FileOpen.Image")));
				 this->FileOpen->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->FileOpen->Name = L"FileOpen";
				 this->FileOpen->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::O));
				 this->FileOpen->Size = System::Drawing::Size(199, 22);
				 this->FileOpen->Text = L"打开(&O)";
				 this->FileOpen->Click += gcnew System::EventHandler(this, &Form1::打开OToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator
				 // 
				 this->toolStripSeparator->Name = L"toolStripSeparator";
				 this->toolStripSeparator->Size = System::Drawing::Size(196, 6);
				 // 
				 // FileSave
				 // 
				 this->FileSave->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"FileSave.Image")));
				 this->FileSave->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->FileSave->Name = L"FileSave";
				 this->FileSave->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S));
				 this->FileSave->Size = System::Drawing::Size(199, 22);
				 this->FileSave->Text = L"保存(&S)";
				 this->FileSave->Click += gcnew System::EventHandler(this, &Form1::保存SToolStripMenuItem1_Click);
				 // 
				 // FileSaveAs
				 // 
				 this->FileSaveAs->Name = L"FileSaveAs";
				 this->FileSaveAs->ShortcutKeys = static_cast<System::Windows::Forms::Keys>(((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::Shift) 
					 | System::Windows::Forms::Keys::S));
				 this->FileSaveAs->Size = System::Drawing::Size(199, 22);
				 this->FileSaveAs->Text = L"另存为(&A)";
				 this->FileSaveAs->Click += gcnew System::EventHandler(this, &Form1::FileSaveAs_Click);
				 // 
				 // toolStripSeparator2
				 // 
				 this->toolStripSeparator2->Name = L"toolStripSeparator2";
				 this->toolStripSeparator2->Size = System::Drawing::Size(196, 6);
				 // 
				 // FileExit
				 // 
				 this->FileExit->Font = (gcnew System::Drawing::Font(L"Tahoma", 8.25F, System::Drawing::FontStyle::Strikeout));
				 this->FileExit->Name = L"FileExit";
				 this->FileExit->Size = System::Drawing::Size(199, 22);
				 this->FileExit->Text = L"一方通行(&X)";
				 this->FileExit->Click += gcnew System::EventHandler(this, &Form1::FileExit_Click);
				 // 
				 // EditMenu
				 // 
				 this->EditMenu->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(11) {this->EditUndo, this->EditRedo, 
					 this->toolStripSeparator3, this->EditCut, this->EditCopy, this->EditPaste, this->toolStripSeparator4, this->查找FToolStripMenuItem, 
					 this->EditSelectAll, this->toolStripSeparator8, this->toolStripMenuItem6});
				 this->EditMenu->Name = L"EditMenu";
				 this->EditMenu->Size = System::Drawing::Size(81, 20);
				 this->EditMenu->Text = L"超电磁炮(&E)";
				 // 
				 // EditUndo
				 // 
				 this->EditUndo->Name = L"EditUndo";
				 this->EditUndo->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::Z));
				 this->EditUndo->Size = System::Drawing::Size(186, 22);
				 this->EditUndo->Text = L"撤消(&U)";
				 this->EditUndo->Click += gcnew System::EventHandler(this, &Form1::撤消UToolStripMenuItem_Click);
				 // 
				 // EditRedo
				 // 
				 this->EditRedo->Name = L"EditRedo";
				 this->EditRedo->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::Y));
				 this->EditRedo->Size = System::Drawing::Size(186, 22);
				 this->EditRedo->Text = L"重复(&R)";
				 this->EditRedo->Click += gcnew System::EventHandler(this, &Form1::重复RToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator3
				 // 
				 this->toolStripSeparator3->Name = L"toolStripSeparator3";
				 this->toolStripSeparator3->Size = System::Drawing::Size(183, 6);
				 // 
				 // EditCut
				 // 
				 this->EditCut->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"EditCut.Image")));
				 this->EditCut->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->EditCut->Name = L"EditCut";
				 this->EditCut->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::X));
				 this->EditCut->Size = System::Drawing::Size(186, 22);
				 this->EditCut->Text = L"剪切(&T)";
				 this->EditCut->Click += gcnew System::EventHandler(this, &Form1::剪切TToolStripMenuItem_Click);
				 // 
				 // EditCopy
				 // 
				 this->EditCopy->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"EditCopy.Image")));
				 this->EditCopy->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->EditCopy->Name = L"EditCopy";
				 this->EditCopy->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::C));
				 this->EditCopy->Size = System::Drawing::Size(186, 22);
				 this->EditCopy->Text = L"复制(&C)";
				 this->EditCopy->Click += gcnew System::EventHandler(this, &Form1::复制CToolStripMenuItem_Click);
				 // 
				 // EditPaste
				 // 
				 this->EditPaste->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"EditPaste.Image")));
				 this->EditPaste->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->EditPaste->Name = L"EditPaste";
				 this->EditPaste->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::V));
				 this->EditPaste->Size = System::Drawing::Size(186, 22);
				 this->EditPaste->Text = L"粘贴(&P)";
				 this->EditPaste->Click += gcnew System::EventHandler(this, &Form1::粘贴PToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator4
				 // 
				 this->toolStripSeparator4->Name = L"toolStripSeparator4";
				 this->toolStripSeparator4->Size = System::Drawing::Size(183, 6);
				 // 
				 // 查找FToolStripMenuItem
				 // 
				 this->查找FToolStripMenuItem->Name = L"查找FToolStripMenuItem";
				 this->查找FToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F3;
				 this->查找FToolStripMenuItem->Size = System::Drawing::Size(186, 22);
				 this->查找FToolStripMenuItem->Text = L"查找(&F)";
				 this->查找FToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::toolStripSplitButton2_ButtonClick);
				 // 
				 // EditSelectAll
				 // 
				 this->EditSelectAll->Name = L"EditSelectAll";
				 this->EditSelectAll->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::A));
				 this->EditSelectAll->Size = System::Drawing::Size(186, 22);
				 this->EditSelectAll->Text = L"全选(&A)";
				 this->EditSelectAll->Click += gcnew System::EventHandler(this, &Form1::EditSelectAll_Click);
				 // 
				 // toolStripSeparator8
				 // 
				 this->toolStripSeparator8->Name = L"toolStripSeparator8";
				 this->toolStripSeparator8->Size = System::Drawing::Size(183, 6);
				 // 
				 // toolStripMenuItem6
				 // 
				 this->toolStripMenuItem6->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripMenuItem6.Image")));
				 this->toolStripMenuItem6->Name = L"toolStripMenuItem6";
				 this->toolStripMenuItem6->ShortcutKeys = System::Windows::Forms::Keys::F5;
				 this->toolStripMenuItem6->Size = System::Drawing::Size(186, 22);
				 this->toolStripMenuItem6->Text = L"刷新语法高亮(&R)";
				 this->toolStripMenuItem6->Click += gcnew System::EventHandler(this, &Form1::刷新语法高亮ToolStripMenuItem_Click);
				 // 
				 // ToolMenu
				 // 
				 this->ToolMenu->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->とある脚本の撰写指南ToolStripMenuItem, 
					 this->toolStripSeparator10, this->炮姐求交往AToolStripMenuItem});
				 this->ToolMenu->Name = L"ToolMenu";
				 this->ToolMenu->Size = System::Drawing::Size(81, 20);
				 this->ToolMenu->Text = L"幻想御手(&T)";
				 // 
				 // とある脚本の撰写指南ToolStripMenuItem
				 // 
				 this->とある脚本の撰写指南ToolStripMenuItem->ForeColor = System::Drawing::Color::Blue;
				 this->とある脚本の撰写指南ToolStripMenuItem->Name = L"とある脚本の撰写指南ToolStripMenuItem";
				 this->とある脚本の撰写指南ToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F1;
				 this->とある脚本の撰写指南ToolStripMenuItem->Size = System::Drawing::Size(234, 22);
				 this->とある脚本の撰写指南ToolStripMenuItem->Text = L"とある脚本の撰写指南(&G)";
				 this->とある脚本の撰写指南ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::toolStripButton4_Click);
				 // 
				 // toolStripSeparator10
				 // 
				 this->toolStripSeparator10->Name = L"toolStripSeparator10";
				 this->toolStripSeparator10->Size = System::Drawing::Size(231, 6);
				 // 
				 // 炮姐求交往AToolStripMenuItem
				 // 
				 this->炮姐求交往AToolStripMenuItem->Font = (gcnew System::Drawing::Font(L"Tahoma", 8.25F, System::Drawing::FontStyle::Strikeout));
				 this->炮姐求交往AToolStripMenuItem->Name = L"炮姐求交往AToolStripMenuItem";
				 this->炮姐求交往AToolStripMenuItem->Size = System::Drawing::Size(234, 22);
				 this->炮姐求交往AToolStripMenuItem->Text = L"炮姐求交往(&A)";
				 // 
				 // statusStrip1
				 // 
				 this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->toolStripStatusLabel1, 
					 this->toolStripStatusLabel2});
				 this->statusStrip1->Location = System::Drawing::Point(0, 473);
				 this->statusStrip1->Name = L"statusStrip1";
				 this->statusStrip1->Size = System::Drawing::Size(705, 22);
				 this->statusStrip1->TabIndex = 1;
				 this->statusStrip1->Text = L"statusStrip1";
				 // 
				 // toolStripStatusLabel1
				 // 
				 this->toolStripStatusLabel1->BorderSides = System::Windows::Forms::ToolStripStatusLabelBorderSides::Right;
				 this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1";
				 this->toolStripStatusLabel1->Size = System::Drawing::Size(631, 17);
				 this->toolStripStatusLabel1->Spring = true;
				 this->toolStripStatusLabel1->Text = L"文件路径:(空)";
				 this->toolStripStatusLabel1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
				 // 
				 // toolStripStatusLabel2
				 // 
				 this->toolStripStatusLabel2->ForeColor = System::Drawing::Color::Red;
				 this->toolStripStatusLabel2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripStatusLabel2.Image")));
				 this->toolStripStatusLabel2->Name = L"toolStripStatusLabel2";
				 this->toolStripStatusLabel2->Size = System::Drawing::Size(59, 17);
				 this->toolStripStatusLabel2->Text = L"已修改";
				 // 
				 // toolStrip1
				 // 
				 this->toolStrip1->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
				 this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(16) {this->toolStripLabel2, 
					 this->toolStripSeparator12, this->新建NToolStripButton, this->打开OToolStripButton, this->保存SToolStripButton, this->toolStripSeparator5, 
					 this->剪切UToolStripButton, this->复制CToolStripButton, this->粘贴PToolStripButton, this->toolStripSeparator6, this->toolStripButton1, 
					 this->toolStripButton2, this->toolStripSeparator1, this->toolStripTextBox2, this->toolStripSplitButton2, this->toolStripSplitButton1});
				 this->toolStrip1->LayoutStyle = System::Windows::Forms::ToolStripLayoutStyle::HorizontalStackWithOverflow;
				 this->toolStrip1->Location = System::Drawing::Point(0, 24);
				 this->toolStrip1->Name = L"toolStrip1";
				 this->toolStrip1->Size = System::Drawing::Size(705, 25);
				 this->toolStrip1->TabIndex = 2;
				 this->toolStrip1->Text = L"toolStrip1";
				 // 
				 // toolStripLabel2
				 // 
				 this->toolStripLabel2->Name = L"toolStripLabel2";
				 this->toolStripLabel2->Size = System::Drawing::Size(43, 22);
				 this->toolStripLabel2->Text = L"编辑栏";
				 // 
				 // toolStripSeparator12
				 // 
				 this->toolStripSeparator12->Name = L"toolStripSeparator12";
				 this->toolStripSeparator12->Size = System::Drawing::Size(6, 25);
				 // 
				 // 新建NToolStripButton
				 // 
				 this->新建NToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->新建NToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"新建NToolStripButton.Image")));
				 this->新建NToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->新建NToolStripButton->Name = L"新建NToolStripButton";
				 this->新建NToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->新建NToolStripButton->Text = L"新建(&N)";
				 this->新建NToolStripButton->Click += gcnew System::EventHandler(this, &Form1::FileNew_Click);
				 // 
				 // 打开OToolStripButton
				 // 
				 this->打开OToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->打开OToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"打开OToolStripButton.Image")));
				 this->打开OToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->打开OToolStripButton->Name = L"打开OToolStripButton";
				 this->打开OToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->打开OToolStripButton->Text = L"打开(&O)";
				 this->打开OToolStripButton->Click += gcnew System::EventHandler(this, &Form1::打开OToolStripMenuItem1_Click);
				 // 
				 // 保存SToolStripButton
				 // 
				 this->保存SToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->保存SToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"保存SToolStripButton.Image")));
				 this->保存SToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->保存SToolStripButton->Name = L"保存SToolStripButton";
				 this->保存SToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->保存SToolStripButton->Text = L"保存(&S)";
				 this->保存SToolStripButton->Click += gcnew System::EventHandler(this, &Form1::保存SToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator5
				 // 
				 this->toolStripSeparator5->Name = L"toolStripSeparator5";
				 this->toolStripSeparator5->Size = System::Drawing::Size(6, 25);
				 // 
				 // 剪切UToolStripButton
				 // 
				 this->剪切UToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->剪切UToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"剪切UToolStripButton.Image")));
				 this->剪切UToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->剪切UToolStripButton->Name = L"剪切UToolStripButton";
				 this->剪切UToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->剪切UToolStripButton->Text = L"剪切(&U)";
				 this->剪切UToolStripButton->Click += gcnew System::EventHandler(this, &Form1::剪切TToolStripMenuItem_Click);
				 // 
				 // 复制CToolStripButton
				 // 
				 this->复制CToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->复制CToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"复制CToolStripButton.Image")));
				 this->复制CToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->复制CToolStripButton->Name = L"复制CToolStripButton";
				 this->复制CToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->复制CToolStripButton->Text = L"复制(&C)";
				 this->复制CToolStripButton->Click += gcnew System::EventHandler(this, &Form1::复制CToolStripMenuItem_Click);
				 // 
				 // 粘贴PToolStripButton
				 // 
				 this->粘贴PToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->粘贴PToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"粘贴PToolStripButton.Image")));
				 this->粘贴PToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->粘贴PToolStripButton->Name = L"粘贴PToolStripButton";
				 this->粘贴PToolStripButton->Size = System::Drawing::Size(23, 22);
				 this->粘贴PToolStripButton->Text = L"粘贴(&P)";
				 this->粘贴PToolStripButton->Click += gcnew System::EventHandler(this, &Form1::粘贴PToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator6
				 // 
				 this->toolStripSeparator6->Name = L"toolStripSeparator6";
				 this->toolStripSeparator6->Size = System::Drawing::Size(6, 25);
				 // 
				 // toolStripButton1
				 // 
				 this->toolStripButton1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripButton1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton1.Image")));
				 this->toolStripButton1->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripButton1->Name = L"toolStripButton1";
				 this->toolStripButton1->Size = System::Drawing::Size(23, 22);
				 this->toolStripButton1->Text = L"toolStripButton1";
				 this->toolStripButton1->ToolTipText = L"撤销";
				 this->toolStripButton1->Click += gcnew System::EventHandler(this, &Form1::撤消UToolStripMenuItem_Click);
				 // 
				 // toolStripButton2
				 // 
				 this->toolStripButton2->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripButton2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton2.Image")));
				 this->toolStripButton2->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripButton2->Name = L"toolStripButton2";
				 this->toolStripButton2->Size = System::Drawing::Size(23, 22);
				 this->toolStripButton2->Text = L"toolStripButton2";
				 this->toolStripButton2->ToolTipText = L"重复";
				 this->toolStripButton2->Click += gcnew System::EventHandler(this, &Form1::重复RToolStripMenuItem1_Click);
				 // 
				 // toolStripSeparator1
				 // 
				 this->toolStripSeparator1->Name = L"toolStripSeparator1";
				 this->toolStripSeparator1->Size = System::Drawing::Size(6, 25);
				 // 
				 // toolStripTextBox2
				 // 
				 this->toolStripTextBox2->AutoCompleteMode = System::Windows::Forms::AutoCompleteMode::SuggestAppend;
				 this->toolStripTextBox2->AutoCompleteSource = System::Windows::Forms::AutoCompleteSource::CustomSource;
				 this->toolStripTextBox2->Name = L"toolStripTextBox2";
				 this->toolStripTextBox2->Size = System::Drawing::Size(100, 25);
				 this->toolStripTextBox2->KeyUp += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::toolStripTextBox2_KeyUp);
				 this->toolStripTextBox2->Click += gcnew System::EventHandler(this, &Form1::toolStripTextBox2_Click);
				 // 
				 // toolStripSplitButton2
				 // 
				 this->toolStripSplitButton2->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripSplitButton2->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->大小写匹配ToolStripMenuItem, 
					 this->全字匹配ToolStripMenuItem, this->下划线标亮ToolStripMenuItem, this->toolStripMenuItem8, this->替换ToolStripMenuItem, this->toolStripTextBox3});
				 this->toolStripSplitButton2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripSplitButton2.Image")));
				 this->toolStripSplitButton2->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripSplitButton2->Name = L"toolStripSplitButton2";
				 this->toolStripSplitButton2->Size = System::Drawing::Size(32, 22);
				 this->toolStripSplitButton2->Text = L"toolStripSplitButton2";
				 this->toolStripSplitButton2->ButtonClick += gcnew System::EventHandler(this, &Form1::toolStripSplitButton2_ButtonClick);
				 // 
				 // 大小写匹配ToolStripMenuItem
				 // 
				 this->大小写匹配ToolStripMenuItem->CheckOnClick = true;
				 this->大小写匹配ToolStripMenuItem->Name = L"大小写匹配ToolStripMenuItem";
				 this->大小写匹配ToolStripMenuItem->Size = System::Drawing::Size(160, 22);
				 this->大小写匹配ToolStripMenuItem->Text = L"大小写匹配";
				 // 
				 // 全字匹配ToolStripMenuItem
				 // 
				 this->全字匹配ToolStripMenuItem->CheckOnClick = true;
				 this->全字匹配ToolStripMenuItem->Name = L"全字匹配ToolStripMenuItem";
				 this->全字匹配ToolStripMenuItem->Size = System::Drawing::Size(160, 22);
				 this->全字匹配ToolStripMenuItem->Text = L"全字匹配";
				 // 
				 // 下划线标亮ToolStripMenuItem
				 // 
				 this->下划线标亮ToolStripMenuItem->CheckOnClick = true;
				 this->下划线标亮ToolStripMenuItem->Name = L"下划线标亮ToolStripMenuItem";
				 this->下划线标亮ToolStripMenuItem->Size = System::Drawing::Size(160, 22);
				 this->下划线标亮ToolStripMenuItem->Text = L"下划线标亮";
				 // 
				 // toolStripMenuItem8
				 // 
				 this->toolStripMenuItem8->Name = L"toolStripMenuItem8";
				 this->toolStripMenuItem8->Size = System::Drawing::Size(157, 6);
				 // 
				 // 替换ToolStripMenuItem
				 // 
				 this->替换ToolStripMenuItem->CheckOnClick = true;
				 this->替换ToolStripMenuItem->Name = L"替换ToolStripMenuItem";
				 this->替换ToolStripMenuItem->Size = System::Drawing::Size(160, 22);
				 this->替换ToolStripMenuItem->Text = L"查找并替换";
				 this->替换ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::替换ToolStripMenuItem_Click);
				 // 
				 // toolStripTextBox3
				 // 
				 this->toolStripTextBox3->Enabled = false;
				 this->toolStripTextBox3->Name = L"toolStripTextBox3";
				 this->toolStripTextBox3->Size = System::Drawing::Size(100, 21);
				 // 
				 // toolStripSplitButton1
				 // 
				 this->toolStripSplitButton1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripSplitButton1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->lUA保留字ToolStripMenuItem, 
					 this->lUA注释ToolStripMenuItem, this->lUA字符串ToolStripMenuItem, this->toolStripMenuItem7, this->fS脚本全局常量ToolStripMenuItem, this->fS类型常量ToolStripMenuItem, 
					 this->fS函数ToolStripMenuItem});
				 this->toolStripSplitButton1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripSplitButton1.Image")));
				 this->toolStripSplitButton1->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripSplitButton1->Name = L"toolStripSplitButton1";
				 this->toolStripSplitButton1->Size = System::Drawing::Size(32, 22);
				 this->toolStripSplitButton1->Text = L"toolStripSplitButton1";
				 this->toolStripSplitButton1->ToolTipText = L"刷新语法高亮";
				 this->toolStripSplitButton1->ButtonClick += gcnew System::EventHandler(this, &Form1::刷新语法高亮ToolStripMenuItem_Click);
				 // 
				 // lUA保留字ToolStripMenuItem
				 // 
				 this->lUA保留字ToolStripMenuItem->BackColor = System::Drawing::Color::Blue;
				 this->lUA保留字ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->lUA保留字ToolStripMenuItem->Name = L"lUA保留字ToolStripMenuItem";
				 this->lUA保留字ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->lUA保留字ToolStripMenuItem->Text = L"LUA保留字颜色";
				 this->lUA保留字ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::lUA保留字ToolStripMenuItem_Click);
				 // 
				 // lUA注释ToolStripMenuItem
				 // 
				 this->lUA注释ToolStripMenuItem->BackColor = System::Drawing::Color::DarkGray;
				 this->lUA注释ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->lUA注释ToolStripMenuItem->Name = L"lUA注释ToolStripMenuItem";
				 this->lUA注释ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->lUA注释ToolStripMenuItem->Text = L"LUA注释";
				 // 
				 // lUA字符串ToolStripMenuItem
				 // 
				 this->lUA字符串ToolStripMenuItem->BackColor = System::Drawing::Color::Red;
				 this->lUA字符串ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->lUA字符串ToolStripMenuItem->Name = L"lUA字符串ToolStripMenuItem";
				 this->lUA字符串ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->lUA字符串ToolStripMenuItem->Text = L"LUA字符串";
				 // 
				 // toolStripMenuItem7
				 // 
				 this->toolStripMenuItem7->Name = L"toolStripMenuItem7";
				 this->toolStripMenuItem7->Size = System::Drawing::Size(156, 6);
				 // 
				 // fS脚本全局常量ToolStripMenuItem
				 // 
				 this->fS脚本全局常量ToolStripMenuItem->BackColor = System::Drawing::Color::OliveDrab;
				 this->fS脚本全局常量ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->fS脚本全局常量ToolStripMenuItem->Name = L"fS脚本全局常量ToolStripMenuItem";
				 this->fS脚本全局常量ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->fS脚本全局常量ToolStripMenuItem->Text = L"FS全局常量";
				 // 
				 // fS类型常量ToolStripMenuItem
				 // 
				 this->fS类型常量ToolStripMenuItem->BackColor = System::Drawing::Color::MediumPurple;
				 this->fS类型常量ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->fS类型常量ToolStripMenuItem->Name = L"fS类型常量ToolStripMenuItem";
				 this->fS类型常量ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->fS类型常量ToolStripMenuItem->Text = L"FS类型常量";
				 // 
				 // fS函数ToolStripMenuItem
				 // 
				 this->fS函数ToolStripMenuItem->BackColor = System::Drawing::Color::Orange;
				 this->fS函数ToolStripMenuItem->ForeColor = System::Drawing::Color::White;
				 this->fS函数ToolStripMenuItem->Name = L"fS函数ToolStripMenuItem";
				 this->fS函数ToolStripMenuItem->Size = System::Drawing::Size(159, 22);
				 this->fS函数ToolStripMenuItem->Text = L"FS函数";
				 // 
				 // splitContainer1
				 // 
				 this->splitContainer1->Dock = System::Windows::Forms::DockStyle::Fill;
				 this->splitContainer1->Location = System::Drawing::Point(0, 49);
				 this->splitContainer1->Name = L"splitContainer1";
				 // 
				 // splitContainer1.Panel1
				 // 
				 this->splitContainer1->Panel1->Controls->Add(this->splitContainer2);
				 // 
				 // splitContainer1.Panel2
				 // 
				 this->splitContainer1->Panel2->Controls->Add(this->label3);
				 this->splitContainer1->Panel2->Controls->Add(this->label2);
				 this->splitContainer1->Panel2->Controls->Add(this->label1);
				 this->splitContainer1->Panel2->Controls->Add(this->treeView1);
				 this->splitContainer1->Size = System::Drawing::Size(705, 424);
				 this->splitContainer1->SplitterDistance = 553;
				 this->splitContainer1->SplitterWidth = 2;
				 this->splitContainer1->TabIndex = 3;
				 // 
				 // splitContainer2
				 // 
				 this->splitContainer2->Dock = System::Windows::Forms::DockStyle::Fill;
				 this->splitContainer2->Location = System::Drawing::Point(0, 0);
				 this->splitContainer2->Name = L"splitContainer2";
				 this->splitContainer2->Orientation = System::Windows::Forms::Orientation::Horizontal;
				 // 
				 // splitContainer2.Panel1
				 // 
				 this->splitContainer2->Panel1->BackColor = System::Drawing::Color::White;
				 this->splitContainer2->Panel1->ContextMenuStrip = this->contextMenuStrip1;
				 this->splitContainer2->Panel1->Controls->Add(this->richTextBox2);
				 this->splitContainer2->Panel1->Controls->Add(this->vScrollBar1);
				 this->splitContainer2->Panel1->Controls->Add(this->listBox1);
				 this->splitContainer2->Panel1->Controls->Add(this->richTextBox1);
				 this->splitContainer2->Panel1->Cursor = System::Windows::Forms::Cursors::IBeam;
				 this->splitContainer2->Panel1->Click += gcnew System::EventHandler(this, &Form1::splitContainer2_Panel1_Click);
				 // 
				 // splitContainer2.Panel2
				 // 
				 this->splitContainer2->Panel2->BackColor = System::Drawing::Color::White;
				 this->splitContainer2->Panel2->Controls->Add(this->toolStrip2);
				 this->splitContainer2->Panel2->Controls->Add(this->richTextBox3);
				 this->splitContainer2->Size = System::Drawing::Size(553, 424);
				 this->splitContainer2->SplitterDistance = 286;
				 this->splitContainer2->SplitterWidth = 2;
				 this->splitContainer2->TabIndex = 4;
				 // 
				 // contextMenuStrip1
				 // 
				 this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->toolStripMenuItem1, 
					 this->toolStripMenuItem2, this->toolStripMenuItem3, this->toolStripSeparator7, this->toolStripMenuItem4, this->toolStripMenuItem5, 
					 this->刷新语法高亮ToolStripMenuItem});
				 this->contextMenuStrip1->Name = L"contextMenuStrip1";
				 this->contextMenuStrip1->Size = System::Drawing::Size(155, 126);
				 // 
				 // toolStripMenuItem1
				 // 
				 this->toolStripMenuItem1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripMenuItem1.Image")));
				 this->toolStripMenuItem1->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripMenuItem1->Name = L"toolStripMenuItem1";
				 this->toolStripMenuItem1->ShowShortcutKeys = false;
				 this->toolStripMenuItem1->Size = System::Drawing::Size(154, 22);
				 this->toolStripMenuItem1->Text = L"剪切(&T)";
				 // 
				 // toolStripMenuItem2
				 // 
				 this->toolStripMenuItem2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripMenuItem2.Image")));
				 this->toolStripMenuItem2->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripMenuItem2->Name = L"toolStripMenuItem2";
				 this->toolStripMenuItem2->ShowShortcutKeys = false;
				 this->toolStripMenuItem2->Size = System::Drawing::Size(154, 22);
				 this->toolStripMenuItem2->Text = L"复制(&C)";
				 // 
				 // toolStripMenuItem3
				 // 
				 this->toolStripMenuItem3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripMenuItem3.Image")));
				 this->toolStripMenuItem3->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripMenuItem3->Name = L"toolStripMenuItem3";
				 this->toolStripMenuItem3->ShowShortcutKeys = false;
				 this->toolStripMenuItem3->Size = System::Drawing::Size(154, 22);
				 this->toolStripMenuItem3->Text = L"粘贴(&P)";
				 // 
				 // toolStripSeparator7
				 // 
				 this->toolStripSeparator7->Name = L"toolStripSeparator7";
				 this->toolStripSeparator7->Size = System::Drawing::Size(151, 6);
				 // 
				 // toolStripMenuItem4
				 // 
				 this->toolStripMenuItem4->Name = L"toolStripMenuItem4";
				 this->toolStripMenuItem4->ShowShortcutKeys = false;
				 this->toolStripMenuItem4->Size = System::Drawing::Size(154, 22);
				 this->toolStripMenuItem4->Text = L"全选(&A)";
				 // 
				 // toolStripMenuItem5
				 // 
				 this->toolStripMenuItem5->Name = L"toolStripMenuItem5";
				 this->toolStripMenuItem5->Size = System::Drawing::Size(151, 6);
				 // 
				 // 刷新语法高亮ToolStripMenuItem
				 // 
				 this->刷新语法高亮ToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"刷新语法高亮ToolStripMenuItem.Image")));
				 this->刷新语法高亮ToolStripMenuItem->Name = L"刷新语法高亮ToolStripMenuItem";
				 this->刷新语法高亮ToolStripMenuItem->ShowShortcutKeys = false;
				 this->刷新语法高亮ToolStripMenuItem->Size = System::Drawing::Size(154, 22);
				 this->刷新语法高亮ToolStripMenuItem->Text = L"刷新语法高亮(&R)";
				 this->刷新语法高亮ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::刷新语法高亮ToolStripMenuItem_Click);
				 // 
				 // richTextBox2
				 // 
				 this->richTextBox2->Font = (gcnew System::Drawing::Font(L"Arial", 10, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
					 static_cast<System::Byte>(134)));
				 this->richTextBox2->Location = System::Drawing::Point(311, 17);
				 this->richTextBox2->Name = L"richTextBox2";
				 this->richTextBox2->Size = System::Drawing::Size(199, 217);
				 this->richTextBox2->TabIndex = 4;
				 this->richTextBox2->Text = L"";
				 this->richTextBox2->Visible = false;
				 this->richTextBox2->WordWrap = false;
				 // 
				 // vScrollBar1
				 // 
				 this->vScrollBar1->Cursor = System::Windows::Forms::Cursors::SizeNS;
				 this->vScrollBar1->Dock = System::Windows::Forms::DockStyle::Right;
				 this->vScrollBar1->Location = System::Drawing::Point(534, 0);
				 this->vScrollBar1->Name = L"vScrollBar1";
				 this->vScrollBar1->Size = System::Drawing::Size(19, 286);
				 this->vScrollBar1->TabIndex = 2;
				 this->vScrollBar1->ValueChanged += gcnew System::EventHandler(this, &Form1::vScrollBar1_ValueChanged);
				 this->vScrollBar1->Scroll += gcnew System::Windows::Forms::ScrollEventHandler(this, &Form1::vScrollBar1_Scroll);
				 // 
				 // listBox1
				 // 
				 this->listBox1->BackColor = System::Drawing::Color::White;
				 this->listBox1->BorderStyle = System::Windows::Forms::BorderStyle::None;
				 this->listBox1->ContextMenuStrip = this->contextMenuStrip1;
				 this->listBox1->Cursor = System::Windows::Forms::Cursors::Cross;
				 this->listBox1->Font = (gcnew System::Drawing::Font(L"Tahoma", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
					 static_cast<System::Byte>(0)));
				 this->listBox1->ForeColor = System::Drawing::Color::Silver;
				 this->listBox1->FormattingEnabled = true;
				 this->listBox1->ItemHeight = 16;
				 this->listBox1->Location = System::Drawing::Point(3, 2);
				 this->listBox1->Name = L"listBox1";
				 this->listBox1->SelectionMode = System::Windows::Forms::SelectionMode::MultiExtended;
				 this->listBox1->Size = System::Drawing::Size(37, 16);
				 this->listBox1->TabIndex = 1;
				 this->listBox1->TabStop = false;
				 this->listBox1->UseTabStops = false;
				 this->listBox1->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::listBox1_MouseUp);
				 // 
				 // richTextBox1
				 // 
				 this->richTextBox1->AcceptsTab = true;
				 this->richTextBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->richTextBox1->BorderStyle = System::Windows::Forms::BorderStyle::None;
				 this->richTextBox1->ContextMenuStrip = this->contextMenuStrip1;
				 this->richTextBox1->DetectUrls = false;
				 this->richTextBox1->Font = (gcnew System::Drawing::Font(L"Arial", 10, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
					 static_cast<System::Byte>(0)));
				 this->richTextBox1->HideSelection = false;
				 this->richTextBox1->ImeMode = System::Windows::Forms::ImeMode::Disable;
				 this->richTextBox1->Location = System::Drawing::Point(44, 2);
				 this->richTextBox1->Margin = System::Windows::Forms::Padding(1);
				 this->richTextBox1->Name = L"richTextBox1";
				 this->richTextBox1->ScrollBars = System::Windows::Forms::RichTextBoxScrollBars::None;
				 this->richTextBox1->Size = System::Drawing::Size(489, 15);
				 this->richTextBox1->TabIndex = 0;
				 this->richTextBox1->Text = L"";
				 this->richTextBox1->WordWrap = false;
				 this->richTextBox1->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::richTextBox1_KeyDown_1);
				 this->richTextBox1->VScroll += gcnew System::EventHandler(this, &Form1::richTextBox1_VScroll);
				 this->richTextBox1->MouseWheel += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::richTextBox1_MouseWheel);
				 this->richTextBox1->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::richTextBox1_MouseUp);
				 this->richTextBox1->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::richTextBox1_KeyPress_1);
				 this->richTextBox1->KeyUp += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::richTextBox1_KeyUp_1);
				 this->richTextBox1->TextChanged += gcnew System::EventHandler(this, &Form1::richTextBox1_TextChanged);
				 // 
				 // toolStrip2
				 // 
				 this->toolStrip2->Dock = System::Windows::Forms::DockStyle::Bottom;
				 this->toolStrip2->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
				 this->toolStrip2->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(6) {this->toolStripLabel1, 
					 this->toolStripSeparator11, this->toolStripTextBox1, this->toolStripButton3, this->toolStripSeparator9, this->toolStripButton4});
				 this->toolStrip2->Location = System::Drawing::Point(0, 111);
				 this->toolStrip2->Name = L"toolStrip2";
				 this->toolStrip2->Size = System::Drawing::Size(553, 25);
				 this->toolStrip2->TabIndex = 2;
				 this->toolStrip2->Text = L"toolStrip2";
				 // 
				 // toolStripLabel1
				 // 
				 this->toolStripLabel1->Name = L"toolStripLabel1";
				 this->toolStripLabel1->Size = System::Drawing::Size(43, 22);
				 this->toolStripLabel1->Text = L"帮助栏";
				 this->toolStripLabel1->Click += gcnew System::EventHandler(this, &Form1::toolStripLabel1_Click);
				 // 
				 // toolStripSeparator11
				 // 
				 this->toolStripSeparator11->Name = L"toolStripSeparator11";
				 this->toolStripSeparator11->Size = System::Drawing::Size(6, 25);
				 // 
				 // toolStripTextBox1
				 // 
				 this->toolStripTextBox1->AutoCompleteCustomSource->AddRange(gcnew cli::array< System::String^  >(18) {L"newUnit", L"updateUnit", 
					 L"updateGroup", L"newGEffect", L"usePanel", L"createPanel", L"createWidget", L"updateCamera", L"updateMapModel", L"debug", L"aiGoto", 
					 L"aiGoByWaypoint", L"gameControl", L"loadTexture", L"newBullet", L"pushBuffer", L"emptyBuffer", L"main"});
				 this->toolStripTextBox1->AutoCompleteMode = System::Windows::Forms::AutoCompleteMode::SuggestAppend;
				 this->toolStripTextBox1->AutoCompleteSource = System::Windows::Forms::AutoCompleteSource::CustomSource;
				 this->toolStripTextBox1->Name = L"toolStripTextBox1";
				 this->toolStripTextBox1->Size = System::Drawing::Size(100, 25);
				 this->toolStripTextBox1->Text = L"哔哩哔哩";
				 this->toolStripTextBox1->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::toolStripTextBox1_KeyPress);
				 this->toolStripTextBox1->KeyUp += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::toolStripTextBox1_KeyUp);
				 this->toolStripTextBox1->Click += gcnew System::EventHandler(this, &Form1::toolStripTextBox1_Click);
				 // 
				 // toolStripButton3
				 // 
				 this->toolStripButton3->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripButton3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton3.Image")));
				 this->toolStripButton3->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripButton3->Name = L"toolStripButton3";
				 this->toolStripButton3->Size = System::Drawing::Size(23, 22);
				 this->toolStripButton3->Text = L"toolStripButton3";
				 this->toolStripButton3->ToolTipText = L"查找";
				 this->toolStripButton3->Click += gcnew System::EventHandler(this, &Form1::toolStripButton3_Click);
				 // 
				 // toolStripSeparator9
				 // 
				 this->toolStripSeparator9->Name = L"toolStripSeparator9";
				 this->toolStripSeparator9->Size = System::Drawing::Size(6, 25);
				 // 
				 // toolStripButton4
				 // 
				 this->toolStripButton4->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
				 this->toolStripButton4->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"toolStripButton4.Image")));
				 this->toolStripButton4->ImageTransparentColor = System::Drawing::Color::Magenta;
				 this->toolStripButton4->Name = L"toolStripButton4";
				 this->toolStripButton4->Size = System::Drawing::Size(23, 22);
				 this->toolStripButton4->Text = L"toolStripButton4";
				 this->toolStripButton4->ToolTipText = L"放大指南";
				 this->toolStripButton4->Click += gcnew System::EventHandler(this, &Form1::toolStripButton4_Click);
				 // 
				 // richTextBox3
				 // 
				 this->richTextBox3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
					 | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->richTextBox3->BackColor = System::Drawing::Color::White;
				 this->richTextBox3->BorderStyle = System::Windows::Forms::BorderStyle::None;
				 this->richTextBox3->Cursor = System::Windows::Forms::Cursors::Arrow;
				 this->richTextBox3->Location = System::Drawing::Point(0, 0);
				 this->richTextBox3->Margin = System::Windows::Forms::Padding(0);
				 this->richTextBox3->Name = L"richTextBox3";
				 this->richTextBox3->ReadOnly = true;
				 this->richTextBox3->Size = System::Drawing::Size(553, 111);
				 this->richTextBox3->TabIndex = 1;
				 this->richTextBox3->Text = L"";
				 // 
				 // label3
				 // 
				 this->label3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->label3->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label3.Image")));
				 this->label3->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
				 this->label3->Location = System::Drawing::Point(4, 405);
				 this->label3->Name = L"label3";
				 this->label3->RightToLeft = System::Windows::Forms::RightToLeft::Yes;
				 this->label3->Size = System::Drawing::Size(143, 19);
				 this->label3->TabIndex = 3;
				 this->label3->Text = L"字符串";
				 this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
				 // 
				 // label2
				 // 
				 this->label2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->label2->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label2.Image")));
				 this->label2->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
				 this->label2->Location = System::Drawing::Point(4, 386);
				 this->label2->Name = L"label2";
				 this->label2->RightToLeft = System::Windows::Forms::RightToLeft::Yes;
				 this->label2->Size = System::Drawing::Size(143, 19);
				 this->label2->TabIndex = 2;
				 this->label2->Text = L"布尔型";
				 this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
				 // 
				 // label1
				 // 
				 this->label1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->label1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label1.Image")));
				 this->label1->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
				 this->label1->Location = System::Drawing::Point(4, 367);
				 this->label1->Name = L"label1";
				 this->label1->RightToLeft = System::Windows::Forms::RightToLeft::Yes;
				 this->label1->Size = System::Drawing::Size(143, 19);
				 this->label1->TabIndex = 1;
				 this->label1->Text = L"数字";
				 this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
				 // 
				 // treeView1
				 // 
				 this->treeView1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
					 | System::Windows::Forms::AnchorStyles::Left) 
					 | System::Windows::Forms::AnchorStyles::Right));
				 this->treeView1->Cursor = System::Windows::Forms::Cursors::Default;
				 this->treeView1->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
					 static_cast<System::Byte>(134)));
				 this->treeView1->ImageIndex = 4;
				 this->treeView1->ImageList = this->imageList1;
				 this->treeView1->Location = System::Drawing::Point(1, 0);
				 this->treeView1->Name = L"treeView1";
				 treeNode1->ImageIndex = 5;
				 treeNode1->Name = L"节点0";
				 treeNode1->Tag = L"-1";
				 treeNode1->Text = L"输出缓存 ";
				 treeNode1->ToolTipText = L"pushBuffer()";
				 treeNode2->ImageIndex = 1;
				 treeNode2->Name = L"节点1";
				 treeNode2->Tag = L"8";
				 treeNode2->Text = L"新建单位";
				 treeNode2->ToolTipText = L"newUnit(name,group,unit,team,x,y,z,a)";
				 treeNode3->ImageIndex = 2;
				 treeNode3->Name = L"节点2";
				 treeNode3->Tag = L"-5";
				 treeNode3->Text = L"更新单位";
				 treeNode3->ToolTipText = L"updateUnit(name)";
				 treeNode4->ImageIndex = 7;
				 treeNode4->Name = L"节点4";
				 treeNode4->Text = L"单位名";
				 treeNode4->ToolTipText = L"name";
				 treeNode5->ImageIndex = 7;
				 treeNode5->Name = L"节点6";
				 treeNode5->Text = L"单位编组";
				 treeNode5->ToolTipText = L"group";
				 treeNode6->ImageIndex = 0;
				 treeNode6->Name = L"节点7";
				 treeNode6->Text = L"机型";
				 treeNode6->ToolTipText = L"unit";
				 treeNode7->ImageIndex = 0;
				 treeNode7->Name = L"节点8";
				 treeNode7->Text = L"阵营";
				 treeNode7->ToolTipText = L"team";
				 treeNode8->ImageIndex = 0;
				 treeNode8->Name = L"节点3";
				 treeNode8->Text = L"X坐标";
				 treeNode8->ToolTipText = L"x";
				 treeNode9->ImageIndex = 0;
				 treeNode9->Name = L"节点4";
				 treeNode9->Text = L"Y坐标";
				 treeNode9->ToolTipText = L"y";
				 treeNode10->ImageIndex = 0;
				 treeNode10->Name = L"节点5";
				 treeNode10->Text = L"Z坐标";
				 treeNode10->ToolTipText = L"z";
				 treeNode11->ImageIndex = 0;
				 treeNode11->Name = L"节点6";
				 treeNode11->Text = L"Z轴转向";
				 treeNode11->ToolTipText = L"a";
				 treeNode12->ImageIndex = 0;
				 treeNode12->Name = L"节点7";
				 treeNode12->Text = L"X轴转向";
				 treeNode12->ToolTipText = L"b";
				 treeNode13->ImageIndex = 0;
				 treeNode13->Name = L"节点8";
				 treeNode13->Text = L"Y周转向";
				 treeNode13->ToolTipText = L"c";
				 treeNode14->ImageIndex = 0;
				 treeNode14->Name = L"节点1";
				 treeNode14->Text = L"X轴惯性分量";
				 treeNode14->ToolTipText = L"sx";
				 treeNode15->ImageIndex = 0;
				 treeNode15->Name = L"节点2";
				 treeNode15->Text = L"Y轴惯性分量";
				 treeNode15->ToolTipText = L"sy";
				 treeNode16->ImageIndex = 0;
				 treeNode16->Name = L"节点3";
				 treeNode16->Text = L"Z轴惯性分量";
				 treeNode16->ToolTipText = L"sz";
				 treeNode17->ImageIndex = 0;
				 treeNode17->Name = L"节点4";
				 treeNode17->Text = L"Z轴转向惯性分量";
				 treeNode17->ToolTipText = L"sa";
				 treeNode18->ImageIndex = 0;
				 treeNode18->Name = L"节点5";
				 treeNode18->Text = L"X轴转向惯性分量";
				 treeNode18->ToolTipText = L"sb";
				 treeNode19->ImageIndex = 0;
				 treeNode19->Name = L"节点6";
				 treeNode19->Text = L"耐久度";
				 treeNode19->ToolTipText = L"durability";
				 treeNode20->ImageIndex = 0;
				 treeNode20->Name = L"节点7";
				 treeNode20->Text = L"前进、后退速度";
				 treeNode20->ToolTipText = L"speed ";
				 treeNode21->ImageIndex = 0;
				 treeNode21->Name = L"节点8";
				 treeNode21->Text = L"平移速度";
				 treeNode21->ToolTipText = L"strafespeed ";
				 treeNode22->ImageIndex = 0;
				 treeNode22->Name = L"节点9";
				 treeNode22->Text = L"转向速度";
				 treeNode22->ToolTipText = L"turnspeed ";
				 treeNode23->ImageIndex = 6;
				 treeNode23->Name = L"节点10";
				 treeNode23->Text = L"左转触发";
				 treeNode23->ToolTipText = L"lt";
				 treeNode24->ImageIndex = 6;
				 treeNode24->Name = L"节点11";
				 treeNode24->Text = L"右转触发";
				 treeNode24->ToolTipText = L"rt";
				 treeNode25->ImageIndex = 6;
				 treeNode25->Name = L"节点12";
				 treeNode25->Text = L"拉升触发";
				 treeNode25->ToolTipText = L"up";
				 treeNode26->ImageIndex = 6;
				 treeNode26->Name = L"节点13";
				 treeNode26->Text = L"压低触发";
				 treeNode26->ToolTipText = L"dn";
				 treeNode27->ImageIndex = 6;
				 treeNode27->Name = L"节点14";
				 treeNode27->Text = L"前进触发";
				 treeNode27->ToolTipText = L"fd";
				 treeNode28->ImageIndex = 6;
				 treeNode28->Name = L"节点15";
				 treeNode28->Text = L"后退触发";
				 treeNode28->ToolTipText = L"bk";
				 treeNode29->ImageIndex = 6;
				 treeNode29->Name = L"节点16";
				 treeNode29->Text = L"左平移触发";
				 treeNode29->ToolTipText = L"sl";
				 treeNode30->ImageIndex = 6;
				 treeNode30->Name = L"节点17";
				 treeNode30->Text = L"右平移触发";
				 treeNode30->ToolTipText = L"sr";
				 treeNode31->ImageIndex = 0;
				 treeNode31->Name = L"节点18";
				 treeNode31->Text = L"漂移量";
				 treeNode31->ToolTipText = L"draft";
				 treeNode32->ImageIndex = 0;
				 treeNode32->Name = L"节点19";
				 treeNode32->Text = L"翻转量";
				 treeNode32->ToolTipText = L"roll";
				 treeNode33->ImageIndex = 0;
				 treeNode33->Name = L"节点20";
				 treeNode33->Text = L"突进量";
				 treeNode33->ToolTipText = L"turbo";
				 treeNode34->ImageIndex = 0;
				 treeNode34->Name = L"节点21";
				 treeNode34->Text = L"伤害密度";
				 treeNode34->ToolTipText = L"damage";
				 treeNode35->ImageIndex = 0;
				 treeNode35->Name = L"节点22";
				 treeNode35->Text = L"目标单位";
				 treeNode35->ToolTipText = L"target";
				 treeNode36->ImageIndex = 6;
				 treeNode36->Name = L"节点23";
				 treeNode36->Text = L"启用单位AI";
				 treeNode36->ToolTipText = L"ai";
				 treeNode37->ImageIndex = 0;
				 treeNode37->Name = L"节点24";
				 treeNode37->Text = L"机体疲劳";
				 treeNode37->ToolTipText = L"weariness";
				 treeNode38->ImageIndex = 0;
				 treeNode38->Name = L"节点0";
				 treeNode38->Text = L"速度X分量";
				 treeNode38->ToolTipText = L"speedx";
				 treeNode39->ImageIndex = 0;
				 treeNode39->Name = L"节点1";
				 treeNode39->Text = L"速度Y分量";
				 treeNode39->ToolTipText = L"speedy";
				 treeNode40->ImageIndex = 0;
				 treeNode40->Name = L"节点2";
				 treeNode40->Text = L"速度Z分量";
				 treeNode40->ToolTipText = L"speedz";
				 treeNode41->ImageIndex = 0;
				 treeNode41->Name = L"节点3";
				 treeNode41->Text = L"小行星密度";
				 treeNode41->ToolTipText = L"asteroid";
				 treeNode42->ImageIndex = 0;
				 treeNode42->Name = L"节点4";
				 treeNode42->Text = L"裂缝密度";
				 treeNode42->ToolTipText = L"gap";
				 treeNode43->ImageIndex = 9;
				 treeNode43->Name = L"节点5";
				 treeNode43->Text = L"路径点列表";
				 treeNode43->ToolTipText = L"waypoint";
				 treeNode44->ImageIndex = 3;
				 treeNode44->Name = L"节点3";
				 treeNode44->Text = L"[单位属性]";
				 treeNode45->ImageIndex = 1;
				 treeNode45->Name = L"节点0";
				 treeNode45->Tag = L"11";
				 treeNode45->Text = L"新建图像效果";
				 treeNode45->ToolTipText = L"newGEffect(effect,x,y,z,dx,dy,dz)";
				 treeNode46->ImageIndex = 0;
				 treeNode46->Name = L"节点2";
				 treeNode46->Text = L"效果编号";
				 treeNode46->ToolTipText = L"effect";
				 treeNode47->ImageIndex = 0;
				 treeNode47->Name = L"节点3";
				 treeNode47->Text = L"X坐标";
				 treeNode47->ToolTipText = L"x";
				 treeNode48->ImageIndex = 0;
				 treeNode48->Name = L"节点4";
				 treeNode48->Text = L"Y坐标";
				 treeNode48->ToolTipText = L"y";
				 treeNode49->ImageIndex = 0;
				 treeNode49->Name = L"节点5";
				 treeNode49->Text = L"Z坐标";
				 treeNode49->ToolTipText = L"z";
				 treeNode50->ImageIndex = 0;
				 treeNode50->Name = L"节点6";
				 treeNode50->Text = L"X轴方向分量";
				 treeNode50->ToolTipText = L"dx";
				 treeNode51->ImageIndex = 0;
				 treeNode51->Name = L"节点7";
				 treeNode51->Text = L"Y轴方向分量";
				 treeNode51->ToolTipText = L"dy";
				 treeNode52->ImageIndex = 0;
				 treeNode52->Name = L"节点8";
				 treeNode52->Text = L"Z轴方向分量";
				 treeNode52->ToolTipText = L"dz";
				 treeNode53->ImageIndex = 3;
				 treeNode53->Name = L"节点1";
				 treeNode53->Text = L"[图像效果属性]";
				 treeNode54->ImageIndex = 8;
				 treeNode54->Name = L"节点9";
				 treeNode54->Tag = L"9";
				 treeNode54->Text = L"使用面板";
				 treeNode54->ToolTipText = L"usePanel(name,use)";
				 treeNode55->ImageIndex = 1;
				 treeNode55->Name = L"节点10";
				 treeNode55->Tag = L"12";
				 treeNode55->Text = L"创建面板";
				 treeNode55->ToolTipText = L"createPanel(name,x,y,z,w,h,caption)";
				 treeNode56->ImageIndex = 1;
				 treeNode56->Name = L"节点11";
				 treeNode56->Tag = L"13";
				 treeNode56->Text = L"创建控件";
				 treeNode56->ToolTipText = L"createWidget(widget,name,panel,x,y,z,w,h)";
				 treeNode57->ImageIndex = 7;
				 treeNode57->Name = L"节点13";
				 treeNode57->Text = L"面板名";
				 treeNode57->ToolTipText = L"name";
				 treeNode58->ImageIndex = 0;
				 treeNode58->Name = L"节点16";
				 treeNode58->Text = L"X坐标";
				 treeNode58->ToolTipText = L"x";
				 treeNode59->ImageIndex = 0;
				 treeNode59->Name = L"节点17";
				 treeNode59->Text = L"Y坐标";
				 treeNode59->ToolTipText = L"y";
				 treeNode60->ImageIndex = 0;
				 treeNode60->Name = L"节点18";
				 treeNode60->Text = L"Z坐标";
				 treeNode60->ToolTipText = L"z";
				 treeNode61->ImageIndex = 0;
				 treeNode61->Name = L"节点19";
				 treeNode61->Text = L"宽度";
				 treeNode61->ToolTipText = L"w";
				 treeNode62->ImageIndex = 0;
				 treeNode62->Name = L"节点20";
				 treeNode62->Text = L"高度";
				 treeNode62->ToolTipText = L"h";
				 treeNode63->ImageIndex = 7;
				 treeNode63->Name = L"节点21";
				 treeNode63->Text = L"标题文本";
				 treeNode63->ToolTipText = L"caption";
				 treeNode64->ImageIndex = 0;
				 treeNode64->Name = L"节点22";
				 treeNode64->Text = L"Z轴转向";
				 treeNode64->ToolTipText = L"a";
				 treeNode65->ImageIndex = 0;
				 treeNode65->Name = L"节点23";
				 treeNode65->Text = L"Y轴转向";
				 treeNode65->ToolTipText = L"b";
				 treeNode66->ImageIndex = 0;
				 treeNode66->Name = L"节点24";
				 treeNode66->Text = L"X轴转向";
				 treeNode66->ToolTipText = L"c";
				 treeNode67->ImageIndex = 6;
				 treeNode67->Name = L"节点25";
				 treeNode67->Text = L"接受鼠标事件";
				 treeNode67->ToolTipText = L"enabled";
				 treeNode68->ImageIndex = 6;
				 treeNode68->Name = L"节点26";
				 treeNode68->Text = L"可见";
				 treeNode68->ToolTipText = L"visible";
				 treeNode69->ImageIndex = 0;
				 treeNode69->Name = L"节点27";
				 treeNode69->Text = L"背景图像";
				 treeNode69->ToolTipText = L"texture";
				 treeNode70->ImageIndex = 0;
				 treeNode70->Name = L"节点28";
				 treeNode70->Text = L"颜色主题";
				 treeNode70->ToolTipText = L"color";
				 treeNode71->ImageIndex = 0;
				 treeNode71->Name = L"节点6";
				 treeNode71->Text = L"贴图颜色R值";
				 treeNode71->ToolTipText = L"texr";
				 treeNode72->ImageIndex = 0;
				 treeNode72->Name = L"节点7";
				 treeNode72->Text = L"贴图颜色G值";
				 treeNode72->ToolTipText = L"texg";
				 treeNode73->ImageIndex = 0;
				 treeNode73->Name = L"节点8";
				 treeNode73->Text = L"贴图颜色B值";
				 treeNode73->ToolTipText = L"texb";
				 treeNode74->ImageIndex = 0;
				 treeNode74->Name = L"节点9";
				 treeNode74->Text = L"贴图颜色A值";
				 treeNode74->ToolTipText = L"texa";
				 treeNode75->ImageIndex = 3;
				 treeNode75->Name = L"节点12";
				 treeNode75->Text = L"[面板属性]";
				 treeNode76->ImageIndex = 0;
				 treeNode76->Name = L"节点30";
				 treeNode76->Text = L"控件类型";
				 treeNode76->ToolTipText = L"widget";
				 treeNode77->ImageIndex = 7;
				 treeNode77->Name = L"节点31";
				 treeNode77->Text = L"控件名";
				 treeNode77->ToolTipText = L"name";
				 treeNode78->ImageIndex = 0;
				 treeNode78->Name = L"节点32";
				 treeNode78->Text = L"所属面板";
				 treeNode78->ToolTipText = L"panel";
				 treeNode79->ImageIndex = 0;
				 treeNode79->Name = L"节点33";
				 treeNode79->Text = L"X坐标";
				 treeNode79->ToolTipText = L"x";
				 treeNode80->ImageIndex = 0;
				 treeNode80->Name = L"节点34";
				 treeNode80->Text = L"Y坐标";
				 treeNode80->ToolTipText = L"y";
				 treeNode81->ImageIndex = 0;
				 treeNode81->Name = L"节点35";
				 treeNode81->Text = L"Z坐标";
				 treeNode81->ToolTipText = L"z";
				 treeNode82->ImageIndex = 0;
				 treeNode82->Name = L"节点36";
				 treeNode82->Text = L"宽度";
				 treeNode82->ToolTipText = L"w";
				 treeNode83->ImageIndex = 0;
				 treeNode83->Name = L"节点37";
				 treeNode83->Text = L"高度";
				 treeNode83->ToolTipText = L"h";
				 treeNode84->ImageIndex = 6;
				 treeNode84->Name = L"节点38";
				 treeNode84->Text = L"接受鼠标事件";
				 treeNode84->ToolTipText = L"enabled";
				 treeNode85->ImageIndex = 6;
				 treeNode85->Name = L"节点39";
				 treeNode85->Text = L"可见";
				 treeNode85->ToolTipText = L"visible";
				 treeNode86->ImageIndex = 0;
				 treeNode86->Name = L"节点40";
				 treeNode86->Text = L"颜色主题";
				 treeNode86->ToolTipText = L"color";
				 treeNode87->ImageIndex = 7;
				 treeNode87->Name = L"节点42";
				 treeNode87->Text = L"标题文本";
				 treeNode87->ToolTipText = L"caption";
				 treeNode88->ImageIndex = 0;
				 treeNode88->Name = L"节点43";
				 treeNode88->Text = L"背景图像";
				 treeNode88->ToolTipText = L"texture";
				 treeNode89->ImageIndex = 0;
				 treeNode89->Name = L"节点44";
				 treeNode89->Text = L"显示模型";
				 treeNode89->ToolTipText = L"drawmodel";
				 treeNode90->ImageIndex = 0;
				 treeNode90->Name = L"节点45";
				 treeNode90->Text = L"显示单位";
				 treeNode90->ToolTipText = L"drawunit";
				 treeNode91->ImageIndex = 0;
				 treeNode91->Name = L"节点10";
				 treeNode91->Text = L"贴图颜色R值";
				 treeNode91->ToolTipText = L"texr";
				 treeNode92->ImageIndex = 0;
				 treeNode92->Name = L"节点11";
				 treeNode92->Text = L"贴图颜色G值";
				 treeNode92->ToolTipText = L"texg";
				 treeNode93->ImageIndex = 0;
				 treeNode93->Name = L"节点12";
				 treeNode93->Text = L"贴图颜色B值";
				 treeNode93->ToolTipText = L"texb";
				 treeNode94->ImageIndex = 0;
				 treeNode94->Name = L"节点13";
				 treeNode94->Text = L"贴图颜色A值";
				 treeNode94->ToolTipText = L"texa";
				 treeNode95->ImageIndex = 3;
				 treeNode95->Name = L"节点41";
				 treeNode95->Text = L"[按钮属性]";
				 treeNode96->ImageIndex = 7;
				 treeNode96->Name = L"节点47";
				 treeNode96->Text = L"标题文本";
				 treeNode96->ToolTipText = L"caption";
				 treeNode97->ImageIndex = 6;
				 treeNode97->Name = L"节点48";
				 treeNode97->Text = L"选中状态";
				 treeNode97->ToolTipText = L"checked";
				 treeNode98->ImageIndex = 3;
				 treeNode98->Name = L"节点46";
				 treeNode98->Text = L"[复选框属性]";
				 treeNode99->ImageIndex = 7;
				 treeNode99->Name = L"节点50";
				 treeNode99->Text = L"标题文本";
				 treeNode99->ToolTipText = L"caption";
				 treeNode100->ImageIndex = 6;
				 treeNode100->Name = L"节点51";
				 treeNode100->Text = L"选中状态";
				 treeNode100->ToolTipText = L"checked";
				 treeNode101->ImageIndex = 0;
				 treeNode101->Name = L"节点52";
				 treeNode101->Text = L"分组";
				 treeNode101->ToolTipText = L"group";
				 treeNode102->ImageIndex = 3;
				 treeNode102->Name = L"节点49";
				 treeNode102->Text = L"[单选框属性]";
				 treeNode103->ImageIndex = 7;
				 treeNode103->Name = L"节点54";
				 treeNode103->Text = L"标题文本";
				 treeNode103->ToolTipText = L"caption";
				 treeNode104->ImageIndex = 6;
				 treeNode104->Name = L"节点55";
				 treeNode104->Text = L"大字体";
				 treeNode104->ToolTipText = L"largefont";
				 treeNode105->ImageIndex = 0;
				 treeNode105->Name = L"节点56";
				 treeNode105->Text = L"背景图像";
				 treeNode105->ToolTipText = L"texture";
				 treeNode106->ImageIndex = 0;
				 treeNode106->Name = L"节点14";
				 treeNode106->Text = L"贴图颜色R值";
				 treeNode106->ToolTipText = L"texr";
				 treeNode107->ImageIndex = 0;
				 treeNode107->Name = L"节点15";
				 treeNode107->Text = L"贴图颜色G值";
				 treeNode107->ToolTipText = L"texg";
				 treeNode108->ImageIndex = 0;
				 treeNode108->Name = L"节点16";
				 treeNode108->Text = L"贴图颜色B值";
				 treeNode108->ToolTipText = L"texb";
				 treeNode109->ImageIndex = 0;
				 treeNode109->Name = L"节点17";
				 treeNode109->Text = L"贴图颜色A值";
				 treeNode109->ToolTipText = L"texa";
				 treeNode110->ImageIndex = 3;
				 treeNode110->Name = L"节点53";
				 treeNode110->Text = L"[静态框属性]";
				 treeNode111->ImageIndex = 0;
				 treeNode111->Name = L"节点58";
				 treeNode111->Text = L"条目数量";
				 treeNode111->ToolTipText = L"linecount";
				 treeNode112->ImageIndex = 0;
				 treeNode112->Name = L"节点59";
				 treeNode112->Text = L"选中条目";
				 treeNode112->ToolTipText = L"currentline";
				 treeNode113->ImageIndex = 9;
				 treeNode113->Name = L"节点60";
				 treeNode113->Text = L"条目表";
				 treeNode113->ToolTipText = L"line";
				 treeNode114->ImageIndex = 3;
				 treeNode114->Name = L"节点57";
				 treeNode114->Text = L"[下拉列表框属性]";
				 treeNode115->ImageIndex = 6;
				 treeNode115->Name = L"节点62";
				 treeNode115->NodeFont = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Strikeout, System::Drawing::GraphicsUnit::Point, 
					 static_cast<System::Byte>(134)));
				 treeNode115->Text = L"傲娇";
				 treeNode116->ImageIndex = 6;
				 treeNode116->Name = L"节点63";
				 treeNode116->Text = L"显示数值";
				 treeNode116->ToolTipText = L"showtext";
				 treeNode117->ImageIndex = 0;
				 treeNode117->Name = L"节点65";
				 treeNode117->Text = L"最大数值";
				 treeNode117->ToolTipText = L"maxvalue";
				 treeNode118->ImageIndex = 0;
				 treeNode118->Name = L"节点66";
				 treeNode118->Text = L"当前数值";
				 treeNode118->ToolTipText = L"value";
				 treeNode119->ImageIndex = 3;
				 treeNode119->Name = L"节点61";
				 treeNode119->Text = L"[进度条属性]";
				 treeNode120->ImageIndex = 0;
				 treeNode120->Name = L"节点68";
				 treeNode120->Text = L"单屏条目数";
				 treeNode120->ToolTipText = L"lineperscreen";
				 treeNode121->ImageIndex = 0;
				 treeNode121->Name = L"节点69";
				 treeNode121->Text = L"条目数量";
				 treeNode121->ToolTipText = L"linecount";
				 treeNode122->ImageIndex = 0;
				 treeNode122->Name = L"节点70";
				 treeNode122->Text = L"选中条目";
				 treeNode122->ToolTipText = L"currentline";
				 treeNode123->ImageIndex = 0;
				 treeNode123->Name = L"节点71";
				 treeNode123->Text = L"第一屏显条目";
				 treeNode123->ToolTipText = L"startline";
				 treeNode124->ImageIndex = 9;
				 treeNode124->Name = L"节点72";
				 treeNode124->Text = L"条目表";
				 treeNode124->ToolTipText = L"line";
				 treeNode125->ImageIndex = 3;
				 treeNode125->Name = L"节点67";
				 treeNode125->Text = L"[列表框属性]";
				 treeNode126->ImageIndex = 3;
				 treeNode126->Name = L"节点29";
				 treeNode126->Text = L"[控件属性]";
				 treeNode127->ImageIndex = 6;
				 treeNode127->Name = L"节点74";
				 treeNode127->Text = L"被单击";
				 treeNode127->ToolTipText = L"click";
				 treeNode128->ImageIndex = 6;
				 treeNode128->Name = L"节点75";
				 treeNode128->Text = L"被按下";
				 treeNode128->ToolTipText = L"pressed";
				 treeNode129->ImageIndex = 6;
				 treeNode129->Name = L"节点76";
				 treeNode129->Text = L"被松开";
				 treeNode129->ToolTipText = L"released";
				 treeNode130->ImageIndex = 6;
				 treeNode130->Name = L"节点77";
				 treeNode130->Text = L"高亮状态";
				 treeNode130->ToolTipText = L"hightlight";
				 treeNode131->ImageIndex = 3;
				 treeNode131->Name = L"节点73";
				 treeNode131->Text = L"[控件事件]";
				 treeNode132->ImageIndex = 2;
				 treeNode132->Name = L"节点78";
				 treeNode132->Tag = L"-1";
				 treeNode132->Text = L"更新摄像机";
				 treeNode132->ToolTipText = L"updateCamera()";
				 treeNode133->ImageIndex = 0;
				 treeNode133->Name = L"节点80";
				 treeNode133->Text = L"摄像机类型";
				 treeNode133->ToolTipText = L"camera";
				 treeNode134->ImageIndex = 0;
				 treeNode134->Name = L"节点81";
				 treeNode134->Text = L"X坐标";
				 treeNode134->ToolTipText = L"x";
				 treeNode135->ImageIndex = 0;
				 treeNode135->Name = L"节点82";
				 treeNode135->Text = L"Y坐标";
				 treeNode135->ToolTipText = L"y";
				 treeNode136->ImageIndex = 0;
				 treeNode136->Name = L"节点83";
				 treeNode136->Text = L"Z坐标";
				 treeNode136->ToolTipText = L"z";
				 treeNode137->ImageIndex = 0;
				 treeNode137->Name = L"节点84";
				 treeNode137->Text = L"Z轴转角";
				 treeNode137->ToolTipText = L"a";
				 treeNode138->ImageIndex = 0;
				 treeNode138->Name = L"节点85";
				 treeNode138->Text = L"Y轴转角";
				 treeNode138->ToolTipText = L"b";
				 treeNode139->ImageIndex = 0;
				 treeNode139->Name = L"节点86";
				 treeNode139->Text = L"焦距";
				 treeNode139->ToolTipText = L"d";
				 treeNode140->ImageIndex = 3;
				 treeNode140->Name = L"节点79";
				 treeNode140->Text = L"[摄像机属性]";
				 treeNode141->ImageIndex = 2;
				 treeNode141->Name = L"节点87";
				 treeNode141->Tag = L"-6";
				 treeNode141->Text = L"更新地图模型";
				 treeNode141->ToolTipText = L"updateMapModel(model)";
				 treeNode142->ImageIndex = 1;
				 treeNode142->Name = L"节点88";
				 treeNode142->Tag = L"-5";
				 treeNode142->Text = L"输出调试文本";
				 treeNode142->ToolTipText = L"debug(text)";
				 treeNode143->ImageIndex = 2;
				 treeNode143->Name = L"节点89";
				 treeNode143->Tag = L"7";
				 treeNode143->Text = L"AI自动寻路";
				 treeNode143->ToolTipText = L"aiGoto(unit,group,x,y)";
				 treeNode144->ImageIndex = 2;
				 treeNode144->Name = L"节点90";
				 treeNode144->Tag = L"15";
				 treeNode144->Text = L"AI手动寻路";
				 treeNode144->ToolTipText = L"aiGoByWaypoint(unit,group,x,y,waypoint)";
				 treeNode145->ImageIndex = 2;
				 treeNode145->Name = L"节点91";
				 treeNode145->Tag = L"-8";
				 treeNode145->Text = L"控制游戏状态";
				 treeNode145->ToolTipText = L"gameControl(control)";
				 treeNode146->ImageIndex = 1;
				 treeNode146->Name = L"节点92";
				 treeNode146->Tag = L"-8";
				 treeNode146->Text = L"载入贴图";
				 treeNode146->ToolTipText = L"loadTexture(texname)";
				 treeNode147->ImageIndex = 1;
				 treeNode147->Name = L"节点93";
				 treeNode147->Tag = L"10";
				 treeNode147->Text = L"创建炮弹";
				 treeNode147->ToolTipText = L"newBullet(bullet,source,target,x,y,z,a,b,dx,dy,dz)";
				 treeNode148->ImageIndex = 0;
				 treeNode148->Name = L"节点96";
				 treeNode148->Text = L"运行时间";
				 treeNode148->ToolTipText = L"runtime";
				 treeNode149->ImageIndex = 0;
				 treeNode149->Name = L"节点97";
				 treeNode149->Text = L"上回合运行时间";
				 treeNode149->ToolTipText = L"oldruntime";
				 treeNode150->ImageIndex = 0;
				 treeNode150->Name = L"节点98";
				 treeNode150->Text = L"圆周率";
				 treeNode150->ToolTipText = L"pi";
				 treeNode151->ImageIndex = 0;
				 treeNode151->Name = L"节点100";
				 treeNode151->Text = L"创建单位";
				 treeNode151->ToolTipText = L"OPTYPE.NEWUNIT";
				 treeNode152->ImageIndex = 0;
				 treeNode152->Name = L"节点101";
				 treeNode152->Text = L"更新单位";
				 treeNode152->ToolTipText = L"OPTYPE.UPDATEUNIT";
				 treeNode153->ImageIndex = 0;
				 treeNode153->Name = L"节点102";
				 treeNode153->Text = L"更新单位组";
				 treeNode153->ToolTipText = L"OPTYPE.UPDATEGROUP";
				 treeNode154->ImageIndex = 0;
				 treeNode154->Name = L"节点103";
				 treeNode154->Text = L"创建图像效果";
				 treeNode154->ToolTipText = L"OPTYPE.NEWGEFFECT";
				 treeNode155->ImageIndex = 0;
				 treeNode155->Name = L"节点104";
				 treeNode155->Text = L"使用、禁用面板";
				 treeNode155->ToolTipText = L"OPTYPE.USEPANEL";
				 treeNode156->ImageIndex = 0;
				 treeNode156->Name = L"节点105";
				 treeNode156->Text = L"更新面板";
				 treeNode156->ToolTipText = L"OPTYPE.UPDATEPANEL";
				 treeNode157->ImageIndex = 0;
				 treeNode157->Name = L"节点106";
				 treeNode157->Text = L"更新控件";
				 treeNode157->ToolTipText = L"OPTYPE.UPDATEWIDGET";
				 treeNode158->ImageIndex = 0;
				 treeNode158->Name = L"节点107";
				 treeNode158->Text = L"创建面板";
				 treeNode158->ToolTipText = L"OPTYPE.CREATEPANEL";
				 treeNode159->ImageIndex = 0;
				 treeNode159->Name = L"节点108";
				 treeNode159->Text = L"创建控件";
				 treeNode159->ToolTipText = L"OPTYPE.CREATEWIDGET";
				 treeNode160->ImageIndex = 0;
				 treeNode160->Name = L"节点109";
				 treeNode160->Text = L"更新摄像机";
				 treeNode160->ToolTipText = L"OPTYPE.UPDATECAMERA";
				 treeNode161->ImageIndex = 0;
				 treeNode161->Name = L"节点110";
				 treeNode161->Text = L"更新地图模型";
				 treeNode161->ToolTipText = L"OPTYPE.UPDATEMAPMODEL";
				 treeNode162->ImageIndex = 0;
				 treeNode162->Name = L"节点111";
				 treeNode162->Text = L"输出调试文本";
				 treeNode162->ToolTipText = L"OPTYPE.DEBUG";
				 treeNode163->ImageIndex = 0;
				 treeNode163->Name = L"节点112";
				 treeNode163->Text = L"AI自动寻路";
				 treeNode163->ToolTipText = L"OPTYPE.AIGOTO";
				 treeNode164->ImageIndex = 0;
				 treeNode164->Name = L"节点113";
				 treeNode164->Text = L"AI手动寻路";
				 treeNode164->ToolTipText = L"OPTYPE.AIGOBYWAYPOINT";
				 treeNode165->ImageIndex = 0;
				 treeNode165->Name = L"节点114";
				 treeNode165->Text = L"控制游戏状态";
				 treeNode165->ToolTipText = L"OPTYPE.GAMECONTROL";
				 treeNode166->ImageIndex = 0;
				 treeNode166->Name = L"节点115";
				 treeNode166->Text = L"载入贴图";
				 treeNode166->ToolTipText = L"OPTYPE.LOADTEXTURE";
				 treeNode167->ImageIndex = 0;
				 treeNode167->Name = L"节点116";
				 treeNode167->Text = L"创建炮弹";
				 treeNode167->ToolTipText = L"OPTYPE.NEWBULLET";
				 treeNode168->ImageIndex = 3;
				 treeNode168->Name = L"节点99";
				 treeNode168->Text = L"[指令类型]";
				 treeNode169->ImageIndex = 0;
				 treeNode169->Name = L"节点118";
				 treeNode169->Text = L"按钮";
				 treeNode169->ToolTipText = L"WIDGETTYPE.BUTTON";
				 treeNode170->ImageIndex = 0;
				 treeNode170->Name = L"节点119";
				 treeNode170->Text = L"复选框";
				 treeNode170->ToolTipText = L"WIDGETTYPE.CHECKBOX";
				 treeNode171->ImageIndex = 0;
				 treeNode171->Name = L"节点120";
				 treeNode171->Text = L"单选框";
				 treeNode171->ToolTipText = L"WIDGETTYPE.RADIOBOX";
				 treeNode172->ImageIndex = 0;
				 treeNode172->Name = L"节点121";
				 treeNode172->Text = L"滚动条";
				 treeNode172->ToolTipText = L"WIDGETTYPE.SCROLLBAR";
				 treeNode173->ImageIndex = 0;
				 treeNode173->Name = L"节点122";
				 treeNode173->Text = L"静态框";
				 treeNode173->ToolTipText = L"WIDGETTYPE.STATIC";
				 treeNode174->ImageIndex = 0;
				 treeNode174->Name = L"节点123";
				 treeNode174->Text = L"下拉列表框";
				 treeNode174->ToolTipText = L"WIDGETTYPE.POPLIST";
				 treeNode175->ImageIndex = 0;
				 treeNode175->Name = L"节点124";
				 treeNode175->Text = L"进度条";
				 treeNode175->ToolTipText = L"WIDGETTYPE.PROGRESSBAR";
				 treeNode176->ImageIndex = 0;
				 treeNode176->Name = L"节点125";
				 treeNode176->Text = L"列表框";
				 treeNode176->ToolTipText = L"WIDGETTYPE.LIST";
				 treeNode177->ImageIndex = 3;
				 treeNode177->Name = L"节点117";
				 treeNode177->Text = L"[控件类型]";
				 treeNode178->ImageIndex = 0;
				 treeNode178->Name = L"节点127";
				 treeNode178->Text = L"灰色";
				 treeNode178->ToolTipText = L"COLORTHEME.GREY";
				 treeNode179->ImageIndex = 0;
				 treeNode179->Name = L"节点128";
				 treeNode179->Text = L"蓝色";
				 treeNode179->ToolTipText = L"COLORTHEME.BLUE";
				 treeNode180->ImageIndex = 0;
				 treeNode180->Name = L"节点129";
				 treeNode180->Text = L"平面蓝色";
				 treeNode180->ToolTipText = L"COLORTHEME.FLATBLUE";
				 treeNode181->ImageIndex = 0;
				 treeNode181->Name = L"节点130";
				 treeNode181->Text = L"橙色";
				 treeNode181->ToolTipText = L"COLORTHEME.ORANGE";
				 treeNode182->ImageIndex = 0;
				 treeNode182->Name = L"节点131";
				 treeNode182->Text = L"平面橙色";
				 treeNode182->ToolTipText = L"COLORTHEME.FLATORANGE";
				 treeNode183->ImageIndex = 0;
				 treeNode183->Name = L"节点132";
				 treeNode183->Text = L"完全透明";
				 treeNode183->ToolTipText = L"COLORTHEME.TRANSPARENT";
				 treeNode184->ImageIndex = 3;
				 treeNode184->Name = L"节点126";
				 treeNode184->Text = L"[颜色主题]";
				 treeNode185->ImageIndex = 0;
				 treeNode185->Name = L"节点138";
				 treeNode185->Text = L"跟踪玩家";
				 treeNode185->ToolTipText = L"CAMERATYPE.FOLLOWPLAYER";
				 treeNode186->ImageIndex = 0;
				 treeNode186->Name = L"节点139";
				 treeNode186->Text = L"固定角度跟踪玩家";
				 treeNode186->ToolTipText = L"CAMERATYPE.SIDEPLAYER";
				 treeNode187->ImageIndex = 0;
				 treeNode187->Name = L"节点140";
				 treeNode187->Text = L"跟踪目标";
				 treeNode187->ToolTipText = L"CAMERATYPE.FOLLOWTARGET";
				 treeNode188->ImageIndex = 0;
				 treeNode188->Name = L"节点141";
				 treeNode188->Text = L"自由摄像机";
				 treeNode188->ToolTipText = L"CAMERATYPE.FREECAMERA";
				 treeNode189->ImageIndex = 3;
				 treeNode189->Name = L"节点133";
				 treeNode189->Text = L"[摄像机类型]";
				 treeNode190->ImageIndex = 0;
				 treeNode190->Name = L"节点143";
				 treeNode190->Text = L"暂停游戏";
				 treeNode190->ToolTipText = L"GAMECONTROL.PAUSE";
				 treeNode191->ImageIndex = 0;
				 treeNode191->Name = L"节点144";
				 treeNode191->Text = L"继续游戏";
				 treeNode191->ToolTipText = L"GAMECONTROL.RESUME";
				 treeNode192->ImageIndex = 0;
				 treeNode192->Name = L"节点145";
				 treeNode192->Text = L"阻断玩家输入";
				 treeNode192->ToolTipText = L"GAMECONTROL.BLOCKINPUT";
				 treeNode193->ImageIndex = 0;
				 treeNode193->Name = L"节点146";
				 treeNode193->Text = L"允许玩家输入";
				 treeNode193->ToolTipText = L"GAMECONTROL.ALLOWINPUT";
				 treeNode194->ImageIndex = 0;
				 treeNode194->Name = L"节点147";
				 treeNode194->Text = L"胜利";
				 treeNode194->ToolTipText = L"GAMECONTROL.WIN";
				 treeNode195->ImageIndex = 0;
				 treeNode195->Name = L"节点148";
				 treeNode195->Text = L"失败";
				 treeNode195->ToolTipText = L"GAMECONTROL.LOSE";
				 treeNode196->ImageIndex = 3;
				 treeNode196->Name = L"节点142";
				 treeNode196->Text = L"[游戏控制]";
				 treeNode197->ImageIndex = 3;
				 treeNode197->Name = L"节点95";
				 treeNode197->Text = L"[常量表]";
				 this->treeView1->Nodes->AddRange(gcnew cli::array< System::Windows::Forms::TreeNode^  >(22) {treeNode1, treeNode2, treeNode3, 
					 treeNode44, treeNode45, treeNode53, treeNode54, treeNode55, treeNode56, treeNode75, treeNode126, treeNode131, treeNode132, treeNode140, 
					 treeNode141, treeNode142, treeNode143, treeNode144, treeNode145, treeNode146, treeNode147, treeNode197});
				 this->treeView1->SelectedImageIndex = 4;
				 this->treeView1->ShowNodeToolTips = true;
				 this->treeView1->Size = System::Drawing::Size(150, 364);
				 this->treeView1->TabIndex = 0;
				 this->treeView1->DoubleClick += gcnew System::EventHandler(this, &Form1::treeView1_DoubleClick);
				 // 
				 // imageList1
				 // 
				 this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^  >(resources->GetObject(L"imageList1.ImageStream")));
				 this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
				 this->imageList1->Images->SetKeyName(0, L"Flag_blueHS.png");
				 this->imageList1->Images->SetKeyName(1, L"NewDocumentHS.png");
				 this->imageList1->Images->SetKeyName(2, L"PageUpHS.png");
				 this->imageList1->Images->SetKeyName(3, L"OrgChartHS.png");
				 this->imageList1->Images->SetKeyName(4, L"StopHS.png");
				 this->imageList1->Images->SetKeyName(5, L"PushpinHS.png");
				 this->imageList1->Images->SetKeyName(6, L"Flag_greenHS.png");
				 this->imageList1->Images->SetKeyName(7, L"Flag_redHS.png");
				 this->imageList1->Images->SetKeyName(8, L"pageNumberHS.png");
				 this->imageList1->Images->SetKeyName(9, L"List_NumberedHS.png");
				 // 
				 // openFileDialog1
				 // 
				 this->openFileDialog1->FileName = L"openFileDialog1";
				 this->openFileDialog1->Filter = L"FS脚本(*.lua)|*.lua";
				 this->openFileDialog1->FileOk += gcnew System::ComponentModel::CancelEventHandler(this, &Form1::openFileDialog1_FileOk);
				 // 
				 // saveFileDialog1
				 // 
				 this->saveFileDialog1->Filter = L"FS脚本(*.lua)|*.lua";
				 this->saveFileDialog1->FileOk += gcnew System::ComponentModel::CancelEventHandler(this, &Form1::saveFileDialog1_FileOk);
				 // 
				 // Form1
				 // 
				 this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
				 this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
				 this->ClientSize = System::Drawing::Size(705, 495);
				 this->Controls->Add(this->splitContainer1);
				 this->Controls->Add(this->toolStrip1);
				 this->Controls->Add(this->statusStrip1);
				 this->Controls->Add(this->menuStrip1);
				 this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
				 this->MainMenuStrip = this->menuStrip1;
				 this->Name = L"Form1";
				 this->Text = L"とある幻想の脚本编辑 Lv. 0.1";
				 this->WindowState = System::Windows::Forms::FormWindowState::Maximized;
				 this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
				 this->ClientSizeChanged += gcnew System::EventHandler(this, &Form1::Form1_ClientSizeChanged);
				 this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &Form1::Form1_FormClosing);
				 this->menuStrip1->ResumeLayout(false);
				 this->menuStrip1->PerformLayout();
				 this->statusStrip1->ResumeLayout(false);
				 this->statusStrip1->PerformLayout();
				 this->toolStrip1->ResumeLayout(false);
				 this->toolStrip1->PerformLayout();
				 this->splitContainer1->Panel1->ResumeLayout(false);
				 this->splitContainer1->Panel2->ResumeLayout(false);
				 this->splitContainer1->ResumeLayout(false);
				 this->splitContainer2->Panel1->ResumeLayout(false);
				 this->splitContainer2->Panel2->ResumeLayout(false);
				 this->splitContainer2->Panel2->PerformLayout();
				 this->splitContainer2->ResumeLayout(false);
				 this->contextMenuStrip1->ResumeLayout(false);
				 this->toolStrip2->ResumeLayout(false);
				 this->toolStrip2->PerformLayout();
				 this->ResumeLayout(false);
				 this->PerformLayout();

			 }
#pragma endregion
	private: System::Void 文件Lv0ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox3->LoadFile(Application::StartupPath + "/guide.rtf",RichTextBoxStreamType::RichText);
				 splitContainer2->SplitterDistance = splitContainer2->Height - toolStrip2->Height;	
				 toolStripStatusLabel2->Visible = false;
				 if (filepath!="")
				 {
					 richTextBox2->LoadFile(filepath,RichTextBoxStreamType::PlainText);
					 richTextBox2->Find("[USER CODE]");
					 richTextBox2->Select(0,richTextBox2->SelectionStart+richTextBox2->SelectionLength+1);
					 richTextBox2->SelectedText = "";
					 richTextBox2->SelectAll();
					 richTextBox2->Cut();
					 richTextBox1->SelectAll();
					 richTextBox1->Paste();
					 openFileDialog1->FileName = filepath;
					 toolStripStatusLabel1->Text = "文件路径:"+filepath;
					 Text = "とある幻想の脚本编辑 Lv. 0.1 - "+filepath;
					 richTextBox1->Modified = false;
					 toolStripStatusLabel2->Visible = false;

					 for (int i=0;i<32;i++)
					 {
						 undobuffer[i] = "";
						 undoposbuffer[i] = 0;
					 }
					 undobuffer[0] = richTextBox1->Rtf;
					 undocount = 1;
					 curundocount = 1;
					 maxundocount = 1;
					 newundo = true;
				 }
			 }
	private: System::Void toolStripSplitButton1_ButtonClick(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void listBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void highlightLine(String ^text,int line) {
				 if (line>=richTextBox1->Height/16) return;
				 String ^word="";
				 int linestart=richTextBox1->GetFirstCharIndexFromLine(line);
				 richTextBox1->Select(linestart,richTextBox1->Lines[line]->Length);
				 richTextBox1->SelectionColor = System::Drawing::Color::Black;
				 richTextBox1->Select(linestart,0);
				 int i = linestart;
				 while (i<=linestart+richTextBox1->Lines[line]->Length)
				 {
					 if (i<linestart+richTextBox1->Lines[line]->Length && (text[i]>=48 && text[i]<=57 ||
						 text[i]>=65 && text[i]<=90 ||
						 text[i]>=97 && text[i]<=122 || text[i]==95))
					 {
						 word = word + text[i];
					 }
					 else 
					 {
						 if (word->Length>0)
							{
								richTextBox1->Select(i-word->Length,word->Length);
								richTextBox1->SelectionColor = highlight->getColor(word);
								word = "";
							}

						 if (i>0 && i<linestart+richTextBox1->Lines[line]->Length)
						 {
							 if (text[i]=='-' && text[i-1]=='-')
							 {
								 richTextBox1->Select(i-1,linestart+richTextBox1->Lines[line]->Length-i+1);
								 richTextBox1->SelectionColor = System::Drawing::Color::DarkGray;
								 return;
							 }
							 else if (text[i]=='\"')
							 {
								 int j=i+1;
								 while (j<linestart+richTextBox1->Lines[line]->Length && text[j]!='\"')
										j++;
								 richTextBox1->Select(i,j-i+1);
								 richTextBox1->SelectionColor = System::Drawing::Color::Red;
								 i = j;
							 }
							 else if (text[i]=='(' || text[i]==')' ||
								 text[i]=='[' || text[i]==']' ||
								 text[i]=='{' || text[i]=='}')
							 {
								 richTextBox1->Select(i,1);
								 richTextBox1->SelectionColor = System::Drawing::Color::SteelBlue;
							 }
						 }
					 }
					 i++;
				 }				
			 }
	private: System::Void highlightAll() {
				 if (!(richTextBox1->Height/16))
				 {
					 oldline = 0;
					 return;
				 }
				 HWND hwnd=(HWND)richTextBox1->Handle.ToInt32();
				 LockWindowUpdate(hwnd);
				 String ^text = richTextBox1->Text;
				 int pos=richTextBox1->SelectionStart;
				 int i = 0;
				 int line=0,linex=richTextBox1->Height/16-1;
				 for (i=line;i<=linex;i++)
					 highlightLine(text,i);
				 oldline = line;

				 //richTextBox1->SelectAll();
				 //richTextBox1->SelectionFont = gcnew System::Drawing::Font("Arial",10,System::Drawing::FontStyle::Bold);
				 richTextBox1->Select(0,0);
				 richTextBox1->ScrollToCaret();
				 richTextBox1->Select(pos,0);
				 LockWindowUpdate(0);
			 }
	private: System::Void richTextBox1_TextChanged(System::Object^  sender, System::EventArgs^  e) {
				 toolStripStatusLabel2->Visible = true;

				 richTextBox1->Height = richTextBox1->Lines->Length * 16 + 15;
				 listBox1->Height = richTextBox1->Height;

				 if (listBox1->Items->Count!=richTextBox1->Height/16)
				 {
					 HWND hwnd=(HWND)listBox1->Handle.ToInt32();
					 LockWindowUpdate(hwnd);
					 listBox1->Items->Clear();
					 for (int i=0;i<richTextBox1->Height/16;i++)
						 listBox1->Items->Add(i.ToString());
					 LockWindowUpdate(0);
				 }

				 if (!richTextBox1->Lines->Length)
				 {
					 oldline = 0;
					 return;
				 }
				 HWND hwnd=(HWND)richTextBox1->Handle.ToInt32();
				 LockWindowUpdate(hwnd);
				 String ^text = richTextBox1->Text;
				 int pos=richTextBox1->SelectionStart;
				 int i = 0;
				 int line=0,linex=0;
				 line = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart);
				 linex = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart+richTextBox1->SelectionLength);
				 if (line>linex)
				 {
					 int tmp = line;
					 line = linex;
					 linex = tmp;
				 }

				 if (oldline>=richTextBox1->Height/16)
					 oldline = richTextBox1->Height/16-1;
				 for (i=min(oldline,line);i<=max(oldline,line);i++)
					 highlightLine(text,i);
				 oldline = line;

				 if (searchhighlight)
				 {
					 richTextBox1->SelectAll();
					 richTextBox1->SelectionFont = gcnew System::Drawing::Font("Arial",10,System::Drawing::FontStyle::Regular);
					 searchhighlight = false;
				 }
				 richTextBox1->Select(0,0);
				 richTextBox1->ScrollToCaret();
				 richTextBox1->Select(pos,0);

				 int newmax = richTextBox1->Height/16;
				 if (newmax<0) newmax = 0;
				 vScrollBar1->Maximum = newmax;
				 LockWindowUpdate(0);
			 }
	private: System::Void richTextBox1_ModifiedChanged(System::Object^  sender, System::EventArgs^  e) {

			 }
	private: System::Void richTextBox1_KeyPress(System::Object^  sender, System::Windows::Forms::KeyPressEventArgs^  e) {

			 }
	private: System::Void richTextBox1_PreviewKeyDown(System::Object^  sender, System::Windows::Forms::PreviewKeyDownEventArgs^  e) {

			 }
	private: System::Void richTextBox1_KeyUp(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {

			 }
	private: System::Void richTextBox1_KeyDown(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
			 }
	private: System::Void richTextBox1_KeyUp_1(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
				 if (!(richTextBox1->Height/16)) return;

				 if (e->KeyValue==33)
				 {
					 int newpageline=pageline-splitContainer2->Panel1->Height/16;
					 if (newpageline<0) newpageline = 0;
					 richTextBox1->Select(richTextBox1->GetFirstCharIndexFromLine(newpageline),0);
				 }
				 else if (e->KeyValue==34)
				 {
					 int newpageline=pageline+splitContainer2->Panel1->Height/16;
					 if (newpageline>=richTextBox1->Height/16) newpageline = richTextBox1->Height/16 - 1;
					 richTextBox1->Select(richTextBox1->GetFirstCharIndexFromLine(newpageline),0);
				 }

				 int line=0,linex=0;
				 line = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart);
				 if (line+richTextBox1->Top/16<0)
					 vScrollBar1->Value = line;
				 else if (line+richTextBox1->Top/16>splitContainer2->Panel1->Height/16)
					 vScrollBar1->Value = line - splitContainer2->Panel1->Height/16;
				 linex = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart+richTextBox1->SelectionLength);
				 if (line>linex)
				 {
					 int tmp = line;
					 line = linex;
					 linex = tmp;
				 }
				 oldline = line;

				 listBox1->ClearSelected();
				 for (int i=0;i<richTextBox1->Height/16;i++)
					 if (i>=line && i<=linex)
						 listBox1->SetSelected(i,true);
					// else
					//	 listBox1->SetSelected(i,false);

				 if ((e->KeyValue>=48 && e->KeyValue<=57 ||
					 e->KeyValue>=65 && e->KeyValue<=90 ||
					 e->KeyValue>=96 && e->KeyValue<=105 || e->KeyValue==189))
				 {
					 if (richTextBox1->Text->Length && !richTextBox1->SelectionLength)
					 {
						 int pos=richTextBox1->SelectionStart;
						 String ^text = richTextBox1->Text;
						 int wordstart=pos-1;
						 String ^word="";
						 while (wordstart>=0 && (text[wordstart]>=48 && text[wordstart]<=57 ||
							 text[wordstart]>=65 && text[wordstart]<=90 ||
							 text[wordstart]>=97 && text[wordstart]<=122 || text[wordstart]==95))
						 {
							 word = text[wordstart].ToString() + word;
							 wordstart--;
						 }
						 String ^cword = highlight->getCompleteWord(word);
						 richTextBox1->SelectedText = cword;
						 richTextBox1->Select(pos,cword->Length);
					 }
					 newundo = true;
					 undobuffer[undocount%32] = richTextBox1->Rtf;
					 undoposbuffer[undocount%32] = richTextBox1->SelectionStart;
				 }
				 else 
				 {
					 if (newundo)
					 {
						 newundo = false;
						 undobuffer[undocount%32] = richTextBox1->Rtf;
						 undoposbuffer[undocount%32] = richTextBox1->SelectionStart;
						 undocount++;
						 if (curundocount<64) curundocount++;
						 if (maxundocount<64) maxundocount++;
					 }
				 }


			 }
	private: System::Void richTextBox1_MouseWheel(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
				 if (e->Delta>0)
				 {
					 int newpageline=vScrollBar1->Value-splitContainer2->Panel1->Height/64;
					 if (newpageline<0) newpageline = 0;
					 vScrollBar1->Value = newpageline;
				 }
				 else
				 {
					 int newpageline=vScrollBar1->Value+splitContainer2->Panel1->Height/64;
					 if (newpageline>vScrollBar1->Maximum) newpageline = vScrollBar1->Maximum;
					 vScrollBar1->Value = newpageline;
				 }
			 }
	private: System::Void richTextBox1_MouseUp(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
				 if (!(richTextBox1->Height/16)) return;
				 int line=0,linex=0;
				 line = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart);
				 if (line+richTextBox1->Top/16<0)
					 vScrollBar1->Value = line;
				 else if (line+richTextBox1->Top/16>splitContainer2->Panel1->Height/16)
					 vScrollBar1->Value = line - splitContainer2->Panel1->Height/16;
				 linex = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart+richTextBox1->SelectionLength);
				 if (line>linex)
				 {
					 int tmp = line;
					 line = linex;
					 linex = tmp;
				 }
				 oldline = line;

				 listBox1->ClearSelected();
				 for (int i=0;i<richTextBox1->Height/16;i++)
					 if (i>=line && i<=linex)
						 listBox1->SetSelected(i,true);
					// else
					//	 listBox1->SetSelected(i,false);
			 }
	private: System::Void richTextBox1_VScroll(System::Object^  sender, System::EventArgs^  e) {

			 }
	private: System::Void vScrollBar1_Scroll(System::Object^  sender, System::Windows::Forms::ScrollEventArgs^  e) {
				 richTextBox1->Top = -vScrollBar1->Value * 16;
				 listBox1->Top = richTextBox1->Top;
			 }
	private: System::Void 撤消UToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (curundocount)
				 {
					 HWND hwnd=(HWND)richTextBox1->Handle.ToInt32();
					 LockWindowUpdate(hwnd);
					 undocount--;
					 curundocount--;
					 richTextBox1->Rtf = undobuffer[undocount%32];
					 richTextBox1->Select(undoposbuffer[undocount%32],0);
					 LockWindowUpdate(0);
				 }
			 }
	private: System::Void 重复RToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (curundocount<maxundocount-1)
				 {
					 HWND hwnd=(HWND)richTextBox1->Handle.ToInt32();
					 LockWindowUpdate(hwnd);
					 undocount++;
					 curundocount++;
					 richTextBox1->Rtf = undobuffer[undocount%32];
					 richTextBox1->Select(undoposbuffer[undocount%32],0);
					 LockWindowUpdate(0);
				 }
			 }
	private: System::Void 剪切TToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Cut();
			 }
	private: System::Void 复制CToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Copy();
			 }
	private: System::Void 粘贴PToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Paste();
			 }
	private: System::Void vScrollBar1_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Top = -vScrollBar1->Value * 16;
				 listBox1->Top = richTextBox1->Top;
			 }
	private: System::Void splitContainer2_Panel1_Click(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Select(richTextBox1->Text->Length,0);
				 richTextBox1->Select();
			 }
	private: System::Void 打开OToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (richTextBox1->Modified)
				 {
					 System::Windows::Forms::DialogResult result;
					 result = System::Windows::Forms::MessageBox::Show("不保存的话文件会丢失哦?","御坂御坂一脸担心地说",System::Windows::Forms::MessageBoxButtons::OKCancel,System::Windows::Forms::MessageBoxIcon::Warning);
					 if (result==System::Windows::Forms::DialogResult::OK)
						 openFileDialog1->ShowDialog();
				 }
				 else
					 openFileDialog1->ShowDialog();
			 }
	private: System::Void openFileDialog1_FileOk(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
				 richTextBox2->LoadFile(openFileDialog1->FileName,RichTextBoxStreamType::PlainText);
				 richTextBox2->Find("[USER CODE]");
				 richTextBox2->Select(0,richTextBox2->SelectionStart+richTextBox2->SelectionLength+1);
				 richTextBox2->SelectedText = "";
				 richTextBox1->Clear();
				 richTextBox1->Text = richTextBox2->Text;
				 filepath = openFileDialog1->FileName;
				 toolStripStatusLabel1->Text = "文件路径:"+filepath;
				 Text = "とある幻想の脚本编辑 Lv. 0.1 - "+filepath;
				 richTextBox1->Modified = false;
				 toolStripStatusLabel2->Visible = false;

				 for (int i=0;i<32;i++)
				 {
					 undobuffer[i] = "";
					 undoposbuffer[i] = 0;
				 }
				 undobuffer[0] = richTextBox1->Rtf;
				 undocount = 1;
				 curundocount = 1;
				 maxundocount = 1;
				 newundo = true;
			 }
	private: System::Void 保存SToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (filepath=="" || filepath!=openFileDialog1->FileName)
					 saveFileDialog1->ShowDialog();
				 else
				 {
					 int pos=richTextBox1->SelectionStart;
					 int len=richTextBox1->SelectionLength;
					 richTextBox2->LoadFile(Application::StartupPath + "/header.lua",RichTextBoxStreamType::PlainText);
					 richTextBox2->Select(richTextBox2->Text->Length,0);
					 richTextBox2->SelectedText = richTextBox1->Text;
					 richTextBox2->SaveFile(filepath,RichTextBoxStreamType::PlainText);
					 richTextBox1->Select(pos,len);
					 richTextBox1->Modified = false;
					 toolStripStatusLabel2->Visible = false;
				 }
			 }
	private: System::Void saveFileDialog1_FileOk(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
				 int pos=richTextBox1->SelectionStart;
				 int len=richTextBox1->SelectionLength;
				 richTextBox2->LoadFile(Application::StartupPath + "/header.lua",RichTextBoxStreamType::PlainText);
				 richTextBox2->Select(richTextBox2->Text->Length,0);
				 richTextBox2->SelectedText = richTextBox1->Text;
				 if (saveFileDialog1->FileName->Substring(saveFileDialog1->FileName->Length-3)!="lua")
					 saveFileDialog1->FileName += ".lua";
				 richTextBox2->SaveFile(saveFileDialog1->FileName,RichTextBoxStreamType::PlainText);
				 richTextBox1->Select(pos,len);
				 filepath = saveFileDialog1->FileName;
				 toolStripStatusLabel1->Text = "文件路径:"+filepath;
				 Text = "とある幻想の脚本编辑 Lv. 0.1 - "+filepath;
				 richTextBox1->Modified = false;
				 toolStripStatusLabel2->Visible = false;
			 }
	private: System::Void FileNew_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (richTextBox1->Modified)
				 {
					 System::Windows::Forms::DialogResult result;
					 result = System::Windows::Forms::MessageBox::Show("不保存的话文件会丢失哦?","御坂御坂一脸担心地说",System::Windows::Forms::MessageBoxButtons::OKCancel,System::Windows::Forms::MessageBoxIcon::Warning);
					 if (result==System::Windows::Forms::DialogResult::OK)
					 {
						 richTextBox1->Clear();
						 toolStripStatusLabel1->Text = "文件路径:(空)";
						 Text = "とある幻想の脚本编辑 Lv. 0.1 - "+filepath;
						 richTextBox1->Modified = false;
						 toolStripStatusLabel2->Visible = false;

						 for (int i=0;i<32;i++)
						 {
							 undobuffer[i] = "";
							 undoposbuffer[i] = 0;
						 }
						 undocount = 1;
						 curundocount = 1;
						 maxundocount = 1;
						 newundo = true;
					 }
				 }
				 else
				 {
					 richTextBox1->Clear();
					 toolStripStatusLabel1->Text = "文件路径:(空)";
					 Text = "とある幻想の脚本编辑 Lv. 0.1 - "+filepath;
					 richTextBox1->Modified = false;
					 toolStripStatusLabel2->Visible = false;

					 for (int i=0;i<32;i++)
					 {
						 undobuffer[i] = "";
						 undoposbuffer[i] = 0;
					 }
					 undocount = 1;
					 curundocount = 1;
					 maxundocount = 1;
					 newundo = true;
				 }
			 }
	private: System::Void Form1_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e) {
				 if (richTextBox1->Modified)
				 {
					 System::Windows::Forms::DialogResult result;
					 result = System::Windows::Forms::MessageBox::Show("不保存的话文件会丢失哦?","御坂御坂一脸担心地说",System::Windows::Forms::MessageBoxButtons::OKCancel,System::Windows::Forms::MessageBoxIcon::Warning);
					 if (result==System::Windows::Forms::DialogResult::Cancel)
						 e->Cancel = true;
				 }

			 }
	private: System::Void FileSaveAs_Click(System::Object^  sender, System::EventArgs^  e) {
				 saveFileDialog1->ShowDialog();
			 }
	private: System::Void FileExit_Click(System::Object^  sender, System::EventArgs^  e) {
				 Close();
			 }
	private: System::Void richTextBox1_KeyPress_1(System::Object^  sender, System::Windows::Forms::KeyPressEventArgs^  e) {
				 if (e->KeyChar==13)
				 {
					 int line=richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart);
					 if (line>1)
					 {
						 int n=richTextBox1->Lines[line-1]->LastIndexOf('	');
						 for (int i=0;i<=n;i++)
							 richTextBox1->SelectedText += "	";
					 }
				 }
				 //if (e->KeyChar=='(')
				 //{
					// int pos=richTextBox1->SelectionStart;
					// richTextBox1->SelectedText = ")";
					// richTextBox1->Select(pos,0);
				 //}
				 //if (e->KeyChar=='[')
				 //{
					// int pos=richTextBox1->SelectionStart;
					// richTextBox1->SelectedText = "]";
					// richTextBox1->Select(pos,0);
				 //}
				 //if (e->KeyChar=='{')
				 //{
					// int pos=richTextBox1->SelectionStart;
					// richTextBox1->SelectedText = "}";
					// richTextBox1->Select(pos,0);
				 //}

			 }
	private: System::Void listBox1_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void listBox1_MouseUp(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
				 int firstsel=-1,lastsel=-1;
				 for (int i=0;i<listBox1->Items->Count;i++)
					 if (listBox1->GetSelected(i))
					 {
						 if (firstsel<0)
							 firstsel = i;
						 lastsel = i;
					 }
					 if (firstsel>=0)
						 richTextBox1->Select(richTextBox1->GetFirstCharIndexFromLine(firstsel),
						 richTextBox1->GetFirstCharIndexFromLine(lastsel)+richTextBox1->Lines[lastsel]->Length-richTextBox1->GetFirstCharIndexFromLine(firstsel));

					 richTextBox1->Focus();

			 }
	private: System::Void Paint_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void 刷新语法高亮ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
				 int pos=richTextBox1->SelectionStart;
				 searchhighlight = true;
				 richTextBox1->SelectAll();
				 richTextBox1->Cut();
				 richTextBox1->Paste();
				 richTextBox1->Select(pos,0);
			 }
	private: System::Void EditSelectAll_Click(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->SelectAll();
			 }
	private: System::Void lUA保留字ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void toolStrip2_ItemClicked(System::Object^  sender, System::Windows::Forms::ToolStripItemClickedEventArgs^  e) {
			 }
	private: System::Void toolStripTextBox1_Enter(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void toolStripButton3_Click(System::Object^  sender, System::EventArgs^  e) {
				 splitContainer2->SplitterDistance = 0;
				 richTextBox3->Focus();
			 }
	private: System::Void toolStripTextBox1_Click(System::Object^  sender, System::EventArgs^  e) {
				 toolStripTextBox1->SelectAll();
			 }
	private: System::Void toolStripTextBox1_KeyPress(System::Object^  sender, System::Windows::Forms::KeyPressEventArgs^  e) {
			 }
	private: System::Void toolStripButton4_Click(System::Object^  sender, System::EventArgs^  e) {
				 if (splitContainer2->SplitterDistance>100)
					 splitContainer2->SplitterDistance = 0;
				 else
					 splitContainer2->SplitterDistance = splitContainer2->Height - toolStrip2->Height;
			 }
	private: System::Void toolStripLabel1_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void toolStripTextBox1_KeyUp(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
				 if (e->KeyValue==13)
				 {
					 splitContainer2->SplitterDistance = 0;
					 richTextBox3->Focus();
					 richTextBox3->Find(toolStripTextBox1->Text,richTextBox3->SelectionStart+richTextBox3->SelectionLength,System::Windows::Forms::RichTextBoxFinds::None);
				 }
			 }
	private: System::Void treeView1_AfterSelect(System::Object^  sender, System::Windows::Forms::TreeViewEventArgs^  e) {

			 }
	private: System::Void treeView1_Click(System::Object^  sender, System::EventArgs^  e) {

			 }
	private: System::Void treeView1_MouseUp(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
			 }
	private: System::Void treeView1_AfterSelect_1(System::Object^  sender, System::Windows::Forms::TreeViewEventArgs^  e) {
			 }
	private: System::Void Form1_ClientSizeChanged(System::Object^  sender, System::EventArgs^  e) {
				 richTextBox1->Top = -vScrollBar1->Value * 16;
				 listBox1->Top = richTextBox1->Top;
			 }
	private: System::Void 删除DToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void 替换ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
				 toolStripTextBox3->Enabled = 替换ToolStripMenuItem->Checked;
			 }
	private: System::Void toolStripSplitButton2_ButtonClick(System::Object^  sender, System::EventArgs^  e) {
				 if (!toolStripTextBox2->Text->Length)
				 {
					 toolStripTextBox2->Focus();
					 toolStripTextBox2->SelectAll();
					 return;
				 }

				 System::Windows::Forms::RichTextBoxFinds option=System::Windows::Forms::RichTextBoxFinds::None;
				 if (大小写匹配ToolStripMenuItem->Checked) option = option | System::Windows::Forms::RichTextBoxFinds::MatchCase;
				 if (全字匹配ToolStripMenuItem->Checked) option = option | System::Windows::Forms::RichTextBoxFinds::WholeWord;


				 HWND hwnd=(HWND)richTextBox1->Handle.ToInt32();
				 LockWindowUpdate(hwnd);
				 richTextBox1->Focus();
				 int pos=richTextBox1->SelectionStart;
				 int len=richTextBox1->SelectionLength;
				 int newlen=0;
				 if (!searchhighlight && 下划线标亮ToolStripMenuItem->Checked)
				 {
					 richTextBox1->Select(0,0);
					 while (richTextBox1->Find(toolStripTextBox2->Text,richTextBox1->SelectionStart+newlen,option)>=0)
					 {
						 newlen = richTextBox1->SelectionLength;
						 richTextBox1->SelectionFont = gcnew System::Drawing::Font("Arial",10,System::Drawing::FontStyle::Bold | System::Drawing::FontStyle::Underline);
					 }
					 //richTextBox1->Select(pos,0);
					 searchhighlight = true;
				 }
				 if (richTextBox1->Find(toolStripTextBox2->Text,pos+len,option)>=0)
				 {
					 if (替换ToolStripMenuItem->Checked)
					 {
						 newundo = false;
						 undobuffer[undocount%32] = richTextBox1->Rtf;
						 undoposbuffer[undocount%32] = richTextBox1->SelectionStart;
						 undocount++;
						 if (curundocount<64) curundocount++;
						 if (maxundocount<64) maxundocount++;
					 }
				 }
				 else
				 {
					 richTextBox1->Find(toolStripTextBox2->Text,0,option);
				 }
				 LockWindowUpdate(0);

				 toolStripTextBox2->AutoCompleteCustomSource->Add(toolStripTextBox2->Text);
			 }
	private: System::Void treeView1_Click_1(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void treeView1_MouseUp_1(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
			 }
	private: System::Void treeView1_DoubleClick(System::Object^  sender, System::EventArgs^  e) {
				 System::Windows::Forms::TreeNode ^node=treeView1->SelectedNode;
				 if (node!=nullptr && node->ToolTipText->Length)
				 {
					 int pos=richTextBox1->SelectionStart;
					 richTextBox1->SelectedText = node->ToolTipText;
					 if (Convert::ToInt32(node->Tag)>0)
						 richTextBox1->Select(pos+Convert::ToInt32(node->Tag),0);
					 else
						 richTextBox1->Select(richTextBox1->SelectionStart+Convert::ToInt32(node->Tag),0);

					 newundo = false;
					 undobuffer[undocount%32] = richTextBox1->Rtf;
					 undoposbuffer[undocount%32] = richTextBox1->SelectionStart;
					 undocount++;
					 if (curundocount<64) curundocount++;
					 if (maxundocount<64) maxundocount++;
				 }
				 richTextBox1->Focus();
			 }
	private: System::Void toolStripTextBox2_KeyPress(System::Object^  sender, System::Windows::Forms::KeyPressEventArgs^  e) {
			 }
	private: System::Void toolStripTextBox2_Click(System::Object^  sender, System::EventArgs^  e) {
				 toolStripTextBox2->SelectAll();
			 }
	private: System::Void toolStripTextBox2_KeyUp(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
				 if (e->KeyValue==13)
					 toolStripSplitButton2_ButtonClick(toolStripTextBox2,nullptr);
			 }
	private: System::Void richTextBox1_KeyDown_1(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
				 if (e->KeyValue==33 || e->KeyValue==34)
					 pageline = richTextBox1->GetLineFromCharIndex(richTextBox1->SelectionStart);
			 }

};
}

