private void MainMenuObjects() { MainMenu = false; MainMenuOpening = true; LevelFinished = false; mainTitle = new PXTitle(Color.FromArgb(255, 0, 0), Color.FromArgb(0, 255, 0), 100f, 0f, 800f, 100f); mainTitle.AlphaIsMax += mainTitle_AlphaIsMax; playTitle = new PXTitle(Color.FromArgb(255, 255, 0), Color.FromArgb(0, 0, 255), 100f, 0f, 800f, 100f); playTitle.Alpha = 120; playTitle.TitleFont = UpBoardFont; playTitle.X = 200; playTitle.Y = 200; highScoresTitle = new PXTitle(Color.FromArgb(255, 255, 0), Color.FromArgb(0, 0, 255), 100f, 0f, 800f, 100f); highScoresTitle.Alpha = 120; highScoresTitle.TitleFont = UpBoardFont; highScoresTitle.X = 300; highScoresTitle.Y = 500; exitTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 500f, 0f, 960f, 100f); exitTitle.Alpha = 120; exitTitle.TitleFont = UpBoardFont; exitTitle.X = 600; exitTitle.Y = 600; }
/// <summary> /// Mains the menu objects. /// </summary> private void MainMenuObjects() { MainMenu = false; MainMenuOpening = true; LevelFinished = false; mainTitle = new PXTitle(Color.FromArgb(255, 0, 0), Color.FromArgb(255, 104, 0), 100f, 0f, 800f, 100f); mainTitle.AlphaIsMax += mainTitle_AlphaIsMax; // Play Game playTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); playTitle.Alpha = 180; playTitle.TitleFont = UpBoardFont; playTitle.X = 400; playTitle.Y = 410; //Highscore(Resume Page) highScoresTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); highScoresTitle.Alpha = 180; highScoresTitle.TitleFont = UpBoardFont; highScoresTitle.X = 380; highScoresTitle.Y = 480; //Exit Game exitTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 500f, 0f, 960f, 100f); exitTitle.Alpha = 180; exitTitle.TitleFont = UpBoardFont; exitTitle.X = 400; exitTitle.Y = 550; //Highscore (Home Page) highScoresTitle1 = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); highScoresTitle1.Alpha = 180; highScoresTitle.TitleFont = UpBoardFont; highScoresTitle.X = 380; highScoresTitle.Y = 480; //option optionTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); optionTitle.Alpha = 180; optionTitle.TitleFont = UpBoardFont; optionTitle.X = 400; optionTitle.Y = 500; // mute title muteTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); muteTitle.Alpha = 180; muteTitle.TitleFont = UpBoardFont; muteTitle.X = 200; muteTitle.Y = 200; //Mute On and Off Button mutestatusTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); mutestatusTitle.Alpha = 180; mutestatusTitle.TitleFont = UpBoardFont; mutestatusTitle.X = 400; mutestatusTitle.Y = 200; // Contro Title controlTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); controlTitle.Alpha = 180; controlTitle.TitleFont = UpBoardFont; controlTitle.X = 200; controlTitle.Y = 280; // Control Option to Change controlStatusTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); controlStatusTitle.Alpha = 180; controlStatusTitle.TitleFont = UpBoardFont; controlStatusTitle.X = 400; controlStatusTitle.Y = 260; // Background Title backgroundTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); backgroundTitle.Alpha = 180; backgroundTitle.TitleFont = UpBoardFont; backgroundTitle.X = 200; backgroundTitle.Y = 360; // Background Number backgroundStatus = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); backgroundStatus.Alpha = 180; backgroundStatus.TitleFont = UpBoardFont; backgroundStatus.X = 530; backgroundStatus.Y = 360; // Go back in Resume Option Page backTitle = new PXTitle(Color.FromArgb(255, 0, 255), Color.FromArgb(0, 255, 255), 100f, 0f, 800f, 100f); backTitle.Alpha = 180; backTitle.TitleFont = UpBoardFont; backTitle.X = 200; backTitle.Y = 500; }