Пример #1
0
        private MenuItem InitializeOPT()
        {
            MenuItem nuovo = new MenuItem("Options", false, null, null);

            nuovo.isEditable = false;


            IntSlider fx = new IntSlider(0, 100, 10);
            MenuItem  ng = new MenuItem(nuovo, "Sound Effects", false, fx, null);

            ng.setValueType(2);

            IntSlider cd = new IntSlider(0, 100, 10);
            MenuItem  lg = new MenuItem(nuovo, "Music", false, cd, null);

            lg.setValueType(2);

            IntSlider fps = new IntSlider(10, 140, 20);
            MenuItem  tl  = new MenuItem(nuovo, "FPS Ceiling", false, fps, null);

            tl.setValueType(2);

            MenuItem back = new MenuItem(nuovo, "Back", false, null, null);

            nuovo.appendChild(ng);
            nuovo.appendChild(lg);
            nuovo.appendChild(tl);
            nuovo.appendChild(back);

            return(nuovo);
        }
Пример #2
0
        private MenuItem Initialize1P()
        {
            MenuItem nuovo = new MenuItem("1 Player", false, null, null);

            MenuItem ng = new MenuItem(nuovo, "New Game", false, null, null);
            //MenuItem lg = new MenuItem(nuovo, "Load Game", false, null, null);
            MenuItem tl   = new MenuItem(nuovo, "Try Level", false, null, null);
            MenuItem back = new MenuItem(nuovo, "Back", false, null, null);

            nuovo.appendChild(ng);
            //nuovo.appendChild(lg);
            nuovo.appendChild(tl);
            nuovo.appendChild(back);

            return(nuovo);
        }