⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapeditor.cs

📁 gamecode 很不错的小游戏源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:

		public ImageList ImageListBig
		{
			get
			{
				return this.imageListBig;
			}
		}

		public ImageList ImageListSmall
		{
			get
			{
				return this.imageListSmall;
			}
		}

		public Player[] PlayerState
		{
			get
			{
				return this.playerState;
			}
		}

		public MapState[,] RecoverMapInfo
		{
			get
			{
				return this.recoverMapInfo;
			}
			set
			{
				this.recoverMapInfo = value;
			}
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			this.g.Dispose();
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormMain));
			this.mainMenu = new System.Windows.Forms.MainMenu();
			this.menuFile = new System.Windows.Forms.MenuItem();
			this.menuNew = new System.Windows.Forms.MenuItem();
			this.menuOpen = new System.Windows.Forms.MenuItem();
			this.menuSave = new System.Windows.Forms.MenuItem();
			this.menuClose = new System.Windows.Forms.MenuItem();
			this.menuConnection = new System.Windows.Forms.MenuItem();
			this.menuNewHost = new System.Windows.Forms.MenuItem();
			this.menuConnectOtherHost = new System.Windows.Forms.MenuItem();
			this.menuCancelConnection = new System.Windows.Forms.MenuItem();
			this.panelMap = new System.Windows.Forms.Panel();
			this.contextMenu = new System.Windows.Forms.ContextMenu();
			this.menuRefresh = new System.Windows.Forms.MenuItem();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPageSmall = new System.Windows.Forms.TabPage();
			this.grpBoxSurrandings = new System.Windows.Forms.GroupBox();
			this.panelSurrandingsIn = new System.Windows.Forms.Panel();
			this.dragSource37 = new MapEditor.DragSource();
			this.dragSource19 = new MapEditor.DragSource();
			this.dragSource20 = new MapEditor.DragSource();
			this.dragSource21 = new MapEditor.DragSource();
			this.dragSource22 = new MapEditor.DragSource();
			this.dragSource23 = new MapEditor.DragSource();
			this.dragSource24 = new MapEditor.DragSource();
			this.dragSource25 = new MapEditor.DragSource();
			this.dragSource26 = new MapEditor.DragSource();
			this.dragSource27 = new MapEditor.DragSource();
			this.dragSource38 = new MapEditor.DragSource();
			this.dragSource39 = new MapEditor.DragSource();
			this.dragSource40 = new MapEditor.DragSource();
			this.dragSource41 = new MapEditor.DragSource();
			this.dragSource65 = new MapEditor.DragSource();
			this.dragSource66 = new MapEditor.DragSource();
			this.dragSource67 = new MapEditor.DragSource();
			this.dragSource68 = new MapEditor.DragSource();
			this.dragSource69 = new MapEditor.DragSource();
			this.dragSource70 = new MapEditor.DragSource();
			this.dragSource71 = new MapEditor.DragSource();
			this.grpBoxLuck = new System.Windows.Forms.GroupBox();
			this.panelLuckIn = new System.Windows.Forms.Panel();
			this.dragSource17 = new MapEditor.DragSource();
			this.dragSource18 = new MapEditor.DragSource();
			this.grpBoxRandom = new System.Windows.Forms.GroupBox();
			this.panelRandomIn = new System.Windows.Forms.Panel();
			this.dragSource14 = new MapEditor.DragSource();
			this.dragSource15 = new MapEditor.DragSource();
			this.dragSource16 = new MapEditor.DragSource();
			this.grpBoxBuidings = new System.Windows.Forms.GroupBox();
			this.panelBuildingsIn = new System.Windows.Forms.Panel();
			this.dragSource42 = new MapEditor.DragSource();
			this.dragSource6 = new MapEditor.DragSource();
			this.dragSource7 = new MapEditor.DragSource();
			this.dragSource8 = new MapEditor.DragSource();
			this.dragSource9 = new MapEditor.DragSource();
			this.dragSource10 = new MapEditor.DragSource();
			this.dragSource11 = new MapEditor.DragSource();
			this.dragSource12 = new MapEditor.DragSource();
			this.dragSource13 = new MapEditor.DragSource();
			this.grpBoxRoads = new System.Windows.Forms.GroupBox();
			this.panelRoadsIn = new System.Windows.Forms.Panel();
			this.dragSource1 = new MapEditor.DragSource();
			this.dragSource2 = new MapEditor.DragSource();
			this.dragSource3 = new MapEditor.DragSource();
			this.dragSource4 = new MapEditor.DragSource();
			this.dragSource5 = new MapEditor.DragSource();
			this.tabPageBig = new System.Windows.Forms.TabPage();
			this.grpBoxBig = new System.Windows.Forms.GroupBox();
			this.panelBigIn = new System.Windows.Forms.Panel();
			this.dragSource43 = new MapEditor.DragSource();
			this.dragSource28 = new MapEditor.DragSource();
			this.dragSource29 = new MapEditor.DragSource();
			this.dragSource30 = new MapEditor.DragSource();
			this.dragSource31 = new MapEditor.DragSource();
			this.dragSource32 = new MapEditor.DragSource();
			this.dragSource44 = new MapEditor.DragSource();
			this.dragSource45 = new MapEditor.DragSource();
			this.dragSource46 = new MapEditor.DragSource();
			this.dragSource47 = new MapEditor.DragSource();
			this.dragSource48 = new MapEditor.DragSource();
			this.dragSource49 = new MapEditor.DragSource();
			this.dragSource50 = new MapEditor.DragSource();
			this.dragSource51 = new MapEditor.DragSource();
			this.dragSource52 = new MapEditor.DragSource();
			this.dragSource53 = new MapEditor.DragSource();
			this.dragSource54 = new MapEditor.DragSource();
			this.dragSource55 = new MapEditor.DragSource();
			this.dragSource56 = new MapEditor.DragSource();
			this.dragSource57 = new MapEditor.DragSource();
			this.dragSource58 = new MapEditor.DragSource();
			this.dragSource59 = new MapEditor.DragSource();
			this.dragSource60 = new MapEditor.DragSource();
			this.dragSource61 = new MapEditor.DragSource();
			this.dragSource62 = new MapEditor.DragSource();
			this.dragSource63 = new MapEditor.DragSource();
			this.dragSource64 = new MapEditor.DragSource();
			this.tabPagePlayer = new System.Windows.Forms.TabPage();
			this.grpBoxPlayerAttribute = new System.Windows.Forms.GroupBox();
			this.radBtnComputer = new System.Windows.Forms.RadioButton();
			this.radBtnPlayer = new System.Windows.Forms.RadioButton();
			this.labMoney = new System.Windows.Forms.Label();
			this.txtMoney = new System.Windows.Forms.TextBox();
			this.txtExp = new System.Windows.Forms.TextBox();
			this.labExp = new System.Windows.Forms.Label();
			this.labName = new System.Windows.Forms.Label();
			this.txtName = new System.Windows.Forms.TextBox();
			this.btnCancel = new System.Windows.Forms.Button();
			this.grpBoxPlayerPic = new System.Windows.Forms.GroupBox();
			this.panelPlayerIn = new System.Windows.Forms.Panel();
			this.dragSource33 = new MapEditor.DragSource();
			this.dragSource34 = new MapEditor.DragSource();
			this.dragSource35 = new MapEditor.DragSource();
			this.dragSource36 = new MapEditor.DragSource();
			this.panelPics = new System.Windows.Forms.Panel();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.imageListSmall = new System.Windows.Forms.ImageList(this.components);
			this.imageListBig = new System.Windows.Forms.ImageList(this.components);
			this.imageListPlayer = new System.Windows.Forms.ImageList(this.components);
			this.toolTip = new System.Windows.Forms.ToolTip(this.components);
			this.tabControl1.SuspendLayout();
			this.tabPageSmall.SuspendLayout();
			this.grpBoxSurrandings.SuspendLayout();
			this.panelSurrandingsIn.SuspendLayout();
			this.grpBoxLuck.SuspendLayout();
			this.panelLuckIn.SuspendLayout();
			this.grpBoxRandom.SuspendLayout();
			this.panelRandomIn.SuspendLayout();
			this.grpBoxBuidings.SuspendLayout();
			this.panelBuildingsIn.SuspendLayout();
			this.grpBoxRoads.SuspendLayout();
			this.panelRoadsIn.SuspendLayout();
			this.tabPageBig.SuspendLayout();
			this.grpBoxBig.SuspendLayout();
			this.panelBigIn.SuspendLayout();
			this.tabPagePlayer.SuspendLayout();
			this.grpBoxPlayerAttribute.SuspendLayout();
			this.grpBoxPlayerPic.SuspendLayout();
			this.panelPlayerIn.SuspendLayout();
			this.panelPics.SuspendLayout();
			this.SuspendLayout();
			// 
			// mainMenu
			// 
			this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					 this.menuFile,
																					 this.menuConnection});
			// 
			// menuFile
			// 
			this.menuFile.Index = 0;
			this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					 this.menuNew,
																					 this.menuOpen,
																					 this.menuSave,
																					 this.menuClose});
			this.menuFile.Text = "文件";
			// 
			// menuNew
			// 
			this.menuNew.Index = 0;
			this.menuNew.Text = "新建";
			this.menuNew.Click += new System.EventHandler(this.menuNew_Click);
			// 
			// menuOpen
			// 
			this.menuOpen.Index = 1;
			this.menuOpen.Text = "打开";
			this.menuOpen.Click += new System.EventHandler(this.menuOpen_Click);
			// 
			// menuSave
			// 
			this.menuSave.Index = 2;
			this.menuSave.Text = "保存";
			this.menuSave.Click += new System.EventHandler(this.menuSave_Click);
			// 
			// menuClose
			// 
			this.menuClose.Index = 3;
			this.menuClose.Text = "关闭";
			this.menuClose.Click += new System.EventHandler(this.menuClose_Click);
			// 
			// menuConnection
			// 
			this.menuConnection.Index = 1;
			this.menuConnection.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						   this.menuNewHost,
																						   this.menuConnectOtherHost,
																						   this.menuCancelConnection});
			this.menuConnection.Text = "连接";
			// 
			// menuNewHost
			// 
			this.menuNewHost.Index = 0;
			this.menuNewHost.Text = "新建主机";
			this.menuNewHost.Click += new System.EventHandler(this.menuNewHost_Click);
			// 
			// menuConnectOtherHost
			// 
			this.menuConnectOtherHost.Index = 1;
			this.menuConnectOtherHost.Text = "连接其他主机";
			this.menuConnectOtherHost.Click += new System.EventHandler(this.menuConnectOhterHost_Click);
			// 
			// menuCancelConnection
			// 
			this.menuCancelConnection.Index = 2;
			this.menuCancelConnection.Text = "取消连接";
			this.menuCancelConnection.Click += new System.EventHandler(this.menuCancelConnection_Click);
			// 
			// panelMap
			// 
			this.panelMap.AutoScroll = true;
			this.panelMap.AutoScrollMinSize = new System.Drawing.Size(2048, 1536);
			this.panelMap.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(192)), ((System.Byte)(0)));
			this.panelMap.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panelMap.BackgroundImage")));
			this.panelMap.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panelMap.ContextMenu = this.contextMenu;
			this.panelMap.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panelMap.Location = new System.Drawing.Point(272, 0);
			this.panelMap.Name = "panelMap";
			this.panelMap.Size = new System.Drawing.Size(360, 513);
			this.panelMap.TabIndex = 0;
			this.panelMap.MouseUp += new System.Windows.Forms.MouseEventHandler(this.panelMap_MouseUp);
			this.panelMap.Paint += new System.Windows.Forms.PaintEventHandler(this.panelMap_Paint);
			this.panelMap.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panelMap_MouseMove);
			this.panelMap.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.panelMap_MouseWheel);
			this.panelMap.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelMap_MouseDown);
			// 
			// contextMenu
			// 
			this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuRefresh});
			// 
			// menuRefresh
			// 
			this.menuRefresh.Index = 0;
			this.menuRefresh.Text = "刷新";
			this.menuRefresh.Click += new System.EventHandler(this.menuRefresh_Click);
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPageSmall);
			this.tabControl1.Controls.Add(this.tabPageBig);
			this.tabControl1.Controls.Add(this.tabPagePlayer);
			this.tabControl1.Dock = System.Windows.Forms.DockStyle.Left;
			this.tabControl1.ItemSize = new System.Drawing.Size(48, 17);
			this.tabControl1.Location = new System.Drawing.Point(0, 0);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(272, 513);
			this.tabControl1.TabIndex = 6;
			this.tabControl1.Click += new System.EventHandler(this.tabControl1_Click);
			// 
			// tabPageSmall
			// 
			this.tabPageSmall.Controls.Add(this.grpBoxSurrandings);
			this.tabPageSmall.Controls.Add(this.grpBoxLuck);
			this.tabPageSmall.Controls.Add(this.grpBoxRandom);
			this.tabPageSmall.Controls.Add(this.grpBoxBuidings);
			this.tabPageSmall.Controls.Add(this.grpBoxRoads);
			this.tabPageSmall.Location = new System.Drawing.Point(4, 21);
			this.tabPageSmall.Name = "tabPageSmall";
			this.tabPageSmall.Size = new System.Drawing.Size(264, 488);
			this.tabPageSmall.TabIndex = 0;
			this.tabPageSmall.Text = "小图片";
			// 
			// grpBoxSurrandings
			// 
			this.grpBoxSurrandings.Controls.Add(this.panelSurrandingsIn);
			this.grpBoxSurrandings.Dock = System.Windows.Forms.DockStyle.Top;
			this.grpBoxSurrandings.Location = new System.Drawing.Point(0, 304);
			this.grpBoxSurrandings.Name = "grpBoxSurrandings";
			this.grpBoxSurrandings.Size = new System.Drawing.Size(264, 176);
			this.grpBoxSurrandings.TabIndex = 4;
			this.grpBoxSurrandings.TabStop = false;
			this.grpBoxSurrandings.Text = "环境";
			// 
			// panelSurrandingsIn

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -