Esempio n. 1
0
        public void down()
        {
            MenuComponentComposite f = this.currentSelectedComponent.getFather();

            if (f != null)
            {
                this.currentSelectedComponent.setFocus(false);
                IList <MenuComponentComposite> sibling = f.getAllChildren();
                this.currentComponentIndex    = (this.currentComponentIndex + 1) % (sibling.Count);
                this.currentSelectedComponent = sibling[this.currentComponentIndex];
                this.currentSelectedComponent.setFocus(true);

                if (Menu.soundEnabled)
                {
                    MenuSoundManager.playMoveDown();
                }
            }
        }