Esempio n. 1
0
 public void renderNoShift(int ox, int oy, BitmapFont font, int nw, int nh) {
   if (!activated) {
     draw.setColor(Color.BLACK);
   } else {
     if (purchased) {
       draw.setColor(Color.WHITE);
     } else {
       if (mouseHover) {
         draw.setColor(Color.GRAY);
       } else {
         draw.setColor(Color.DARK_GRAY);
       }
     }
   }
   draw.draw(texture, ox, oy, nw, nh);
   font.drawText(draw, costAmount + "", 100 - ox, 205 - oy);
   draw.setColor(Color.WHITE);
 }
Esempio n. 2
0
 public void render(int ox, int oy, BitmapFont font, int nw, int nh) {
   if (!activated) {
     draw.setColor(Color.BLACK);
   } else {
     if (purchased) {
       draw.setColor(Color.WHITE);
     } else {
       if (mouseHover) {
         draw.setColor(Color.GRAY);
       } else {
         draw.setColor(Color.DARK_GRAY);
       }
     }
   }
   draw.draw(texture, ox + (xref * nw), oy + (yref * nh), nw, nh);
   draw.draw(icon, 168 - ox + (xref * nw), 220 - oy + (yref * nh), 15, 15);
   font.drawText(draw, costAmount + "", 100 - ox + (xref * nw), 205 - oy + (yref * nh));
   boundingBox = new Rectangle(ox + (xref * nw), oy + (yref * nh), nw, nh);
   draw.setColor(Color.WHITE);
 }