Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean mousedown(Coord c, int button) {
- switch(button){
- case 1: ui.grabmouse(this);
- dm = true;
- doff = c; break;
- case 3: if(pcoord == null)
- break;
- // System.out.println(c);
- Coord of = c.sub(pcoord);
- Coord hsz = sz.div(scale);
- c = c.add(hsz.div(2));
- System.out.println(c.y);
- System.out.println(pcoord.y);
- Coord pc = ui.sess.glob.oc.getgob(ui.mainview.playergob).getc();
- // System.out.println(pc);
- 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());
- }
- return(true);
- }
Add Comment
Please, Sign In to add comment