Exemple #1
0
        private void Up()
        {
            index--;
            if (index < 0)
            {
                index = items.Length - 1;
            }

            choice = items[index];
        }
Exemple #2
0
        private void Down()
        {
            index++;
            if (index >= items.Length)
            {
                index = 0;
            }

            choice = items[index];
        }
Exemple #3
0
        public LoadMenu(
            DoomMenu menu,
            string name, int titleX, int titleY,
            int firstChoice,
            params TextBoxMenuItem[] items) : base(menu)
        {
            this.name   = new[] { name };
            this.titleX = new[] { titleX };
            this.titleY = new[] { titleY };
            this.items  = items;

            index  = firstChoice;
            choice = items[index];
        }