Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.Point


  @Override
  protected void mouseMovedOrUp(int x, int y, int button) {
    if (button == 0 && !Mouse.isButtonDown(button)) {
      if (dragStartX == x && dragStartY == y && !dragging) {
        setMenuVisible(true);
        coords = map.mapOutsideToCoords(new Point(x, y));
        clickedWaypoint = getClickedWaypoint(coords.getX(), coords.getY());
        focus_mode = -1;
        if (withinManhattanLength(map.getPlayerPosition(), coords, 2)) {
          coords = map.getPlayerPosition();
          this.y = (int) SpoutClient.getHandle().thePlayer.posY;
View Full Code Here


  @Override
  protected void handleScroll(int x, int y, int scroll) {
    if (scroll > 0) {
      map.zoomBy(1.8);
      map.scrollTo(map.mapOutsideToCoords(new Point(x, y)), true, 200);
    } else if (scroll < 0) {
      map.zoomBy(1/1.8);
      map.scrollTo(map.mapOutsideToCoords(new Point(x, y)), true, 200);
    }
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.gui.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.