Guest User

Untitled

a guest
Apr 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1.  public boolean mousedown(Coord c, int button) {
  2.     switch(button){
  3.     case 1: ui.grabmouse(this);
  4.             dm = true;
  5.             doff = c; break;
  6.     case 3: if(pcoord == null)
  7.                 break;
  8.             // System.out.println(c);
  9.             Coord of = c.sub(pcoord);
  10.             Coord hsz = sz.div(scale);
  11.             c = c.add(hsz.div(2));
  12.             System.out.println(c.y);
  13.             System.out.println(pcoord.y);
  14.             Coord pc = ui.sess.glob.oc.getgob(ui.mainview.playergob).getc();
  15.             // System.out.println(pc);
  16.             ui.mainview.wdgmsg("click",Coord.fake, new Coord((int)Math.round(pc.x+(of.x)), (int)Math.round(pc.y+(of.y))),1,ui.modflags());
  17.     }
  18.     return(true);
  19.     }
Add Comment
Please, Sign In to add comment