Пример #1
0
 public void mousemove(Coord c) {
   for (Widget wdg = lchild; wdg != null; wdg = wdg.prev) {
     if (!wdg.visible) continue;
     Coord cc = xlate(wdg.c, true);
     wdg.mousemove(c.add(cc.inv()));
   }
 }
Пример #2
0
 public void mousemove(Coord c) {
   if (dm) {
     this.c = this.c.add(c.add(doff.inv()));
   } else {
     super.mousemove(c);
   }
 }
Пример #3
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);
   }
 }
Пример #4
0
 public void mousemove(Coord c) {
   if (selorig != null) {
     CharPos ch = charat(c);
     if ((ch != null) && !ch.equals(lasthit)) {
       lasthit = ch;
       if (!dragging && !ch.equals(selorig)) dragging = true;
       int o = poscmp.compare(selorig, ch);
       if (o < 0) {
         selstart = selorig;
         selend = ch;
       } else if (o > 0) {
         selstart = ch;
         selend = selorig;
       } else {
         selstart = selend = null;
       }
     }
   } else {
     super.mousemove(c);
   }
 }
 public void mousemove(MouseEvent ev, Coord c) {
   setmods(ev);
   mc = c;
   if (mousegrab == null) root.mousemove(c);
   else mousegrab.mousemove(wdgxlate(c, mousegrab));
 }