public RunController(Form1 parent, MainController mainMenu) { this.parent = parent; this.mainMenu = mainMenu; pauseMenu = new PauseController(parent, mainMenu, this); leaderboardMenu = new LeaderboardController(parent, mainMenu, this); }
public LeaderboardController(Form1 parent, MainController mainMenu, RunController run) { this.parent = parent; pauseMenu = new PauseController(parent, mainMenu, run); font = new Font("Rockwell", 16); scenePanel = new Panel() { Size = new Size(300, 300), BackgroundImage = Properties.Resources.pauseBackground, Parent = parent }; scenePanel.Location = new Point(parent.ClientSize.Width / 2 - scenePanel.Width / 2, parent.ClientSize.Height / 2 - scenePanel.Height / 2); scenePanel.Hide(); }