Exemplo n.º 1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            SpriteBank.LoadTextures(Content);
            camera = new Camera2D(GraphicsDevice.Viewport);

            map = new Map.Map();
            GUI = new Gui(GraphicsDevice.Viewport);
        }
Exemplo n.º 2
0
        public void Update(ref GuiState gowno, Gui siki)
        {
            foreach (var item in buttons)
            {
                //update buttons
                if (item == null)
                {
                    break;
                }
                item.Update();
            }

            if (buttons[0].isClicked)
            {
                //if button first form top is clicked, swich to message box
                siki.CreateMessageBox("Map Saved", true);
            }
        }