Beispiel #1
0
        /// <summary>
        /// Updates the current list of categories whenever the UpdateCategoriesEvent is called.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void OnUpdateCategories(object sender, UpdateCategoriesEventArgs args)
        {
            if (args.CommandFocus == Commands.Attack)
            {
                RefreshActionPanelList();
            }
            var categories = _displayManager.GetCategories((Commands)_defaultsHandler.CommandFocusNumber);

            _defaultsHandler.ActionCategories = categories;
        }