public void UpdateUI(GameTime gameTime) { mouse.Update(); MapRegion.Update(gameTime); WaveInformation.Update(gameTime); CommandInfoBar.Update(gameTime); }
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); }
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); }