Beispiel #1
0
 public void mousemove(Coord c) {
   if (dm && !Config.global_ui_lock) {
     if (ui.mainview != null && avagob == ui.mainview.playergob) {
       this.c = this.c.add(c.add(doff.inv()));
     } else if (parent instanceof Partyview) {
       ((Partyview) parent).moveparty(c.add(doff.inv()));
     }
   } else {
     super.mousemove(c);
   }
 }
Beispiel #2
0
 public boolean mouseup(Coord c, int button) {
   if (dm) {
     ui.grabmouse(null);
     dm = false;
     if (ui.mainview != null && avagob == ui.mainview.playergob) {
       Config.setWindowOpt(POSKEY, this.c.toString());
     } else if (parent instanceof Partyview) {
       ((Partyview) parent).saveparty();
     }
   } else {
     super.mouseup(c, button);
   }
   return (true);
 }