MCPcopy Create free account
hub / github.com/Neop/mudmap2 / createLayer

Method createLayer

src/main/java/mudmap2/frontend/WorldTab.java:340–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338 }
339
340 @Override
341 public void createLayer() {
342 String name = JOptionPane.showInputDialog(this, "Map name", "New map");
343 if(name != null) worldPanel.pushPosition(new WorldCoordinate(getWorld().getNewLayer(name).getId(), 0, 0));
344 repaint();
345 }
346
347 @Override
348 public void placeSelected(Place place) {

Callers 1

testCreateLayerMethod · 0.95

Calls 4

getWorldMethod · 0.95
pushPositionMethod · 0.80
getNewLayerMethod · 0.80
getIdMethod · 0.45

Tested by 1

testCreateLayerMethod · 0.76