From de11ad9fcfb2ac74203b92c55d6ace21efefd7c0 Mon Sep 17 00:00:00 2001 From: milimoe <110188673+milimoe@users.noreply.github.com> Date: Thu, 27 Apr 2023 09:21:51 +0800 Subject: [PATCH] Add Copy RoomID Button (#9) --- FunGame.Desktop/UI/Main/Main.Designer.cs | 929 ++++++++++++----------- FunGame.Desktop/UI/Main/Main.cs | 31 +- FunGame.Desktop/UI/Main/Main.resx | 105 --- 3 files changed, 510 insertions(+), 555 deletions(-) diff --git a/FunGame.Desktop/UI/Main/Main.Designer.cs b/FunGame.Desktop/UI/Main/Main.Designer.cs index cae7ec4..a55e16c 100644 --- a/FunGame.Desktop/UI/Main/Main.Designer.cs +++ b/FunGame.Desktop/UI/Main/Main.Designer.cs @@ -31,552 +31,591 @@ namespace Milimoe.FunGame.Desktop.UI /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main)); - this.Exit = new FunGame.Desktop.Library.Component.ExitButton(this.components); - this.MinForm = new Library.Component.MinButton(); - this.Connection = new System.Windows.Forms.Label(); - this.Light = new System.Windows.Forms.Label(); - this.SendTalkText = new System.Windows.Forms.Button(); - this.TalkText = new System.Windows.Forms.TextBox(); - this.StartMatch = new System.Windows.Forms.Button(); - this.CheckMix = new System.Windows.Forms.CheckBox(); - this.CheckTeam = new System.Windows.Forms.CheckBox(); - this.RoomSetting = new System.Windows.Forms.Button(); - this.Login = new System.Windows.Forms.Button(); - this.NowAccount = new System.Windows.Forms.Label(); - this.AccountSetting = new System.Windows.Forms.Button(); - this.About = new System.Windows.Forms.Button(); - this.Room = new System.Windows.Forms.Label(); - this.RoomText = new System.Windows.Forms.TextBox(); - this.PresetText = new System.Windows.Forms.ComboBox(); - this.RoomBox = new System.Windows.Forms.GroupBox(); - this.QueryRoom = new System.Windows.Forms.Button(); - this.RoomList = new System.Windows.Forms.ListBox(); - this.Notice = new System.Windows.Forms.GroupBox(); - this.NoticeText = new FunGame.Desktop.Library.Component.TextArea(); - this.InfoBox = new System.Windows.Forms.GroupBox(); - this.TransparentRectControl = new FunGame.Desktop.Library.Component.TransparentRect(); - this.GameInfo = new FunGame.Desktop.Library.Component.TextArea(); - this.QuitRoom = new System.Windows.Forms.Button(); - this.CreateRoom = new System.Windows.Forms.Button(); - this.Logout = new System.Windows.Forms.Button(); - this.CheckHasPass = new System.Windows.Forms.CheckBox(); - this.Stock = new System.Windows.Forms.Button(); - this.Store = new System.Windows.Forms.Button(); - this.Copyright = new System.Windows.Forms.LinkLabel(); - this.StopMatch = new System.Windows.Forms.Button(); - this.RoomBox.SuspendLayout(); - this.Notice.SuspendLayout(); - this.InfoBox.SuspendLayout(); - this.TransparentRectControl.SuspendLayout(); - this.SuspendLayout(); - // - // Exit - // - this.Exit.Anchor = System.Windows.Forms.AnchorStyles.None; - this.Exit.BackColor = System.Drawing.Color.White; - this.Exit.BackgroundImage = global::Milimoe.FunGame.Desktop.Properties.Resources.exit; - this.Exit.FlatAppearance.BorderColor = System.Drawing.Color.White; - this.Exit.FlatAppearance.BorderSize = 0; - this.Exit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); - this.Exit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.Exit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.Exit.Font = new System.Drawing.Font("LanaPixel", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); - this.Exit.ForeColor = System.Drawing.Color.Red; - this.Exit.Location = new System.Drawing.Point(750, 3); - this.Exit.Name = "Exit"; - this.Exit.Size = new System.Drawing.Size(47, 47); - this.Exit.TabIndex = 15; - this.Exit.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.Exit.UseVisualStyleBackColor = false; - this.Exit.Click += new System.EventHandler(this.Exit_Click); + Exit = new ExitButton(components); + MinForm = new MinButton(components); + Connection = new Label(); + Light = new Label(); + SendTalkText = new Button(); + TalkText = new TextBox(); + StartMatch = new Button(); + CheckMix = new CheckBox(); + CheckTeam = new CheckBox(); + RoomSetting = new Button(); + Login = new Button(); + NowAccount = new Label(); + AccountSetting = new Button(); + About = new Button(); + Room = new Label(); + RoomText = new TextBox(); + PresetText = new ComboBox(); + RoomBox = new GroupBox(); + NowRoomID = new TextBox(); + CopyRoomID = new Button(); + RoomList = new ListBox(); + QueryRoom = new Button(); + Notice = new GroupBox(); + NoticeText = new TextArea(); + InfoBox = new GroupBox(); + TransparentRectControl = new TransparentRect(); + GameInfo = new TextArea(); + QuitRoom = new Button(); + CreateRoom = new Button(); + Logout = new Button(); + CheckHasPass = new CheckBox(); + Stock = new Button(); + Store = new Button(); + Copyright = new LinkLabel(); + StopMatch = new Button(); + RoomBox.SuspendLayout(); + Notice.SuspendLayout(); + InfoBox.SuspendLayout(); + TransparentRectControl.SuspendLayout(); + SuspendLayout(); // // Title // - this.Title.BackColor = System.Drawing.Color.Transparent; - this.Title.Font = new System.Drawing.Font("LanaPixel", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); - this.Title.Location = new System.Drawing.Point(3, 3); - this.Title.Name = "Title"; - this.Title.Size = new System.Drawing.Size(689, 47); - this.Title.TabIndex = 96; - this.Title.Text = "FunGame By Mili.cyou"; - this.Title.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + Title.BackColor = Color.Transparent; + Title.Font = new Font("LanaPixel", 26.25F, FontStyle.Bold, GraphicsUnit.Point); + Title.Location = new Point(3, 3); + Title.Size = new Size(689, 47); + Title.TabIndex = 96; + Title.Text = "FunGame By Mili.cyou"; + Title.TextAlign = ContentAlignment.MiddleLeft; + // + // Exit + // + Exit.Anchor = AnchorStyles.None; + Exit.BackColor = Color.White; + Exit.BackgroundImage = Properties.Resources.exit; + Exit.FlatAppearance.BorderColor = Color.White; + Exit.FlatAppearance.BorderSize = 0; + Exit.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 128); + Exit.FlatAppearance.MouseOverBackColor = Color.FromArgb(255, 192, 192); + Exit.FlatStyle = FlatStyle.Flat; + Exit.Font = new Font("LanaPixel", 36F, FontStyle.Bold, GraphicsUnit.Point); + Exit.ForeColor = Color.Red; + Exit.Location = new Point(750, 3); + Exit.Name = "Exit"; + Exit.RelativeForm = null; + Exit.Size = new Size(47, 47); + Exit.TabIndex = 15; + Exit.TextAlign = ContentAlignment.TopLeft; + Exit.UseVisualStyleBackColor = false; + Exit.Click += Exit_Click; // // MinForm // - this.MinForm.Anchor = System.Windows.Forms.AnchorStyles.None; - this.MinForm.BackColor = System.Drawing.Color.White; - this.MinForm.BackgroundImage = global::Milimoe.FunGame.Desktop.Properties.Resources.min; - this.MinForm.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.MinForm.FlatAppearance.BorderColor = System.Drawing.Color.LightGray; - this.MinForm.FlatAppearance.BorderSize = 0; - this.MinForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Gray; - this.MinForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.DarkGray; - this.MinForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.MinForm.Font = new System.Drawing.Font("LanaPixel", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); - this.MinForm.ForeColor = System.Drawing.Color.Red; - this.MinForm.Location = new System.Drawing.Point(698, 3); - this.MinForm.Name = "MinForm"; - this.MinForm.Size = new System.Drawing.Size(47, 47); - this.MinForm.TabIndex = 14; - this.MinForm.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.MinForm.UseVisualStyleBackColor = false; - this.MinForm.RelativeForm = this; + MinForm.Anchor = AnchorStyles.None; + MinForm.BackColor = Color.White; + MinForm.BackgroundImage = Properties.Resources.min; + MinForm.BackgroundImageLayout = ImageLayout.Center; + MinForm.FlatAppearance.BorderColor = Color.LightGray; + MinForm.FlatAppearance.BorderSize = 0; + MinForm.FlatAppearance.MouseDownBackColor = Color.Gray; + MinForm.FlatAppearance.MouseOverBackColor = Color.DarkGray; + MinForm.FlatStyle = FlatStyle.Flat; + MinForm.Font = new Font("LanaPixel", 36F, FontStyle.Bold, GraphicsUnit.Point); + MinForm.ForeColor = Color.Red; + MinForm.Location = new Point(698, 3); + MinForm.Name = "MinForm"; + MinForm.RelativeForm = this; + MinForm.Size = new Size(47, 47); + MinForm.TabIndex = 14; + MinForm.TextAlign = ContentAlignment.TopLeft; + MinForm.UseVisualStyleBackColor = false; // // Connection // - this.Connection.BackColor = System.Drawing.Color.Transparent; - this.Connection.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Connection.Location = new System.Drawing.Point(649, 424); - this.Connection.Margin = new System.Windows.Forms.Padding(3); - this.Connection.Name = "Connection"; - this.Connection.Size = new System.Drawing.Size(130, 23); - this.Connection.TabIndex = 92; - this.Connection.Text = "等待连接服务器"; - this.Connection.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + Connection.BackColor = Color.Transparent; + Connection.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + Connection.Location = new Point(649, 424); + Connection.Margin = new Padding(3); + Connection.Name = "Connection"; + Connection.Size = new Size(130, 23); + Connection.TabIndex = 92; + Connection.Text = "等待连接服务器"; + Connection.TextAlign = ContentAlignment.MiddleRight; // // Light // - this.Light.BackColor = System.Drawing.Color.Transparent; - this.Light.Image = global::Milimoe.FunGame.Desktop.Properties.Resources.yellow; - this.Light.Location = new System.Drawing.Point(777, 426); - this.Light.Name = "Light"; - this.Light.Size = new System.Drawing.Size(18, 18); - this.Light.TabIndex = 93; + Light.BackColor = Color.Transparent; + Light.Image = Properties.Resources.yellow; + Light.Location = new Point(777, 426); + Light.Name = "Light"; + Light.Size = new Size(18, 18); + Light.TabIndex = 93; // // SendTalkText // - this.SendTalkText.Anchor = System.Windows.Forms.AnchorStyles.None; - this.SendTalkText.BackColor = System.Drawing.Color.Transparent; - this.SendTalkText.BackgroundImage = global::Milimoe.FunGame.Desktop.Properties.Resources.send; - this.SendTalkText.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.SendTalkText.FlatAppearance.BorderSize = 0; - this.SendTalkText.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Teal; - this.SendTalkText.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.SendTalkText.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.SendTalkText.Font = new System.Drawing.Font("LanaPixel", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.SendTalkText.Location = new System.Drawing.Point(608, 421); - this.SendTalkText.Name = "SendTalkText"; - this.SendTalkText.Size = new System.Drawing.Size(51, 27); - this.SendTalkText.TabIndex = 3; - this.SendTalkText.TextAlign = System.Drawing.ContentAlignment.TopLeft; - this.SendTalkText.UseVisualStyleBackColor = false; - this.SendTalkText.Click += new System.EventHandler(this.SendTalkText_Click); + SendTalkText.Anchor = AnchorStyles.None; + SendTalkText.BackColor = Color.Transparent; + SendTalkText.BackgroundImage = Properties.Resources.send; + SendTalkText.BackgroundImageLayout = ImageLayout.Center; + SendTalkText.FlatAppearance.BorderSize = 0; + SendTalkText.FlatAppearance.MouseDownBackColor = Color.Teal; + SendTalkText.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); + SendTalkText.FlatStyle = FlatStyle.Flat; + SendTalkText.Font = new Font("LanaPixel", 11.25F, FontStyle.Regular, GraphicsUnit.Point); + SendTalkText.Location = new Point(608, 421); + SendTalkText.Name = "SendTalkText"; + SendTalkText.Size = new Size(51, 27); + SendTalkText.TabIndex = 3; + SendTalkText.TextAlign = ContentAlignment.TopLeft; + SendTalkText.UseVisualStyleBackColor = false; + SendTalkText.Click += SendTalkText_Click; // // TalkText // - this.TalkText.AllowDrop = true; - this.TalkText.Font = new System.Drawing.Font("LanaPixel", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.TalkText.ForeColor = System.Drawing.Color.DarkGray; - this.TalkText.Location = new System.Drawing.Point(317, 422); - this.TalkText.Name = "TalkText"; - this.TalkText.Size = new System.Drawing.Size(289, 26); - this.TalkText.TabIndex = 2; - this.TalkText.Text = "向消息队列发送消息..."; - this.TalkText.WordWrap = false; - this.TalkText.Click += new System.EventHandler(this.TalkText_ClickAndFocused); - this.TalkText.GotFocus += new System.EventHandler(this.TalkText_ClickAndFocused); - this.TalkText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TalkText_KeyUp); - this.TalkText.Leave += new System.EventHandler(this.TalkText_Leave); + TalkText.AllowDrop = true; + TalkText.Font = new Font("LanaPixel", 12.75F, FontStyle.Regular, GraphicsUnit.Point); + TalkText.ForeColor = Color.DarkGray; + TalkText.Location = new Point(317, 422); + TalkText.Name = "TalkText"; + TalkText.Size = new Size(289, 26); + TalkText.TabIndex = 2; + TalkText.Text = "向消息队列发送消息..."; + TalkText.WordWrap = false; + TalkText.Click += TalkText_ClickAndFocused; + TalkText.GotFocus += TalkText_ClickAndFocused; + TalkText.KeyUp += TalkText_KeyUp; + TalkText.Leave += TalkText_Leave; // // StartMatch // - this.StartMatch.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.StartMatch.Location = new System.Drawing.Point(665, 184); - this.StartMatch.Name = "StartMatch"; - this.StartMatch.Size = new System.Drawing.Size(132, 35); - this.StartMatch.TabIndex = 9; - this.StartMatch.Text = "开始匹配"; - this.StartMatch.UseVisualStyleBackColor = true; - this.StartMatch.Click += new System.EventHandler(this.StartMatch_Click); + StartMatch.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + StartMatch.Location = new Point(665, 184); + StartMatch.Name = "StartMatch"; + StartMatch.Size = new Size(132, 35); + StartMatch.TabIndex = 9; + StartMatch.Text = "开始匹配"; + StartMatch.UseVisualStyleBackColor = true; + StartMatch.Click += StartMatch_Click; // // CheckMix // - this.CheckMix.BackColor = System.Drawing.Color.Transparent; - this.CheckMix.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.CheckMix.Location = new System.Drawing.Point(675, 94); - this.CheckMix.Name = "CheckMix"; - this.CheckMix.Size = new System.Drawing.Size(123, 24); - this.CheckMix.TabIndex = 6; - this.CheckMix.Text = "混战模式房间"; - this.CheckMix.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - this.CheckMix.UseVisualStyleBackColor = false; - this.CheckMix.CheckedChanged += new System.EventHandler(this.CheckMix_CheckedChanged); + CheckMix.BackColor = Color.Transparent; + CheckMix.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + CheckMix.Location = new Point(675, 94); + CheckMix.Name = "CheckMix"; + CheckMix.Size = new Size(123, 24); + CheckMix.TabIndex = 6; + CheckMix.Text = "混战模式房间"; + CheckMix.TextAlign = ContentAlignment.BottomLeft; + CheckMix.UseVisualStyleBackColor = false; + CheckMix.CheckedChanged += CheckMix_CheckedChanged; // // CheckTeam // - this.CheckTeam.BackColor = System.Drawing.Color.Transparent; - this.CheckTeam.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.CheckTeam.Location = new System.Drawing.Point(675, 124); - this.CheckTeam.Name = "CheckTeam"; - this.CheckTeam.Size = new System.Drawing.Size(123, 24); - this.CheckTeam.TabIndex = 7; - this.CheckTeam.Text = "团队模式房间"; - this.CheckTeam.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - this.CheckTeam.UseVisualStyleBackColor = false; - this.CheckTeam.CheckedChanged += new System.EventHandler(this.CheckTeam_CheckedChanged); + CheckTeam.BackColor = Color.Transparent; + CheckTeam.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + CheckTeam.Location = new Point(675, 124); + CheckTeam.Name = "CheckTeam"; + CheckTeam.Size = new Size(123, 24); + CheckTeam.TabIndex = 7; + CheckTeam.Text = "团队模式房间"; + CheckTeam.TextAlign = ContentAlignment.BottomLeft; + CheckTeam.UseVisualStyleBackColor = false; + CheckTeam.CheckedChanged += CheckTeam_CheckedChanged; // // RoomSetting // - this.RoomSetting.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.RoomSetting.Location = new System.Drawing.Point(665, 225); - this.RoomSetting.Name = "RoomSetting"; - this.RoomSetting.Size = new System.Drawing.Size(132, 35); - this.RoomSetting.TabIndex = 10; - this.RoomSetting.Text = "房间设置"; - this.RoomSetting.UseVisualStyleBackColor = true; - this.RoomSetting.Visible = false; - this.RoomSetting.Click += new System.EventHandler(this.RoomSetting_Click); + RoomSetting.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + RoomSetting.Location = new Point(665, 225); + RoomSetting.Name = "RoomSetting"; + RoomSetting.Size = new Size(132, 35); + RoomSetting.TabIndex = 10; + RoomSetting.Text = "房间设置"; + RoomSetting.UseVisualStyleBackColor = true; + RoomSetting.Visible = false; + RoomSetting.Click += RoomSetting_Click; // // Login // - this.Login.Font = new System.Drawing.Font("LanaPixel", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Login.Location = new System.Drawing.Point(665, 380); - this.Login.Name = "Login"; - this.Login.Size = new System.Drawing.Size(132, 39); - this.Login.TabIndex = 13; - this.Login.Text = "登录账号"; - this.Login.UseVisualStyleBackColor = true; - this.Login.Click += new System.EventHandler(this.Login_Click); + Login.Font = new Font("LanaPixel", 15.75F, FontStyle.Regular, GraphicsUnit.Point); + Login.Location = new Point(665, 380); + Login.Name = "Login"; + Login.Size = new Size(132, 39); + Login.TabIndex = 13; + Login.Text = "登录账号"; + Login.UseVisualStyleBackColor = true; + Login.Click += Login_Click; // // NowAccount // - this.NowAccount.BackColor = System.Drawing.Color.Transparent; - this.NowAccount.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.NowAccount.Location = new System.Drawing.Point(659, 352); - this.NowAccount.Name = "NowAccount"; - this.NowAccount.Size = new System.Drawing.Size(141, 25); - this.NowAccount.TabIndex = 91; - this.NowAccount.Text = "请登录账号"; - this.NowAccount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + NowAccount.BackColor = Color.Transparent; + NowAccount.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + NowAccount.Location = new Point(659, 352); + NowAccount.Name = "NowAccount"; + NowAccount.Size = new Size(141, 25); + NowAccount.TabIndex = 91; + NowAccount.Text = "请登录账号"; + NowAccount.TextAlign = ContentAlignment.MiddleCenter; // // AccountSetting // - this.AccountSetting.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.AccountSetting.Location = new System.Drawing.Point(665, 317); - this.AccountSetting.Name = "AccountSetting"; - this.AccountSetting.Size = new System.Drawing.Size(65, 32); - this.AccountSetting.TabIndex = 11; - this.AccountSetting.Text = "设置"; - this.AccountSetting.UseVisualStyleBackColor = true; + AccountSetting.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + AccountSetting.Location = new Point(665, 317); + AccountSetting.Name = "AccountSetting"; + AccountSetting.Size = new Size(65, 32); + AccountSetting.TabIndex = 11; + AccountSetting.Text = "设置"; + AccountSetting.UseVisualStyleBackColor = true; // // About // - this.About.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.About.Location = new System.Drawing.Point(732, 317); - this.About.Name = "About"; - this.About.Size = new System.Drawing.Size(65, 32); - this.About.TabIndex = 12; - this.About.Text = "关于"; - this.About.UseVisualStyleBackColor = true; + About.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + About.Location = new Point(732, 317); + About.Name = "About"; + About.Size = new Size(65, 32); + About.TabIndex = 12; + About.Text = "关于"; + About.UseVisualStyleBackColor = true; // // Room // - this.Room.BackColor = System.Drawing.Color.Transparent; - this.Room.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Room.Location = new System.Drawing.Point(665, 263); - this.Room.Name = "Room"; - this.Room.Size = new System.Drawing.Size(132, 45); - this.Room.TabIndex = 90; - this.Room.Text = "房间号:114514"; - this.Room.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + Room.BackColor = Color.Transparent; + Room.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + Room.Location = new Point(665, 263); + Room.Name = "Room"; + Room.Size = new Size(132, 45); + Room.TabIndex = 90; + Room.Text = "房间号:114514"; + Room.TextAlign = ContentAlignment.MiddleCenter; // // RoomText // - this.RoomText.AllowDrop = true; - this.RoomText.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.RoomText.ForeColor = System.Drawing.Color.DarkGray; - this.RoomText.Location = new System.Drawing.Point(6, 226); - this.RoomText.Name = "RoomText"; - this.RoomText.Size = new System.Drawing.Size(114, 25); - this.RoomText.TabIndex = 1; - this.RoomText.Text = "键入房间代号..."; - this.RoomText.WordWrap = false; - this.RoomText.Click += new System.EventHandler(this.RoomText_ClickAndFocused); - this.RoomText.GotFocus += new System.EventHandler(this.RoomText_ClickAndFocused); - this.RoomText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.RoomText_KeyUp); - this.RoomText.Leave += new System.EventHandler(this.RoomText_Leave); + RoomText.AllowDrop = true; + RoomText.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + RoomText.ForeColor = Color.DarkGray; + RoomText.Location = new Point(6, 226); + RoomText.Name = "RoomText"; + RoomText.Size = new Size(114, 25); + RoomText.TabIndex = 1; + RoomText.Text = "键入房间代号..."; + RoomText.WordWrap = false; + RoomText.Click += RoomText_ClickAndFocused; + RoomText.GotFocus += RoomText_ClickAndFocused; + RoomText.KeyUp += RoomText_KeyUp; + RoomText.Leave += RoomText_Leave; // // PresetText // - this.PresetText.Anchor = ((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.PresetText.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.PresetText.Font = new System.Drawing.Font("LanaPixel", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.PresetText.FormattingEnabled = true; - this.PresetText.Items.AddRange(new object[] { "- 快捷消息 -" }); - this.PresetText.Location = new System.Drawing.Point(195, 422); - this.PresetText.Name = "PresetText"; - this.PresetText.Size = new System.Drawing.Size(121, 26); - this.PresetText.TabIndex = 1; - this.PresetText.SelectedIndexChanged += new System.EventHandler(this.PresetText_SelectedIndexChanged); + PresetText.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + PresetText.DropDownStyle = ComboBoxStyle.DropDownList; + PresetText.Font = new Font("LanaPixel", 11.25F, FontStyle.Regular, GraphicsUnit.Point); + PresetText.FormattingEnabled = true; + PresetText.Items.AddRange(new object[] { "- 快捷消息 -" }); + PresetText.Location = new Point(195, 422); + PresetText.Name = "PresetText"; + PresetText.Size = new Size(121, 26); + PresetText.TabIndex = 1; + PresetText.SelectedIndexChanged += PresetText_SelectedIndexChanged; // // RoomBox // - this.RoomBox.Anchor = ((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.RoomBox.BackColor = System.Drawing.Color.Transparent; - this.RoomBox.Controls.Add(this.QueryRoom); - this.RoomBox.Controls.Add(this.RoomList); - this.RoomBox.Controls.Add(this.RoomText); - this.RoomBox.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.RoomBox.Location = new System.Drawing.Point(3, 56); - this.RoomBox.Name = "RoomBox"; - this.RoomBox.Size = new System.Drawing.Size(186, 258); - this.RoomBox.TabIndex = 0; - this.RoomBox.TabStop = false; - this.RoomBox.Text = "房间列表"; + RoomBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + RoomBox.BackColor = Color.Transparent; + RoomBox.Controls.Add(NowRoomID); + RoomBox.Controls.Add(CopyRoomID); + RoomBox.Controls.Add(RoomList); + RoomBox.Controls.Add(RoomText); + RoomBox.Controls.Add(QueryRoom); + RoomBox.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + RoomBox.Location = new Point(3, 56); + RoomBox.Name = "RoomBox"; + RoomBox.Size = new Size(186, 258); + RoomBox.TabIndex = 0; + RoomBox.TabStop = false; + RoomBox.Text = "房间列表"; // - // QueryRoom + // NowRoomID // - this.QueryRoom.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.QueryRoom.Location = new System.Drawing.Point(126, 225); - this.QueryRoom.Name = "QueryRoom"; - this.QueryRoom.Size = new System.Drawing.Size(51, 27); - this.QueryRoom.TabIndex = 2; - this.QueryRoom.Text = "加入"; - this.QueryRoom.UseVisualStyleBackColor = true; - this.QueryRoom.Click += new System.EventHandler(this.QueryRoom_Click); + NowRoomID.AllowDrop = true; + NowRoomID.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + NowRoomID.ForeColor = Color.DarkGray; + NowRoomID.Location = new Point(6, 226); + NowRoomID.Name = "NowRoomID"; + NowRoomID.ReadOnly = true; + NowRoomID.Size = new Size(114, 25); + NowRoomID.TabIndex = 3; + NowRoomID.Text = "1919810"; + NowRoomID.WordWrap = false; + NowRoomID.Visible = false; + // + // CopyRoomID + // + CopyRoomID.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + CopyRoomID.Location = new Point(126, 225); + CopyRoomID.Name = "CopyRoomID"; + CopyRoomID.Size = new Size(51, 27); + CopyRoomID.TabIndex = 4; + CopyRoomID.Text = "复制"; + CopyRoomID.Visible = false; + CopyRoomID.UseVisualStyleBackColor = true; + CopyRoomID.Click += CopyRoomID_Click; // // RoomList // - this.RoomList.Anchor = ((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.RoomList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.RoomList.FormattingEnabled = true; - this.RoomList.ItemHeight = 19; - this.RoomList.Location = new System.Drawing.Point(0, 26); - this.RoomList.Name = "RoomList"; - this.RoomList.Size = new System.Drawing.Size(186, 192); - this.RoomList.TabIndex = 0; - this.RoomList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.RoomList_MouseDoubleClick); + RoomList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + RoomList.BorderStyle = BorderStyle.FixedSingle; + RoomList.FormattingEnabled = true; + RoomList.ItemHeight = 19; + RoomList.Location = new Point(0, 26); + RoomList.Name = "RoomList"; + RoomList.Size = new Size(186, 192); + RoomList.TabIndex = 0; + RoomList.MouseDoubleClick += RoomList_MouseDoubleClick; + // + // QueryRoom + // + QueryRoom.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + QueryRoom.Location = new Point(126, 225); + QueryRoom.Name = "QueryRoom"; + QueryRoom.Size = new Size(51, 27); + QueryRoom.TabIndex = 2; + QueryRoom.Text = "加入"; + QueryRoom.UseVisualStyleBackColor = true; + QueryRoom.Click += QueryRoom_Click; // // Notice // - this.Notice.Anchor = ((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.Notice.BackColor = System.Drawing.Color.Transparent; - this.Notice.Controls.Add(this.NoticeText); - this.Notice.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Notice.Location = new System.Drawing.Point(3, 317); - this.Notice.Name = "Notice"; - this.Notice.Size = new System.Drawing.Size(186, 110); - this.Notice.TabIndex = 94; - this.Notice.TabStop = false; - this.Notice.Text = "通知公告"; + Notice.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + Notice.BackColor = Color.Transparent; + Notice.Controls.Add(NoticeText); + Notice.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + Notice.Location = new Point(3, 317); + Notice.Name = "Notice"; + Notice.Size = new Size(186, 110); + Notice.TabIndex = 94; + Notice.TabStop = false; + Notice.Text = "通知公告"; // // NoticeText // - this.NoticeText.Anchor = ((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.NoticeText.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.NoticeText.EmptyTextTip = null; - this.NoticeText.Location = new System.Drawing.Point(6, 24); - this.NoticeText.Name = "NoticeText"; - this.NoticeText.ReadOnly = true; - this.NoticeText.Size = new System.Drawing.Size(174, 86); - this.NoticeText.TabIndex = 0; - this.NoticeText.Text = ""; + NoticeText.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + NoticeText.BorderStyle = BorderStyle.None; + NoticeText.EmptyTextTip = null; + NoticeText.Location = new Point(6, 24); + NoticeText.Name = "NoticeText"; + NoticeText.ReadOnly = true; + NoticeText.Size = new Size(174, 86); + NoticeText.TabIndex = 0; + NoticeText.Text = ""; // // InfoBox // - this.InfoBox.BackColor = System.Drawing.Color.Transparent; - this.InfoBox.Controls.Add(this.TransparentRectControl); - this.InfoBox.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.InfoBox.Location = new System.Drawing.Point(195, 56); - this.InfoBox.Name = "InfoBox"; - this.InfoBox.Size = new System.Drawing.Size(464, 363); - this.InfoBox.TabIndex = 95; - this.InfoBox.TabStop = false; - this.InfoBox.Text = "消息队列"; + InfoBox.BackColor = Color.Transparent; + InfoBox.Controls.Add(TransparentRectControl); + InfoBox.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + InfoBox.Location = new Point(195, 56); + InfoBox.Name = "InfoBox"; + InfoBox.Size = new Size(464, 363); + InfoBox.TabIndex = 95; + InfoBox.TabStop = false; + InfoBox.Text = "消息队列"; // // TransparentRectControl // - this.TransparentRectControl.Anchor = ((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.TransparentRectControl.BackColor = System.Drawing.Color.Transparent; - this.TransparentRectControl.BorderColor = System.Drawing.Color.Transparent; - this.TransparentRectControl.Controls.Add(this.GameInfo); - this.TransparentRectControl.Location = new System.Drawing.Point(0, 20); - this.TransparentRectControl.Name = "TransparentRectControl"; - this.TransparentRectControl.Opacity = 125; - this.TransparentRectControl.Radius = 20; - this.TransparentRectControl.ShapeBorderStyle = Milimoe.FunGame.Desktop.Library.Component.TransparentRect.ShapeBorderStyles.ShapeBSNone; - this.TransparentRectControl.Size = new System.Drawing.Size(464, 343); - this.TransparentRectControl.TabIndex = 2; - this.TransparentRectControl.TabStop = false; + TransparentRectControl.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + TransparentRectControl.BackColor = Color.Transparent; + TransparentRectControl.BorderColor = Color.Transparent; + TransparentRectControl.Controls.Add(GameInfo); + TransparentRectControl.Location = new Point(0, 20); + TransparentRectControl.Name = "TransparentRectControl"; + TransparentRectControl.Opacity = 125; + TransparentRectControl.Radius = 20; + TransparentRectControl.ShapeBorderStyle = TransparentRect.ShapeBorderStyles.ShapeBSNone; + TransparentRectControl.Size = new Size(464, 343); + TransparentRectControl.TabIndex = 2; + TransparentRectControl.TabStop = false; // // GameInfo // - this.GameInfo.Anchor = ((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.GameInfo.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.GameInfo.EmptyTextTip = null; - this.GameInfo.EmptyTextTipColor = System.Drawing.Color.Transparent; - this.GameInfo.Location = new System.Drawing.Point(6, 6); - this.GameInfo.Name = "GameInfo"; - this.GameInfo.ReadOnly = true; - this.GameInfo.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; - this.GameInfo.Size = new System.Drawing.Size(452, 331); - this.GameInfo.TabIndex = 1; - this.GameInfo.Text = ""; + GameInfo.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + GameInfo.BorderStyle = BorderStyle.None; + GameInfo.EmptyTextTip = null; + GameInfo.EmptyTextTipColor = Color.Transparent; + GameInfo.Location = new Point(6, 6); + GameInfo.Name = "GameInfo"; + GameInfo.ReadOnly = true; + GameInfo.ScrollBars = RichTextBoxScrollBars.Vertical; + GameInfo.Size = new Size(452, 331); + GameInfo.TabIndex = 1; + GameInfo.Text = ""; // // QuitRoom // - this.QuitRoom.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.QuitRoom.Location = new System.Drawing.Point(665, 184); - this.QuitRoom.Name = "QuitRoom"; - this.QuitRoom.Size = new System.Drawing.Size(132, 35); - this.QuitRoom.TabIndex = 9; - this.QuitRoom.Text = "退出房间"; - this.QuitRoom.UseVisualStyleBackColor = true; - this.QuitRoom.Visible = false; - this.QuitRoom.Click += new System.EventHandler(this.QuitRoom_Click); + QuitRoom.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + QuitRoom.Location = new Point(665, 184); + QuitRoom.Name = "QuitRoom"; + QuitRoom.Size = new Size(132, 35); + QuitRoom.TabIndex = 9; + QuitRoom.Text = "退出房间"; + QuitRoom.UseVisualStyleBackColor = true; + QuitRoom.Visible = false; + QuitRoom.Click += QuitRoom_Click; // // CreateRoom // - this.CreateRoom.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.CreateRoom.Location = new System.Drawing.Point(665, 225); - this.CreateRoom.Name = "CreateRoom"; - this.CreateRoom.Size = new System.Drawing.Size(132, 35); - this.CreateRoom.TabIndex = 10; - this.CreateRoom.Text = "创建房间"; - this.CreateRoom.UseVisualStyleBackColor = true; - this.CreateRoom.Click += new System.EventHandler(this.CreateRoom_Click); + CreateRoom.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + CreateRoom.Location = new Point(665, 225); + CreateRoom.Name = "CreateRoom"; + CreateRoom.Size = new Size(132, 35); + CreateRoom.TabIndex = 10; + CreateRoom.Text = "创建房间"; + CreateRoom.UseVisualStyleBackColor = true; + CreateRoom.Click += CreateRoom_Click; // // Logout // - this.Logout.Font = new System.Drawing.Font("LanaPixel", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Logout.Location = new System.Drawing.Point(665, 380); - this.Logout.Name = "Logout"; - this.Logout.Size = new System.Drawing.Size(132, 39); - this.Logout.TabIndex = 13; - this.Logout.Text = "退出登录"; - this.Logout.UseVisualStyleBackColor = true; - this.Logout.Visible = false; - this.Logout.Click += new System.EventHandler(this.Logout_Click); + Logout.Font = new Font("LanaPixel", 15.75F, FontStyle.Regular, GraphicsUnit.Point); + Logout.Location = new Point(665, 380); + Logout.Name = "Logout"; + Logout.Size = new Size(132, 39); + Logout.TabIndex = 13; + Logout.Text = "退出登录"; + Logout.UseVisualStyleBackColor = true; + Logout.Visible = false; + Logout.Click += Logout_Click; // // CheckHasPass // - this.CheckHasPass.BackColor = System.Drawing.Color.Transparent; - this.CheckHasPass.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.CheckHasPass.Location = new System.Drawing.Point(675, 154); - this.CheckHasPass.Name = "CheckHasPass"; - this.CheckHasPass.Size = new System.Drawing.Size(123, 24); - this.CheckHasPass.TabIndex = 8; - this.CheckHasPass.Text = "带密码的房间"; - this.CheckHasPass.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - this.CheckHasPass.UseVisualStyleBackColor = false; - this.CheckHasPass.CheckedChanged += new System.EventHandler(this.CheckHasPass_CheckedChanged); + CheckHasPass.BackColor = Color.Transparent; + CheckHasPass.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + CheckHasPass.Location = new Point(675, 154); + CheckHasPass.Name = "CheckHasPass"; + CheckHasPass.Size = new Size(123, 24); + CheckHasPass.TabIndex = 8; + CheckHasPass.Text = "带密码的房间"; + CheckHasPass.TextAlign = ContentAlignment.BottomLeft; + CheckHasPass.UseVisualStyleBackColor = false; + CheckHasPass.CheckedChanged += CheckHasPass_CheckedChanged; // // Stock // - this.Stock.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Stock.Location = new System.Drawing.Point(661, 56); - this.Stock.Name = "Stock"; - this.Stock.Size = new System.Drawing.Size(65, 32); - this.Stock.TabIndex = 4; - this.Stock.Text = "库存"; - this.Stock.UseVisualStyleBackColor = true; + Stock.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + Stock.Location = new Point(661, 56); + Stock.Name = "Stock"; + Stock.Size = new Size(65, 32); + Stock.TabIndex = 4; + Stock.Text = "库存"; + Stock.UseVisualStyleBackColor = true; // // Store // - this.Store.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Store.Location = new System.Drawing.Point(732, 56); - this.Store.Name = "Store"; - this.Store.Size = new System.Drawing.Size(65, 32); - this.Store.TabIndex = 5; - this.Store.Text = "商店"; - this.Store.UseVisualStyleBackColor = true; + Store.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + Store.Location = new Point(732, 56); + Store.Name = "Store"; + Store.Size = new Size(65, 32); + Store.TabIndex = 5; + Store.Text = "商店"; + Store.UseVisualStyleBackColor = true; // // Copyright // - this.Copyright.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.Copyright.Anchor = ((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.Copyright.BackColor = System.Drawing.Color.Transparent; - this.Copyright.Font = new System.Drawing.Font("LanaPixel", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.Copyright.LinkArea = new System.Windows.Forms.LinkArea(6, 10); - this.Copyright.LinkBehavior = System.Windows.Forms.LinkBehavior.AlwaysUnderline; - this.Copyright.LinkColor = System.Drawing.Color.Teal; - this.Copyright.Location = new System.Drawing.Point(3, 430); - this.Copyright.Name = "Copyright"; - this.Copyright.Size = new System.Drawing.Size(186, 23); - this.Copyright.TabIndex = 97; - this.Copyright.TabStop = true; - this.Copyright.Text = FunGameInfo.FunGame_CopyRight; - this.Copyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.Copyright.UseCompatibleTextRendering = true; - this.Copyright.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Copyright_LinkClicked); + Copyright.ActiveLinkColor = Color.FromArgb(0, 64, 64); + Copyright.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + Copyright.BackColor = Color.Transparent; + Copyright.Font = new Font("LanaPixel", 10.5F, FontStyle.Regular, GraphicsUnit.Point); + Copyright.LinkArea = new LinkArea(6, 10); + Copyright.LinkBehavior = LinkBehavior.AlwaysUnderline; + Copyright.LinkColor = Color.Teal; + Copyright.Location = new Point(3, 430); + Copyright.Name = "Copyright"; + Copyright.Size = new Size(186, 23); + Copyright.TabIndex = 97; + Copyright.TabStop = true; + Copyright.Text = "©2023 Mili.cyou. 米粒的糖果屋"; + Copyright.TextAlign = ContentAlignment.MiddleLeft; + Copyright.UseCompatibleTextRendering = true; + Copyright.LinkClicked += Copyright_LinkClicked; // // StopMatch // - this.StopMatch.Font = new System.Drawing.Font("LanaPixel", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.StopMatch.Location = new System.Drawing.Point(665, 184); - this.StopMatch.Name = "StopMatch"; - this.StopMatch.Size = new System.Drawing.Size(132, 35); - this.StopMatch.TabIndex = 9; - this.StopMatch.Text = "停止匹配"; - this.StopMatch.UseVisualStyleBackColor = true; - this.StopMatch.Visible = false; - this.StopMatch.Click += new System.EventHandler(this.StopMatch_Click); + StopMatch.Font = new Font("LanaPixel", 12F, FontStyle.Regular, GraphicsUnit.Point); + StopMatch.Location = new Point(665, 184); + StopMatch.Name = "StopMatch"; + StopMatch.Size = new Size(132, 35); + StopMatch.TabIndex = 9; + StopMatch.Text = "停止匹配"; + StopMatch.UseVisualStyleBackColor = true; + StopMatch.Visible = false; + StopMatch.Click += StopMatch_Click; // // Main // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackgroundImage = global::Milimoe.FunGame.Desktop.Properties.Resources.back; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.StopMatch); - this.Controls.Add(this.Copyright); - this.Controls.Add(this.Store); - this.Controls.Add(this.Stock); - this.Controls.Add(this.Logout); - this.Controls.Add(this.RoomSetting); - this.Controls.Add(this.QuitRoom); - this.Controls.Add(this.InfoBox); - this.Controls.Add(this.CreateRoom); - this.Controls.Add(this.Notice); - this.Controls.Add(this.RoomBox); - this.Controls.Add(this.PresetText); - this.Controls.Add(this.SendTalkText); - this.Controls.Add(this.TalkText); - this.Controls.Add(this.Room); - this.Controls.Add(this.About); - this.Controls.Add(this.AccountSetting); - this.Controls.Add(this.NowAccount); - this.Controls.Add(this.Login); - this.Controls.Add(this.CheckHasPass); - this.Controls.Add(this.CheckTeam); - this.Controls.Add(this.CheckMix); - this.Controls.Add(this.StartMatch); - this.Controls.Add(this.Light); - this.Controls.Add(this.Connection); - this.Controls.Add(this.MinForm); - this.Controls.Add(this.Title); - this.Controls.Add(this.Exit); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "Main"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "FunGame"; - this.RoomBox.ResumeLayout(false); - this.RoomBox.PerformLayout(); - this.Notice.ResumeLayout(false); - this.InfoBox.ResumeLayout(false); - this.TransparentRectControl.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new SizeF(7F, 17F); + AutoScaleMode = AutoScaleMode.Font; + BackgroundImage = Properties.Resources.back; + ClientSize = new Size(800, 450); + Controls.Add(StopMatch); + Controls.Add(Copyright); + Controls.Add(Store); + Controls.Add(Stock); + Controls.Add(Logout); + Controls.Add(RoomSetting); + Controls.Add(QuitRoom); + Controls.Add(InfoBox); + Controls.Add(CreateRoom); + Controls.Add(Notice); + Controls.Add(RoomBox); + Controls.Add(PresetText); + Controls.Add(SendTalkText); + Controls.Add(TalkText); + Controls.Add(Room); + Controls.Add(About); + Controls.Add(AccountSetting); + Controls.Add(NowAccount); + Controls.Add(Login); + Controls.Add(CheckHasPass); + Controls.Add(CheckTeam); + Controls.Add(CheckMix); + Controls.Add(StartMatch); + Controls.Add(Light); + Controls.Add(Connection); + Controls.Add(MinForm); + Controls.Add(Exit); + Icon = (Icon)resources.GetObject("$this.Icon"); + Name = "Main"; + StartPosition = FormStartPosition.CenterScreen; + Text = "FunGame"; + Controls.SetChildIndex(Exit, 0); + Controls.SetChildIndex(Title, 0); + Controls.SetChildIndex(MinForm, 0); + Controls.SetChildIndex(Connection, 0); + Controls.SetChildIndex(Light, 0); + Controls.SetChildIndex(StartMatch, 0); + Controls.SetChildIndex(CheckMix, 0); + Controls.SetChildIndex(CheckTeam, 0); + Controls.SetChildIndex(CheckHasPass, 0); + Controls.SetChildIndex(Login, 0); + Controls.SetChildIndex(NowAccount, 0); + Controls.SetChildIndex(AccountSetting, 0); + Controls.SetChildIndex(About, 0); + Controls.SetChildIndex(Room, 0); + Controls.SetChildIndex(TalkText, 0); + Controls.SetChildIndex(SendTalkText, 0); + Controls.SetChildIndex(PresetText, 0); + Controls.SetChildIndex(RoomBox, 0); + Controls.SetChildIndex(Notice, 0); + Controls.SetChildIndex(CreateRoom, 0); + Controls.SetChildIndex(InfoBox, 0); + Controls.SetChildIndex(QuitRoom, 0); + Controls.SetChildIndex(RoomSetting, 0); + Controls.SetChildIndex(Logout, 0); + Controls.SetChildIndex(Stock, 0); + Controls.SetChildIndex(Store, 0); + Controls.SetChildIndex(Copyright, 0); + Controls.SetChildIndex(StopMatch, 0); + RoomBox.ResumeLayout(false); + RoomBox.PerformLayout(); + Notice.ResumeLayout(false); + InfoBox.ResumeLayout(false); + TransparentRectControl.ResumeLayout(false); + ResumeLayout(false); + PerformLayout(); } #endregion @@ -614,5 +653,7 @@ namespace Milimoe.FunGame.Desktop.UI private Library.Component.TextArea GameInfo; private Library.Component.TextArea NoticeText; private Library.Component.TransparentRect TransparentRectControl; + private TextBox NowRoomID; + private Button CopyRoomID; } } \ No newline at end of file diff --git a/FunGame.Desktop/UI/Main/Main.cs b/FunGame.Desktop/UI/Main/Main.cs index 0a0757d..1cb501d 100644 --- a/FunGame.Desktop/UI/Main/Main.cs +++ b/FunGame.Desktop/UI/Main/Main.cs @@ -216,7 +216,7 @@ namespace Milimoe.FunGame.Desktop.UI } } break; - + case MainInvokeType.UpdateRoomMaster: if (objs != null && objs.Length > 0) { @@ -231,7 +231,7 @@ namespace Milimoe.FunGame.Desktop.UI } } break; - + default: break; } @@ -345,9 +345,13 @@ namespace Milimoe.FunGame.Desktop.UI WritelnGameInfo(DateTimeUtility.GetNowShortTime() + " 加入房间"); WritelnGameInfo("[ " + Usercfg.LoginUserName + " ] 已加入房间 -> [ " + room.Roomid + " ]"); Room.Text = "[ 当前房间 ]\n" + Convert.ToString(room.Roomid); + NowRoomID.Text = room.Roomid; } else + { + NowRoomID.Text = ""; Room.Text = "暂未进入房间"; + } } /// @@ -387,7 +391,7 @@ namespace Milimoe.FunGame.Desktop.UI GameInfo.ScrollToCaret(); } } - + /// /// 向消息队列输出一行系统信息 /// @@ -404,12 +408,14 @@ namespace Milimoe.FunGame.Desktop.UI private void InMain() { // 显示:匹配、创建房间 - // 隐藏:退出房间、房间设定 + // 隐藏:退出房间、房间设定、当前房间号、复制房间号 SetRoomid(Usercfg.InRoom); QuitRoom.Visible = false; StartMatch.Visible = true; RoomSetting.Visible = false; CreateRoom.Visible = true; + NowRoomID.Visible = false; + CopyRoomID.Visible = false; } /// @@ -417,12 +423,14 @@ namespace Milimoe.FunGame.Desktop.UI /// private void InRoom() { - // 显示:退出房间、房间设置 + // 显示:退出房间、房间设置、当前房间号、复制房间号 // 隐藏:停止匹配、创建房间 StopMatch.Visible = false; QuitRoom.Visible = true; CreateRoom.Visible = false; RoomSetting.Visible = true; + NowRoomID.Visible = true; + CopyRoomID.Visible = true; } /// @@ -801,7 +809,7 @@ namespace Milimoe.FunGame.Desktop.UI /// private void SetServerStatusLight(int light, bool waitlogin = false, int ping = 0) { - switch(light) + switch (light) { case (int)LightType.Green: Connection.Text = "服务器连接成功"; @@ -1000,6 +1008,17 @@ namespace Milimoe.FunGame.Desktop.UI } + /// + /// 复制房间号 + /// + /// + /// + private void CopyRoomID_Click(object sender, EventArgs e) + { + Clipboard.SetDataObject(Usercfg.InRoom.Roomid); + ShowMessage.TipMessage("已复制房间号到剪贴板"); + } + /// /// 查找房间 /// diff --git a/FunGame.Desktop/UI/Main/Main.resx b/FunGame.Desktop/UI/Main/Main.resx index c3678a7..59b2420 100644 --- a/FunGame.Desktop/UI/Main/Main.resx +++ b/FunGame.Desktop/UI/Main/Main.resx @@ -57,111 +57,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True -