Example #1
0
        public SelectableMenu(DoomMenu menu, string name, int titleX, int titleY, int firstChoice, params MenuItem[] items)
            : base(menu)
        {
            this.name   = new[] { name };
            this.titleX = new[] { titleX };
            this.titleY = new[] { titleY };
            this.items  = items;

            this.index  = firstChoice;
            this.choice = items[this.index];
        }
Example #2
0
 public HelpScreen(DoomMenu menu)
     : base(menu)
 {
     if (DoomApplication.Instance.IWad == "doom1")
     {
         this.pageCount = 2;
     }
     else
     {
         this.pageCount = 1;
     }
 }
Example #3
0
        public SaveMenu(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;

            this.index  = firstChoice;
            this.choice = items[this.index];

            this.lastSaveSlot = -1;
        }
Example #4
0
 public HelpScreen(DoomMenu menu)
     : base(menu)
 {
 }
Example #5
0
 public YesNoConfirm(DoomMenu menu, string text, Action action)
     : base(menu)
 {
     this.text   = text.Split('\n');
     this.action = action;
 }
Example #6
0
 public MenuDef(DoomMenu menu)
 {
     this.menu = menu;
 }
Example #7
0
 public PressAnyKey(DoomMenu menu, string text, Action action)
     : base(menu)
 {
     this.text   = text.Split('\n');
     this.action = action;
 }