Examples of makeQuadBrush()


Examples of de.yaams.extensions.basemap.tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

    // FIXME: this is an in-elegant hack, but it gets the user out
    // of custom brush mode
    // (reset the brush if necessary)
    if (currentBrush instanceof CustomBrush) {
      ShapeBrush sb = new ShapeBrush();
      sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
      sb.setTile(currentTile);
      setBrush(sb);
    }
  }
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

    currentMap = newMap;
    boolean mapLoaded = currentMap != null;

    // Create a default brush (protect against a bug with custom brushes)
    ShapeBrush sb = new ShapeBrush();
    sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
    setBrush(sb);

    tabbedTilesetsPane.setMap(currentMap);

    if (!mapLoaded) {
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

      brushes.add(brush);
    }

    for (int dimension : dimensions) {
      ShapeBrush brush = new ShapeBrush();
      brush.makeQuadBrush(new Rectangle(0, 0, dimension, dimension));
      brushes.add(brush);
    }
  }

  @Override
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

            brushes.add(brush);
        }

        for (int n = 0; n < dimensions.length; n++) {
            ShapeBrush brush = new ShapeBrush();
            brush.makeQuadBrush(new Rectangle(0, 0, dimensions[n], dimensions[n]));
            brushes.add(brush);
        }
    }

    public void paint(Graphics g) {
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

        //FIXME: this is an in-elegant hack, but it gets the user out
        //       of custom brush mode
        //(reset the brush if necessary)
        if (currentBrush instanceof CustomBrush) {
            ShapeBrush sb = new ShapeBrush();
            sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
            sb.setTile(currentTile);
            setBrush(sb);
        }
    }
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

        currentMap = newMap;
        boolean mapLoaded = currentMap != null;

        // Create a default brush (protect against a bug with custom brushes)
        ShapeBrush sb = new ShapeBrush();
        sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
        setBrush(sb);

        tabbedTilesetsPane.setMap(currentMap);

        if (!mapLoaded) {
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

    cursorHighlight = new SelectionLayer(1, 1);
    cursorHighlight.select(0, 0);
    cursorHighlight.setVisible(prefs.getBoolean("cursorhighlight", true));

    ShapeBrush sb = new ShapeBrush();
    sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
    setBrush(sb);
    setCurrentMap(currentMap);
    init = false;
   
    Display.getDefault().asyncExec(new Runnable() {
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

    // FIXME: this is an in-elegant hack, but it gets the user out
    // of custom brush mode
    // (reset the brush if necessary)
    if (currentBrush instanceof CustomBrush) {
      ShapeBrush sb = new ShapeBrush();
      sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
      sb.setTile(currentTile);
      setBrush(sb);
    }
  }
View Full Code Here

Examples of tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()

    currentMap = newMap;
//    boolean mapLoaded = currentMap != null;

    // Create a default brush (protect against a bug with custom brushes)
    ShapeBrush sb = new ShapeBrush();
    sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
    setBrush(sb);

    // Get the first non-null tile from the first tileset containing
    // non-null tiles.
    Vector<TileSet> tilesets = currentMap.getTilesets();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.