public override void Undo() { VLayer layer = Edit.use.tile.GetLayer(layerIndex); layer.SetName(oldName); layer.SetVisible(oldVisible); layer.SetTransparent(oldTransparent); layer.SetOutline(oldOutline); }
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); }