// Update is called once per frame void Update() { if (PhotonNetwork.LocalPlayer.CustomProperties[MarcoPoloGame.IS_HUNTER] != null) { if ((bool)PhotonNetwork.LocalPlayer.CustomProperties[MarcoPoloGame.IS_HUNTER]) { HunterButton.SetActive(true); SkillButton.SetActive(false); } else { HunterButton.SetActive(false); SkillButton.SetActive(true); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormQuickCreate)); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.label1 = new System.Windows.Forms.Label(); this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); this.tPath = new System.Windows.Forms.TextBox(); this.hbBrowse = new Hunter3.HunterButton(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); this.btnGenerate = new Hunter3.HunterButton(); this.flowLayoutPanel1.SuspendLayout(); this.flowLayoutPanel3.SuspendLayout(); this.flowLayoutPanel2.SuspendLayout(); this.SuspendLayout(); // // flowLayoutPanel1 // this.flowLayoutPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.flowLayoutPanel1.Controls.Add(this.label1); this.flowLayoutPanel1.Controls.Add(this.flowLayoutPanel3); this.flowLayoutPanel1.Controls.Add(this.label2); this.flowLayoutPanel1.Controls.Add(this.label3); this.flowLayoutPanel1.Controls.Add(this.label4); this.flowLayoutPanel1.Controls.Add(this.flowLayoutPanel2); this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(407, 269); this.flowLayoutPanel1.TabIndex = 4; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(3, 0); this.label1.Name = "label1"; this.label1.Padding = new System.Windows.Forms.Padding(5); this.label1.Size = new System.Drawing.Size(78, 27); this.label1.TabIndex = 5; this.label1.Text = "生成路径:"; // // flowLayoutPanel3 // this.flowLayoutPanel3.AutoSize = true; this.flowLayoutPanel3.Controls.Add(this.tPath); this.flowLayoutPanel3.Controls.Add(this.hbBrowse); this.flowLayoutPanel3.Location = new System.Drawing.Point(3, 30); this.flowLayoutPanel3.Name = "flowLayoutPanel3"; this.flowLayoutPanel3.Size = new System.Drawing.Size(398, 30); this.flowLayoutPanel3.TabIndex = 5; // // tPath // this.tPath.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.tPath.Location = new System.Drawing.Point(3, 3); this.tPath.Name = "tPath"; this.tPath.Size = new System.Drawing.Size(362, 21); this.tPath.TabIndex = 0; // // hbBrowse // this.hbBrowse.AllowCheck = false; this.hbBrowse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("hbBrowse.BackgroundImage"))); this.hbBrowse.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.hbBrowse.Checked = false; this.hbBrowse.FlatAppearance.BorderSize = 0; this.hbBrowse.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.hbBrowse.Font = new System.Drawing.Font("Microsoft YaHei", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hbBrowse.ForeColor = System.Drawing.Color.White; this.hbBrowse.Location = new System.Drawing.Point(371, 3); this.hbBrowse.Name = "hbBrowse"; this.hbBrowse.Size = new System.Drawing.Size(24, 24); this.hbBrowse.TabIndex = 1; this.hbBrowse.Text = "..."; this.hbBrowse.UseVisualStyleBackColor = true; this.hbBrowse.Click += new System.EventHandler(this.hbBrowse_Click); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.ForeColor = System.Drawing.Color.White; this.label2.Location = new System.Drawing.Point(3, 63); this.label2.Name = "label2"; this.label2.Padding = new System.Windows.Forms.Padding(5); this.label2.Size = new System.Drawing.Size(380, 27); this.label2.TabIndex = 6; this.label2.Text = "程序将为您自动生成一个最简单的、本地工作模式的Hunter 3项目。"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.ForeColor = System.Drawing.Color.White; this.label3.Location = new System.Drawing.Point(3, 90); this.label3.Name = "label3"; this.label3.Padding = new System.Windows.Forms.Padding(5); this.label3.Size = new System.Drawing.Size(401, 78); this.label3.TabIndex = 7; this.label3.Text = "程序将为您生成一个project.h3的项目文件,您可以用Hunter 3打开它进行爬虫的下载,它默认下载的是doc格式的文档。同时,程序也将生成一个有14600" + "0多个词的词库dictionary.dic供爬虫软件下载文件。下载好的文件会放在存放项目文件的文件夹的FileDownloads下。"; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.ForeColor = System.Drawing.Color.White; this.label4.Location = new System.Drawing.Point(3, 168); this.label4.Name = "label4"; this.label4.Padding = new System.Windows.Forms.Padding(5); this.label4.Size = new System.Drawing.Size(392, 44); this.label4.TabIndex = 8; this.label4.Text = "Hunter 3的功能不仅仅只有这些。您可以修改项目配置,来实现服务器自动取词、自动上传文件、服务器排重等功能。"; // // flowLayoutPanel2 // this.flowLayoutPanel2.Controls.Add(this.btnGenerate); this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 215); this.flowLayoutPanel2.Name = "flowLayoutPanel2"; this.flowLayoutPanel2.Size = new System.Drawing.Size(396, 33); this.flowLayoutPanel2.TabIndex = 4; // // btnGenerate // this.btnGenerate.AllowCheck = false; this.btnGenerate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnGenerate.BackgroundImage"))); this.btnGenerate.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.btnGenerate.Checked = false; this.btnGenerate.FlatAppearance.BorderSize = 0; this.btnGenerate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnGenerate.Font = new System.Drawing.Font("Microsoft YaHei", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnGenerate.ForeColor = System.Drawing.Color.White; this.btnGenerate.Location = new System.Drawing.Point(369, 3); this.btnGenerate.Name = "btnGenerate"; this.btnGenerate.Size = new System.Drawing.Size(24, 24); this.btnGenerate.TabIndex = 2; this.btnGenerate.Text = "√"; this.btnGenerate.UseVisualStyleBackColor = true; this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click); // // FormQuickCreate // this.AcceptButton = this.btnGenerate; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(23)))), ((int)(((byte)(23)))), ((int)(((byte)(20))))); this.ClientSize = new System.Drawing.Size(407, 269); this.Controls.Add(this.flowLayoutPanel1); this.MaximizeBox = false; this.Name = "FormQuickCreate"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "快速新建项目"; this.flowLayoutPanel1.ResumeLayout(false); this.flowLayoutPanel1.PerformLayout(); this.flowLayoutPanel3.ResumeLayout(false); this.flowLayoutPanel3.PerformLayout(); this.flowLayoutPanel2.ResumeLayout(false); this.ResumeLayout(false); }