Esempio n. 1
0
 public void draw(GOut g) {
   super.draw(g);
   if (lvlmask != null) {
     long now = System.currentTimeMillis();
     if (now - lvltime > 1000) {
       lvlmask.dispose();
       lvlmask = null;
     } else {
       g.chcolor(255, 255, 255, 255 - (int) ((255 * (now - lvltime)) / 1000));
       g.image(lvlmask, Coord.z);
     }
   }
 }
Esempio n. 2
0
 public void draw(GOut g) {
   int tn = 0;
   int y = 0;
   int h = Inventory.sqsz.y;
   boolean[] hl = new boolean[mods.size()];
   if (lfood != null) {
     for (int t : lfood.types) hl[t] = true;
   }
   g.aimage(levels, new Coord(sz.x / 2, y), 0.5, 0);
   y += levels.sz().y + 20;
   for (TypeMod m : mods) {
     if (m.rn != null) g.image(hl[tn] ? m.rh : m.rn, new Coord(0, y));
     if (m.ra != null) g.image(m.ra, new Coord(nw + 20, y + ((h - m.ra.sz().y) / 2)));
     tn++;
     y += h + 5;
   }
 }