private void SetUpGui() { guiManager = new GuiManager(gui, new Vector2(level.WidthInPixels, 0), arial, infoFont); float left = level.WidthInPixels + 20; float middle = level.WidthInPixels + (gui.Width / 2) - (spikeButton.Width / 2); float right = level.WidthInPixels + gui.Width - 20 - spikeButton.Width; float bottom = level.HeightInPixels - 20 - waveButton.Height; float onebottom = level.HeightInPixels - 360 - waveButton.Height; float y = 150; guiManager.AddButton(arrowButton, arrowButtonPressed, new Vector2(left, y), "arrow"); guiManager.AddButton(spikeButton, spikeButtonPressed, new Vector2(middle, y), "spike"); guiManager.AddButton(bombButton, bombButtonPressed, new Vector2(right, y), "bomb"); guiManager.AddButton(waveButton, waveButtonPressed, new Vector2(left, bottom), "wave"); guiManager.AddButton(oneandOneButton, oneandOneButtonPressed, new Vector2(left, onebottom), "oneandone"); guiManager.AddButton(ofLoveButton, ofLoveButtonPressed, new Vector2(middle, onebottom), "oflove"); guiManager.AddButton(nuclearButton, nuclearButton, new Vector2(right, onebottom), "nuclear"); foreach (Button button in guiManager.ButtonList) { button.OnLeftMouseClick += new Button.FiredEvent(ButtonPressed); if (button.Name != "wave") { guiManager.AddWindow(window, new Vector2(left, 202), button.Name); } } }