BBGamelib.CCMenuItemToggle.initWithItems C# (CSharp) Method

initWithItems() private method

private initWithItems ( CCMenuItem arrayOfItems, CCMenuItemDelegate block ) : void
arrayOfItems CCMenuItem
block CCMenuItemDelegate
return void
		void initWithItems(CCMenuItem[] arrayOfItems, CCMenuItemDelegate block)
		{
			base.initWithBlock (block);
			this.subItems = new List<CCMenuItem>(new List<CCMenuItem>(arrayOfItems));
			
			_currentItem = null;
			_selectedIndex = int.MaxValue;
			this.selectedIndex = 0;
			
			this.cascadeColorEnabled = true;
			this.cascadeOpacityEnabled = true;
		}
		/** returns the selected item */