private void CustomKeysForm_VisibleChanged(object sender, EventArgs e) { if (mainOwner != null) { mainOwner.SetCustomKeysMode(this.Visible, hotkeyColorB.ForeColor); } // make sure the data in the dictionary is correct for the currently loaded map if (this.Visible && (relevantMap != Current.map)) { relevantMap = Current.map; dcAffinedAbilites = CollectAffinedAbilities(); } }
private void CustomKeysForm_VisibleChanged(object sender, EventArgs e) { if (mainOwner != null) mainOwner.SetCustomKeysMode(this.Visible, hotkeyColorB.ForeColor); // make sure the data in the dictionary is correct for the currently loaded map if (this.Visible && (relevantMap != Current.map)) { relevantMap = Current.map; dcAffinedAbilites = CollectAffinedAbilities(); } }