示例#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);
    }