private void bt_hotkeys_Click(object sender, EventArgs e) { if (Window_Settings._this == null) { Window_Settings hf = new Window_Settings(); hf.Show(); } }
private void Settings_Load(object sender, EventArgs e) { _this = this; Load_Setups(); TabControl_ParagonPoints.BackColor = Color.Transparent; tabControl1.SelectedIndexChanged += TabControl1_SelectedIndexChanged; this.Top = Properties.Settings.Default.D3Helper_MainForm_StartPosition.Y; this.Left = Properties.Settings.Default.D3Helper_MainForm_StartPosition.X; // ----------- this.tb_assignedSkill1.ReadOnly = true; this.tb_assignedSkill2.ReadOnly = true; this.tb_assignedSkill3.ReadOnly = true; this.tb_assignedSkill4.ReadOnly = true; this.tb_assignedSkillRMB.ReadOnly = true; this.tb_assignedSkillLMB.ReadOnly = true; this.tb_assignedParagonPoints1.ReadOnly = true; this.tb_assignedParagonPoints2.ReadOnly = true; this.tb_assignedParagonPoints3.ReadOnly = true; this.tb_assignedParagonPoints4.ReadOnly = true; this.tb_assignedAutoGambleHotkey.ReadOnly = true; this.tb_assignedAutoPick.ReadOnly = true; this.tb_assignedAutoCube_UpgradeRare.ReadOnly = true; this.tb_assignedAutoCube_ConvertMaterial.ReadOnly = true; this.tb_assignedSkill1.KeyDown += tb_assignedSkill1_KeyDown; this.tb_assignedSkill2.KeyDown += tb_assignedSkill2_KeyDown; this.tb_assignedSkill3.KeyDown += tb_assignedSkill3_KeyDown; this.tb_assignedSkill4.KeyDown += tb_assignedSkill4_KeyDown; this.tb_assignedSkillRMB.KeyDown += tb_assignedSkillRMB_KeyDown; this.tb_assignedSkillLMB.KeyDown += tb_assignedSkillLMB_KeyDown; this.tb_assignedParagonPoints1.KeyDown += tb_assignedParagonPoints1_KeyDown; this.tb_assignedParagonPoints2.KeyDown += tb_assignedParagonPoints2_KeyDown; this.tb_assignedParagonPoints3.KeyDown += tb_assignedParagonPoints3_KeyDown; this.tb_assignedParagonPoints4.KeyDown += tb_assignedParagonPoints4_KeyDown; this.tb_assignedAutoGambleHotkey.KeyDown += Tb_assignedAutoGambleHotkey_KeyDown; this.tb_assignedAutoPick.KeyDown += Tb_assignedAutoPick_KeyDown; this.tb_assignedAutoCube_UpgradeRare.KeyDown += Tb_assignedAutoCube_UpgradeRare_KeyDown; this.tb_assignedAutoCube_ConvertMaterial.KeyDown += Tb_assignedAutoCube_ConvertMaterial_KeyDown; this.tb_assignedSkill1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot1).Modifiers); this.tb_assignedSkill2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot2).Modifiers); this.tb_assignedSkill3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot3).Modifiers); this.tb_assignedSkill4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot4).Modifiers); this.tb_assignedSkillRMB.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotRmb).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotRmb).Modifiers); this.tb_assignedSkillLMB.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotLmb).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotLmb).Modifiers); this.tb_assignedParagonPoints1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints1).Modifiers); this.tb_assignedParagonPoints2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints2).Modifiers); this.tb_assignedParagonPoints3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints3).Modifiers); this.tb_assignedParagonPoints4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints4).Modifiers); this.tb_assignedAutoGambleHotkey.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoGamble).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoGamble).Modifiers); this.tb_assignedAutoPick.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoPick).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoPick).Modifiers); this.tb_assignedAutoCube_UpgradeRare.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_UpgradeRare).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_UpgradeRare).Modifiers); this.tb_assignedAutoCube_ConvertMaterial.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_ConvertMaterial).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_ConvertMaterial).Modifiers); this.cb_autopotion.Checked = Properties.Settings.Default.AutoPotionBool; this.tb_autopotionhpvalue.Text = Properties.Settings.Default.AutoPotionValue.ToString(); this.cb_fps.Checked = Properties.Settings.Default.overlayfps; this.cb_xptracker.Checked = Properties.Settings.Default.overlayxptracker; this.cb_skillbuttons.Checked = Properties.Settings.Default.overlayskillbuttons; this.cb_riftprogressinrange.Checked = Properties.Settings.Default.overlayriftprogress; this.cb_autogamble.Checked = Properties.Settings.Default.AutoGambleBool; this.CB_ExtendedLogging.Checked = Properties.Settings.Default.Logger_extendedLog; this.cb_skillbuttonsastext.Checked = Properties.Settings.Default.overlayskillbuttonsastext; this.cb_conventionelements.Checked = Properties.Settings.Default.overlayconventiondraws; this.CB_ApsAndSnapShotAPs.Checked = Properties.Settings.Default.Overlay_APS; this.CB_EliteCircles.Checked = Properties.Settings.Default.Overlay_EliteCircles; this.tb_updaterate.Text = Properties.Settings.Default.D3Helper_UpdateRate.ToString(); this.tb_riftprogressradius.Text = Properties.Settings.Default.riftprogress_radius.ToString(); this.CB_AutoPick_Gem.Checked = Properties.Settings.Default.AutoPickSettings_Gem; this.CB_AutoPick_Material.Checked = Properties.Settings.Default.AutoPickSettings_Material; this.CB_AutoPick_Legendary.Checked = Properties.Settings.Default.AutoPickSettings_Legendary; this.CB_AutoPick_LegendaryAncient.Checked = Properties.Settings.Default.AutoPickSettings_LegendaryAncient; this.CB_AutoPick_GreaterRiftKeystone.Checked = Properties.Settings.Default.AutoPickSettings_GreaterRiftKeystone; this.CB_AutoPick_Whites.Checked = Properties.Settings.Default.AutoPickSettings_Whites; this.CB_AutoPick_Magics.Checked = Properties.Settings.Default.AutoPickSettings_Magics; this.CB_AutoPick_Rares.Checked = Properties.Settings.Default.AutoPickSettings_Rares; this.TB_AutoPick_PickupRadius.Text = Properties.Settings.Default.AutoPickSettings_PickupRadius.ToString(); this.cb_DisableAutocastOnNoOverride.Checked = Properties.Settings.Default.DisableAutocastOnNoOverride; this.cbox_ConvertMaterialFromTo.Text = Properties.Settings.Default.ConvertMaterialText; //-------------------- // load simpleCaste settings T_SimpleCast.load_to_datagrid(dataGridView_simpleCast); }
private void FormClose(Object sender, FormClosedEventArgs e) { _this = null; A_WPFOverlay.Overlay.selected_uxcontrol = null; }
private void Settings_Load(object sender, EventArgs e) { _this = this; typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, Panel_SkillBuilds_View, new object[] { true }); Load_Setups(); TabControl_ParagonPoints.BackColor = Color.Transparent; tabControl1.SelectedIndexChanged += TabControl1_SelectedIndexChanged; this.Top = Properties.Settings.Default.D3Helper_MainForm_StartPosition.Y; this.Left = Properties.Settings.Default.D3Helper_MainForm_StartPosition.X; // ----------- this.tb_assignedSkill1.ReadOnly = true; this.tb_assignedSkill2.ReadOnly = true; this.tb_assignedSkill3.ReadOnly = true; this.tb_assignedSkill4.ReadOnly = true; this.tb_assignedSkillRMB.ReadOnly = true; this.tb_assignedSkillLMB.ReadOnly = true; this.tb_assignedEditMode.ReadOnly = true; this.tb_assignedGearSwap1.ReadOnly = true; this.tb_assignedGearSwap2.ReadOnly = true; this.tb_assignedGearSwap3.ReadOnly = true; this.tb_assignedGearSwap4.ReadOnly = true; this.tb_assignedParagonPoints1.ReadOnly = true; this.tb_assignedParagonPoints2.ReadOnly = true; this.tb_assignedParagonPoints3.ReadOnly = true; this.tb_assignedParagonPoints4.ReadOnly = true; this.tb_assignedAutoGambleHotkey.ReadOnly = true; this.tb_assignedSkillBuild1.ReadOnly = true; this.tb_assignedSkillBuild2.ReadOnly = true; this.tb_assignedSkillBuild3.ReadOnly = true; this.tb_assignedSkillBuild4.ReadOnly = true; this.tb_assignedAutoPick.ReadOnly = true; this.tb_assignedAutoCube_UpgradeRare.ReadOnly = true; this.tb_assignedAutoCube_ConvertMaterial.ReadOnly = true; this.tb_assignedSkill1.KeyDown += tb_assignedSkill1_KeyDown; this.tb_assignedSkill2.KeyDown += tb_assignedSkill2_KeyDown; this.tb_assignedSkill3.KeyDown += tb_assignedSkill3_KeyDown; this.tb_assignedSkill4.KeyDown += tb_assignedSkill4_KeyDown; this.tb_assignedSkillRMB.KeyDown += tb_assignedSkillRMB_KeyDown; this.tb_assignedSkillLMB.KeyDown += tb_assignedSkillLMB_KeyDown; this.tb_assignedEditMode.KeyDown += tb_assignedEditMode_KeyDown; this.tb_assignedGearSwap1.KeyDown += tb_assignedGearSwap1_KeyDown; this.tb_assignedGearSwap2.KeyDown += tb_assignedGearSwap2_KeyDown; this.tb_assignedGearSwap3.KeyDown += tb_assignedGearSwap3_KeyDown; this.tb_assignedGearSwap4.KeyDown += tb_assignedGearSwap4_KeyDown; this.tb_assignedParagonPoints1.KeyDown += tb_assignedParagonPoints1_KeyDown; this.tb_assignedParagonPoints2.KeyDown += tb_assignedParagonPoints2_KeyDown; this.tb_assignedParagonPoints3.KeyDown += tb_assignedParagonPoints3_KeyDown; this.tb_assignedParagonPoints4.KeyDown += tb_assignedParagonPoints4_KeyDown; this.tb_assignedAutoGambleHotkey.KeyDown += Tb_assignedAutoGambleHotkey_KeyDown; this.tb_assignedSkillBuild1.KeyDown += Tb_assignedSkillBuild1_KeyDown; this.tb_assignedSkillBuild2.KeyDown += Tb_assignedSkillBuild2_KeyDown; this.tb_assignedSkillBuild3.KeyDown += Tb_assignedSkillBuild3_KeyDown; this.tb_assignedSkillBuild4.KeyDown += Tb_assignedSkillBuild4_KeyDown; this.tb_assignedAutoPick.KeyDown += Tb_assignedAutoPick_KeyDown; this.tb_assignedAutoCube_UpgradeRare.KeyDown += Tb_assignedAutoCube_UpgradeRare_KeyDown; this.tb_assignedAutoCube_ConvertMaterial.KeyDown += Tb_assignedAutoCube_ConvertMaterial_KeyDown; this.tb_assignedSkill1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot1).Modifiers); this.tb_assignedSkill2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot2).Modifiers); this.tb_assignedSkill3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot3).Modifiers); this.tb_assignedSkill4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlot4).Modifiers); this.tb_assignedSkillRMB.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotRmb).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotRmb).Modifiers); this.tb_assignedSkillLMB.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotLmb).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySlotLmb).Modifiers); this.tb_assignedEditMode.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyEditMode).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyEditMode).Modifiers); this.tb_assignedGearSwap1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap1).Modifiers); this.tb_assignedGearSwap2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap2).Modifiers); this.tb_assignedGearSwap3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap3).Modifiers); this.tb_assignedGearSwap4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyGearSwap4).Modifiers); this.tb_assignedParagonPoints1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints1).Modifiers); this.tb_assignedParagonPoints2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints2).Modifiers); this.tb_assignedParagonPoints3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints3).Modifiers); this.tb_assignedParagonPoints4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyParagonPoints4).Modifiers); this.tb_assignedAutoGambleHotkey.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoGamble).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoGamble).Modifiers); this.tb_assignedSkillBuild1.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild1).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild1).Modifiers); this.tb_assignedSkillBuild2.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild2).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild2).Modifiers); this.tb_assignedSkillBuild3.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild3).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild3).Modifiers); this.tb_assignedSkillBuild4.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild4).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeySkillBuild4).Modifiers); this.tb_assignedAutoPick.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoPick).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoPick).Modifiers); this.tb_assignedAutoCube_UpgradeRare.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_UpgradeRare).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_UpgradeRare).Modifiers); this.tb_assignedAutoCube_ConvertMaterial.Text = get_HotkeyText(H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_ConvertMaterial).Key, H_Keyboard.get_HotkeyFromSettingsString(Properties.Settings.Default.HotkeyAutoCube_ConvertMaterial).Modifiers); this.cb_autopotion.Checked = Properties.Settings.Default.AutoPotionBool; this.tb_autopotionhpvalue.Text = Properties.Settings.Default.AutoPotionValue.ToString(); this.cb_fps.Checked = Properties.Settings.Default.overlayfps; this.cb_xptracker.Checked = Properties.Settings.Default.overlayxptracker; this.cb_skillbuttons.Checked = Properties.Settings.Default.overlayskillbuttons; this.cb_riftprogressinrange.Checked = Properties.Settings.Default.overlayriftprogress; this.cb_autogamble.Checked = Properties.Settings.Default.AutoGambleBool; this.CB_ExtendedLogging.Checked = Properties.Settings.Default.Logger_extendedLog; this.cb_skillbuttonsastext.Checked = Properties.Settings.Default.overlayskillbuttonsastext; this.cb_conventionelements.Checked = Properties.Settings.Default.overlayconventiondraws; this.CB_ApsAndSnapShotAPs.Checked = Properties.Settings.Default.Overlay_APS; this.tb_updaterate.Text = Properties.Settings.Default.D3Helper_UpdateRate.ToString(); this.tb_riftprogressradius.Text = Properties.Settings.Default.riftprogress_radius.ToString(); this.CB_AutoPick_Gem.Checked = Properties.Settings.Default.AutoPickSettings_Gem; this.CB_AutoPick_Material.Checked = Properties.Settings.Default.AutoPickSettings_Material; this.CB_AutoPick_Legendary.Checked = Properties.Settings.Default.AutoPickSettings_Legendary; this.CB_AutoPick_LegendaryAncient.Checked = Properties.Settings.Default.AutoPickSettings_LegendaryAncient; this.CB_AutoPick_GreaterRiftKeystone.Checked = Properties.Settings.Default.AutoPickSettings_GreaterRiftKeystone; this.CB_AutoPick_Whites.Checked = Properties.Settings.Default.AutoPickSettings_Whites; this.CB_AutoPick_Magics.Checked = Properties.Settings.Default.AutoPickSettings_Magics; this.CB_AutoPick_Rares.Checked = Properties.Settings.Default.AutoPickSettings_Rares; this.TB_AutoPick_PickupRadius.Text = Properties.Settings.Default.AutoPickSettings_PickupRadius.ToString(); this.cb_DisableAutocastOnNoOverride.Checked = Properties.Settings.Default.DisableAutocastOnNoOverride; this.cbox_ConvertMaterialFromTo.Text = Properties.Settings.Default.ConvertMaterialText; }
private void FormClose(Object sender, FormClosedEventArgs e) { _this = null; }