public RecordBox(SpecActions op) { sA = op; InitializeComponent(); if (sA.macrorepeat) { cBStyle.SelectedIndex = 1; } else { cBStyle.SelectedIndex = 0; } AddtoDS4List(); ds4.Tick += ds4_Tick; ds4.Interval = 1; lbRecordTip.Visible = false; cBStyle.Visible = false; pnlMouseButtons.Location = new Point(pnlMouseButtons.Location.X, pnlMouseButtons.Location.Y - 75); if (sA.macrostag.Count > 0) { macros.AddRange(sA.macrostag); LoadMacro(); saved = true; } }
public KBM360(SpecActions ooo, Button buton, bool extras) { InitializeComponent(); sA = ooo; button = buton; Size = new System.Drawing.Size(763, 244); if (extras) { cBScanCode.Checked = button.Text.Contains("(SC)"); cBToggle.Checked = button.Text.Contains("(Toggle)"); } else { cBScanCode.Visible = false; cBToggle.Visible = false; } gBExtras.Visible = false; bnMacro.Visible = false; Text = Properties.Resources.SelectActionTitle.Replace("*action*", "Trigger"); foreach (System.Windows.Forms.Control control in Controls) { if (control is Button) { ((Button)control).Click += anybtn_Click; } } btnMOUSEDOWN.Visible = false; btnMOUSELEFT.Visible = false; btnMOUSERIGHT.Visible = false; btnMOUSEUP.Visible = false; ActiveControl = lBMacroOn; }
public KBM360(SpecActions ooo, Button buton, bool extras) { InitializeComponent(); sA = ooo; button = buton; Size = new Size(btnVolUp.Location.X + btnVolUp.Size.Width * 2, btnNUMENTER.Location.Y + btnNUMENTER.Size.Height * 2); if (extras) { cBScanCode.Checked = button.Text.Contains("(SC)"); cBToggle.Checked = button.Text.Contains("(Toggle)"); } else { cBScanCode.Visible = false; cBToggle.Visible = false; } gBExtras.Visible = false; bnMacro.Visible = false; X360Label.Visible = false; Text = Properties.Resources.SelectActionTitle.Replace("*action*", "Trigger"); foreach (Control control in Controls) { if (control is Button) { ((Button)control).Click += anybtn_Click; } } btnMOUSEDOWN.Visible = false; btnMOUSELEFT.Visible = false; btnMOUSERIGHT.Visible = false; btnMOUSEUP.Visible = false; rBRegular.Visible = false; rBShiftModifer.Visible = false; pBMouse.Visible = false; btnLEFTMOUSE.Visible = false; btn4THMOUSE.Visible = false; pnl360Controls.Visible = false; ActiveControl = lBMacroOn; btnGuide.Text = ""; }