Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }