Esempio n. 1
0
		public void LoadContent(ContentManager content)
		{
			// TODO: Create a Pause menu for saving and loading.
			// TODO: If the UI has mouse hover, I don't want the game world to respond to it.
			LoadButton = new TextButton(_window, _hudCamera, new Vector2(100, 100), "Load");
			LoadButton.LoadContent(content);
			_children.Add(LoadButton);

			SaveButton = new TextButton(_window, _hudCamera, new Vector2(100, LoadButton.Bounds.Bottom + 16), "Save");
			SaveButton.LoadContent(content);
			_children.Add(SaveButton);

			// TODO: Find a better was to manage user items.
			BuildItemToolbar(content);

			FPSLabel = new Label(_window, _hudCamera, new Vector2(256, 300), "FPS:");
			FPSLabel.LoadContent(content);
			_children.Add(FPSLabel);
		}