Package tiled.core

Examples of tiled.core.Map


*/
public class AddLayerAction extends AbstractLayerAction
{

    protected void doPerformAction() {
        Map currentMap = editor.getMap();
        MapLayer newLayer = currentMap.addLayer();
        editor.setCurrentLayer(currentMap.getTotalLayers() - 1);
        if (viewer != null)
          viewer.editElement(newLayer,0);
    }
View Full Code Here


//
////        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("shift PAGE_DOWN"));
//    }

    protected void doPerformAction() {
        Map map = editor.getMap();
        int layerIndex = editor.getCurrentLayerIndex();

        if (layerIndex > 0) {
            map.swapLayerDown(layerIndex);
            editor.setCurrentLayer(layerIndex - 1);
        }
    }
View Full Code Here

//              Resources.getString("action.objectgroup.add.name"),
//              Resources.getString("action.objectgroup.add.tooltip"), Resources.getImageDescriptor("new-object-layer.png"));
//    }

    protected void doPerformAction() {
        Map currentMap = editor.getMap();
        MapLayer newGroup = currentMap.addObjectGroup();
        editor.setCurrentLayer(currentMap.getTotalLayers() - 1);
        if (viewer != null)
          viewer.editElement(newGroup,0);
    }
View Full Code Here

//
////        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("shift control M"));
//    }

    protected void doPerformAction() {
        Map map = editor.getMap();
        int layerIndex = editor.getCurrentLayerIndex();

        if (layerIndex > 0) {
            map.mergeLayerDown(layerIndex);
            editor.setCurrentLayer(layerIndex - 1);
        }
    }
View Full Code Here

TOP

Related Classes of tiled.core.Map

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.