AGS.Editor.GUIController.AddMenuItems C# (CSharp) Метод

AddMenuItems() публичный Метод

public AddMenuItems ( IEditorComponent plugin, MenuCommands commands ) : void
plugin IEditorComponent
commands MenuCommands
Результат void
        public void AddMenuItems(IEditorComponent plugin, MenuCommands commands)
        {
            if (commands.Commands.Count > 0)
            {
                foreach (MenuCommand command in commands.Commands)
                {
                    if (command.ID != null)
                    {
                        RegisterMenuCommand(command.ID, plugin);
                    }
                    command.IDPrefix = plugin.ComponentID + CONTROL_ID_SPLIT;
                }
                _menuManager.AddMenuCommandGroup(commands);
            }
        }
GUIController