예제 #1
0
 public void draw(GOut g) {
   try {
     if (spr == null) spr = GSprite.create(this, res.get(), sdt.clone());
     spr.draw(g);
   } catch (Loading e) {
   }
   if (num != null) g.aimage(num, Inventory.sqsz, 1.0, 1.0);
 }
예제 #2
0
 @Override
 public void draw(GOut g) {
   Equipory e = ui.gui.getEquipory();
   if (e != null) {
     g.rimage(Window.bg, Coord.z, sz);
     g.image(sq, Coord.z);
     if (ui.gui.handSave.size() > 0) {
       for (GameUI.DraggedItem di : ui.gui.handSave) {
         GSprite spr = di.item.spr();
         if (spr != null) {
           int w = Math.min(spr.sz().x, sq.sz().x - 5);
           int h = Math.min(spr.sz().y, sq.sz().y - 5);
           spr.draw(g.reclipl(sq.sz().sub(w, h).div(2), g.sz.sub(5, 5)));
         }
         break;
       }
     }
   }
 }