public Game(int windowWidth, int windowHeight) { inputListener = new InputListener(); inputListener.KeyPressed += new EventHandler<Utilities.KeyEventArgs>(OnKeyPressed); currentMenu = new Menus.StandardMenu(windowWidth, windowHeight, windowWidth - 15, 0, 15, windowHeight); }
public Menu(int bW, int bH, int xO, int yO, int w, int h, Menu previous) { bufferWidth = bW; bufferHeight = bH; xOrigin = xO; yOrigin = yO; width = w; height = h; previousMenu = previous; nestDepth = previous.nestDepth + 1; }