Author Topic: Delete Button  (Read 1114 times)

Will start this tomorrow afternoon.
Delete function is easy.

Code: [Select]
%rowId = LoadBricks_FileList.getSelectedID();

%buildName = LoadBricks_FileList.getRowTextById(%rowId);

if(isFile("saves/" @ %mapName @ "/" @ %buildName @ ".bls"))
{
fileDelete("saves/" @ %mapName @ "/" @ %buildName @ ".bls");

fileDelete("saves/" @ %mapName @ "/" @ %buildName);
}

Too lazy and tired to define %mapName, good night.
« Last Edit: February 04, 2012, 09:06:56 PM by jes00 »

You are going to have to make blockland refresh the map save directory.



Been busy, sorry.

I feel that putting effort into much needed bricks (see: development forum) is more important than a delete button.