public void draw(SpriteBatchWrapper sprites) { sprites.drawBackground(this.bakground); if (null != this.beatSigns) { foreach (BeatLayer beatsign in this.beatSigns) { sprites.drawBackground(beatsign.texture, beatsign.alpha); } } if (null != this.countSigns) { for (int i = 0; i < this.countsShown; i++) { sprites.drawBackground(this.countSigns[i]); } } }
public void draw(SpriteBatchWrapper sprites, GraphicsDevice device) { sprites.drawBackground(this.background); sprites.drawTextAt("Highscore: " + this.stageName, 50, 30, 1.0f, Color.White, "hud/ingametext"); //sprites.drawTextCentered(this.stageName + " - Highscore", -9, Color.Black); this.drawScores(sprites); this.nameInput.draw(sprites); }
internal void drawAsBackground(String name, SpriteBatchWrapper sprites) { if (null != name && this.textures.ContainsKey(name)){ sprites.drawBackground(this.textures[name]); } }
public void draw(SpriteBatchWrapper sprites, GraphicsDevice device) { sprites.drawBackground(background); Vector2 center = sprites.getCenterOfScreen(); int totalHeight = 0; foreach (MenuItem item in this.items) { totalHeight += item.getHeight(); } int y = (int)sprites.getCenterOfScreen().Y - (totalHeight/2); foreach (MenuItem item in this.items) { item.drawFromCenter(sprites, (int)center.X, y); y += item.getHeight(); } }