// ============================================== // public NewGame(Form callingForm) { DoubleBuffered = true; InitializeComponent(); this.MaximizeBox = false; this.MinimizeBox = false; gtPrompt = callingForm as GamertagPrompt; lbGamertag.Text = this.gtPrompt.Gamertag; lbHighScore.Text = String.Format("HIGH SCORE: {0}", this.gtPrompt.HighScore); isAudioOn = this.gtPrompt.SettingsForm.Audio; reticleStyle = this.gtPrompt.SettingsForm.ReticleStyle; reticleColor = this.gtPrompt.SettingsForm.ReticleColor; targetStyle = this.gtPrompt.SettingsForm.Target; bgStyle = this.gtPrompt.SettingsForm.Background; adjustSettingsReticle(); adjustSettingsTarget(); adjustSettingsBackground(); x_location = ClientSize.Width; y_location = ClientSize.Height; x_location_target = generateSpawn.Next(0, ClientSize.Width - (int)target.RADIUS * 3); y_location_target = generateSpawn.Next(0, ClientSize.Height - (int)target.RADIUS * 3); x_location_target_temp = ClientSize.Width - (int)target.RADIUS * 3; y_location_target_temp = ClientSize.Height - (int)target.RADIUS * 3; pomGraphics = CreateGraphics(); lbMultiplier.Hide(); Cursor.Hide(); }
private void newGameBtn_Click(object sender, EventArgs e) { GamertagPrompt GTprompt = new GamertagPrompt(settingsDialog); GTprompt.ShowDialog(); }