예제 #1
0
    public override void Undo()
    {
        VLayer layer = Edit.use.tile.GetLayer(layerIndex);

        layer.SetName(oldName);
        layer.SetVisible(oldVisible);
        layer.SetTransparent(oldTransparent);
        layer.SetOutline(oldOutline);
    }
예제 #2
0
    public override void Do()
    {
        VLayer layer = Edit.use.tile.GetLayer(layerIndex);

        oldName        = name;
        oldVisible     = visible;
        oldTransparent = transparent;
        oldOutline     = outline;

        layer.SetName(name);
        layer.SetVisible(visible);
        layer.SetTransparent(transparent);
        layer.SetOutline(outline);
    }