Пример #1
0
 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]);
         }
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
 internal void drawAsBackground(String name, SpriteBatchWrapper sprites)
 {
     if (null != name && this.textures.ContainsKey(name)){
         sprites.drawBackground(this.textures[name]);
     }
 }
Пример #4
0
        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();
            }
        }