private void ExportFilesButton_Click(object sender, EventArgs e) { Dialogs.printDialogs(); }
public GraphicsForm() { InitializeComponent(); //Load INI IniFile.OpenSettingsFile(true, false); //Load dialogs if (Dialogs.readDialogs()) { Var.Mods = Var.Mods + "Custom dialogs loaded."; } //Rename window Var.GraphicsFormInstance = this; int _c = 0; IntPtr _window; do { _window = NativeMethods.FindWindowByCaption(IntPtr.Zero, "Desktop Fidget" + " Copy " + Convert.ToString(_c)); if (_window != IntPtr.Zero) { _c++; } }while (_window != IntPtr.Zero); Var.WINDOW_NAME = "Desktop Fidget" + " Copy " + Convert.ToString(_c); this.Text = Var.WINDOW_NAME; this.DoubleBuffered = true; //Cut frames for (int _b = 0; _b < 6; _b++) { if (_b != 1) { for (int _a = 0; _a < 40; _a++) { Var.CutFrame[_a + (_b * 40)] = SliceMainFrame(_a, _b); } } } //Starting loop threads responsible for changing images for each part //of the body. Thread threadlbil = new Thread(new ThreadStart(ImageLoops.LowerBodyImageLoop)); threadlbil.Name = "Lower Body Image Loop"; threadlbil.IsBackground = true; threadlbil.Start(); Thread threadtbil = new Thread(new ThreadStart(ImageLoops.UpperBodyImageLoop)); threadtbil.Name = "Upper Body Image Loop"; threadtbil.IsBackground = true; threadtbil.Start(); Thread threadwil = new Thread(new ThreadStart(ImageLoops.WingsImageLoop)); threadwil.Name = "Wings Image Loop"; threadwil.IsBackground = true; threadwil.Start(); Thread threadhcl = new Thread(new ThreadStart(MovementFunctions.HeightCalcLoop)); threadhcl.Name = "Height Calculation Loop"; threadhcl.IsBackground = true; threadhcl.Start(); Thread threadfm = new Thread(new ThreadStart(MovementFunctions.FidgetsMind)); threadfm.Name = "Random Movements Functions"; threadfm.IsBackground = true; threadfm.Start(); Thread threaddialogs = new Thread(new ThreadStart(Dialogs.dialogTick)); threaddialogs.Name = "Dialogs Loop"; threaddialogs.IsBackground = true; threaddialogs.Start(); }