Пример #1
0
 public void UpdateUI(GameTime gameTime)
 {
     mouse.Update();
     MapRegion.Update(gameTime);
     WaveInformation.Update(gameTime);
     CommandInfoBar.Update(gameTime);
 }
Пример #2
0
        public void DrawUI(GameTime gameTime, SpriteBatch spriteBatch)
        {
            MapRegion.Draw(gameTime, spriteBatch, Font);
            WaveInformation.Draw(gameTime, spriteBatch, Font);
            CommandInfoBar.Draw(gameTime, spriteBatch, Font);

            mouse.Draw(spriteBatch);
        }
Пример #3
0
 public UserInterface(MapRegion mapRegion, WaveInformation waveInformation,
                      CommandInfoBar commandInfoBar, Session s)
 {
     MapRegion       = mapRegion;
     WaveInformation = waveInformation;
     CommandInfoBar  = commandInfoBar;
     session         = s;
     mouse           = new Mouse(session.Map.MouseTexture);
     session.SetUI(this);
 }