private void waitUntilLoaded_Tick(object sender, EventArgs e) { if (Visible) { Hack4.StartObjective(); waitUntilLoaded.Enabled = false; } }
// When New Game is clicked in TitleScreen.cs private void Desktop_Load(object sender, EventArgs e) { if (currentTheme.defaultWallpaper != null) { desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, Width, Height); } //Start Menu Color - Commented until it works reliably //startmenuitems.Renderer = new MyRenderer(); //ProgramsToolStripMenuItem.DropDown.Renderer = new MyRenderer(); // Make Font Mandatory fontLoad(); // Play Start Sound Stream audio = currentTheme.startSound; startsound = new SoundPlayer(audio); startsound.Play(); // Hide the Startmenu startmenu.Hide(); // Check for and set VM Mode if (this.FormBorderStyle != FormBorderStyle.None) { Text = "Histacom2 - VM Mode"; } // Start the ClockTimer clockTimer.Start(); //nonimportantapps.Capacity = 100; this.SendToBack(); // Update the taskbar UpdateTaskbar(); // Bring to this the front this.BringToFront(); // Update the desktop Icons! ListViewItem lv = new ListViewItem("Recycle Bin", 7); desktopicons.Items.Add(lv); lv.Position = new Point(20, 20); desktopicons.Invalidate(); //DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("Recycle Bin", 7) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop")); Hack4.StartObjective(); }