Example #1
0
        AddInMenuItem[] BuildMenuItems(GameControl gc)
        {
            AddIn[]         addIns    = addInManager.GetAddIns();
            AddInMenuItem[] menuItems = new AddInMenuItem[addIns.Length];

            for (int x = 0; x < addIns.Length; ++x)
            {
                menuItems[x] = new AddInMenuItem(addInManager, addIns[x], gc.AppID);
            }

            return(menuItems);
        }
Example #2
0
        AddInMenuItem[] BuildMenuItems( GameControl gc )
        {
            AddIn[] addIns = addInManager.GetAddIns();
            AddInMenuItem[] menuItems = new AddInMenuItem[ addIns.Length ];

            for ( int x = 0 ; x < addIns.Length ; ++x )
                menuItems[ x ] = new AddInMenuItem( addInManager, addIns[ x ], gc.AppID );

            return menuItems;
        }