private void InitializeComponent() { GameRegion_Menu = new GameRegion(); SuspendLayout(); GameRegion_Menu.AutoSize = true; GameRegion_Menu.BackColor = Color.Transparent; GameRegion_Menu.BackgroundImage = (Image)Shooting.Properties.Resources.Menu_Start; GameRegion_Menu.BackgroundImageLayout = ImageLayout.Center; GameRegion_Menu.Enabled = false; GameRegion_Menu.Location = new Point(59, 138); GameRegion_Menu.Name = "GameRegion_Menu"; GameRegion_Menu.Size = new Size(103, 28); GameRegion_Menu.TabIndex = 0; GameRegion_Menu.Visible = false; BackgroundImage = Properties.Resources.菜单背景; Controls.Add(GameRegion_Menu); Enabled = false; Name = nameof(GameState_MainMenu); Size = new Size(640, 480); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { this.gameRegion_ScoreValue = new GameRegion(); this.gameRegion_SpellLine = new GameRegion(); this.gameRegion_Power = new GameRegion(); this.gameRegion_Spell = new GameRegion(); this.gameRegion_Player = new GameRegion(); this.gameRegion_Score = new GameRegion(); this.gameRegion_LifeSelf = new GameRegion(); this.GameRegion_Main = new GameRegion(); this.gameRegion_BluePoint = new GameRegion(); this.gameRegion_GreenPoint = new GameRegion(); this.gameRegion_Graze = new GameRegion(); this.gameRegion_HiScoreValue = new GameRegion(); this.gameRegion1 = new GameRegion(); this.gameRegion_HiScore = new GameRegion(); this.SuspendLayout(); this.gameRegion_ScoreValue.BackColor = Color.Transparent; this.gameRegion_ScoreValue.BackgroundImageLayout = ImageLayout.Zoom; this.gameRegion_ScoreValue.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_ScoreValue.Location = new Point(488, 70); this.gameRegion_ScoreValue.Margin = new Padding(10, 1, 3, 1); this.gameRegion_ScoreValue.Name = "gameRegion_ScoreValue"; this.gameRegion_ScoreValue.Size = new Size(110, 16); this.gameRegion_ScoreValue.TabIndex = 7; this.gameRegion_SpellLine.BackColor = Color.Transparent; this.gameRegion_SpellLine.BackgroundImage = (Image)Resources.FiveStar; this.gameRegion_SpellLine.BackgroundImageLayout = ImageLayout.Zoom; this.gameRegion_SpellLine.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_SpellLine.Location = new Point(504, (int)sbyte.MaxValue); this.gameRegion_SpellLine.Margin = new Padding(10, 1, 3, 1); this.gameRegion_SpellLine.Name = "gameRegion_SpellLine"; this.gameRegion_SpellLine.Size = new Size(110, 16); this.gameRegion_SpellLine.TabIndex = 6; this.gameRegion_Power.BackColor = Color.Transparent; this.gameRegion_Power.BackgroundImage = (Image)Resources.FiveStar; this.gameRegion_Power.BackgroundImageLayout = ImageLayout.None; this.gameRegion_Power.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_Power.Location = new Point(442, 188); this.gameRegion_Power.Name = "gameRegion_Power"; this.gameRegion_Power.Size = new Size(163, 25); this.gameRegion_Power.TabIndex = 5; this.gameRegion_Spell.BackColor = Color.Transparent; this.gameRegion_Spell.BackgroundImage = (Image)Resources.Spell; this.gameRegion_Spell.BackgroundImageLayout = ImageLayout.None; this.gameRegion_Spell.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_Spell.Location = new Point(428, 125); this.gameRegion_Spell.Name = "gameRegion_Spell"; this.gameRegion_Spell.Size = new Size(70, 16); this.gameRegion_Spell.TabIndex = 4; this.gameRegion_Player.BackColor = Color.Transparent; this.gameRegion_Player.BackgroundImage = (Image)Resources.Player; this.gameRegion_Player.BackgroundImageLayout = ImageLayout.None; this.gameRegion_Player.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_Player.Location = new Point(428, 99); this.gameRegion_Player.Name = "gameRegion_Player"; this.gameRegion_Player.Size = new Size(70, 16); this.gameRegion_Player.TabIndex = 3; this.gameRegion_Score.BackColor = Color.Transparent; this.gameRegion_Score.BackgroundImage = (Image)Resources.Score; this.gameRegion_Score.BackgroundImageLayout = ImageLayout.None; this.gameRegion_Score.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_Score.Location = new Point(428, 67); this.gameRegion_Score.Name = "gameRegion_Score"; this.gameRegion_Score.Size = new Size(70, 16); this.gameRegion_Score.TabIndex = 2; this.gameRegion_LifeSelf.BackColor = Color.Transparent; this.gameRegion_LifeSelf.BackgroundImage = (Image)Resources.MyPlane; this.gameRegion_LifeSelf.BackgroundImageLayout = ImageLayout.Zoom; this.gameRegion_LifeSelf.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_LifeSelf.Location = new Point(504, 101); this.gameRegion_LifeSelf.Margin = new Padding(10, 1, 3, 1); this.gameRegion_LifeSelf.Name = "gameRegion_LifeSelf"; this.gameRegion_LifeSelf.Size = new Size(110, 16); this.gameRegion_LifeSelf.TabIndex = 0; this.GameRegion_Main.Location = new Point(36, 16); this.GameRegion_Main.MaximumSize = new Size(384, 448); this.GameRegion_Main.MinimumSize = new Size(384, 448); this.GameRegion_Main.Name = "GameRegion_Main"; this.GameRegion_Main.Size = new Size(384, 448); this.GameRegion_Main.TabIndex = 1; this.gameRegion_BluePoint.BackColor = Color.Transparent; this.gameRegion_BluePoint.BackgroundImage = (Image)Resources.FiveStar; this.gameRegion_BluePoint.BackgroundImageLayout = ImageLayout.None; this.gameRegion_BluePoint.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_BluePoint.Location = new Point(442, 214); this.gameRegion_BluePoint.Name = "gameRegion_BluePoint"; this.gameRegion_BluePoint.Size = new Size(163, 25); this.gameRegion_BluePoint.TabIndex = 9; this.gameRegion_GreenPoint.BackColor = Color.Transparent; this.gameRegion_GreenPoint.BackgroundImage = (Image)Resources.FiveStar; this.gameRegion_GreenPoint.BackgroundImageLayout = ImageLayout.None; this.gameRegion_GreenPoint.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_GreenPoint.Location = new Point(442, 240); this.gameRegion_GreenPoint.Name = "gameRegion_GreenPoint"; this.gameRegion_GreenPoint.Size = new Size(163, 25); this.gameRegion_GreenPoint.TabIndex = 10; this.gameRegion_Graze.BackColor = Color.Transparent; this.gameRegion_Graze.BackgroundImage = (Image)Resources.FiveStar; this.gameRegion_Graze.BackgroundImageLayout = ImageLayout.None; this.gameRegion_Graze.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_Graze.Location = new Point(442, 266); this.gameRegion_Graze.Name = "gameRegion_Graze"; this.gameRegion_Graze.Size = new Size(163, 25); this.gameRegion_Graze.TabIndex = 11; this.gameRegion_HiScoreValue.BackColor = Color.Transparent; this.gameRegion_HiScoreValue.BackgroundImageLayout = ImageLayout.Zoom; this.gameRegion_HiScoreValue.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_HiScoreValue.Location = new Point(488, 47); this.gameRegion_HiScoreValue.Margin = new Padding(10, 1, 3, 1); this.gameRegion_HiScoreValue.Name = "gameRegion_HiScoreValue"; this.gameRegion_HiScoreValue.Size = new Size(110, 16); this.gameRegion_HiScoreValue.TabIndex = 12; this.gameRegion1.BackColor = Color.Transparent; this.gameRegion1.BackgroundImageLayout = ImageLayout.Zoom; this.gameRegion1.Location = new Point(451, 48); this.gameRegion1.Margin = new Padding(10, 3, 3, 3); this.gameRegion1.Name = "gameRegion1"; this.gameRegion1.Size = new Size(165, 20); this.gameRegion1.TabIndex = 12; this.gameRegion_HiScore.BackColor = Color.Transparent; this.gameRegion_HiScore.BackgroundImage = (Image)Resources.Score; this.gameRegion_HiScore.BackgroundImageLayout = ImageLayout.None; this.gameRegion_HiScore.BorderStyle = BorderStyle.Fixed3D; this.gameRegion_HiScore.Location = new Point(428, 44); this.gameRegion_HiScore.Name = "gameRegion_HiScore"; this.gameRegion_HiScore.Size = new Size(70, 16); this.gameRegion_HiScore.TabIndex = 13; this.AutoScaleMode = AutoScaleMode.None; this.BackgroundImage = (Image)Resources.background; this.Controls.Add((Control)this.gameRegion_Score); this.Controls.Add((Control)this.gameRegion_HiScore); this.Controls.Add((Control)this.gameRegion_HiScoreValue); this.Controls.Add((Control)this.gameRegion_Graze); this.Controls.Add((Control)this.gameRegion_GreenPoint); this.Controls.Add((Control)this.gameRegion_BluePoint); this.Controls.Add((Control)this.gameRegion_ScoreValue); this.Controls.Add((Control)this.gameRegion_SpellLine); this.Controls.Add((Control)this.gameRegion_Spell); this.Controls.Add((Control)this.gameRegion_Player); this.Controls.Add((Control)this.gameRegion_LifeSelf); this.Controls.Add((Control)this.GameRegion_Main); this.Controls.Add((Control)this.gameRegion_Power); this.Name = nameof(BaseStage); this.Size = new Size(640, 480); this.ResumeLayout(false); }