Team drawing

This commit is contained in:
Anuken
2019-06-12 10:28:38 -04:00
parent 9363946874
commit dc3c27297f
2 changed files with 6 additions and 1 deletions

View File

@ -267,6 +267,8 @@ toolmode.eraseores = Erase Ores
toolmode.eraseores.description = Erase only ores.
toolmode.fillteams = Fill Teams
toolmode.fillteams.description = Fill teams instead of blocks.
toolmode.drawteams = Draw Teams
toolmode.drawteams.description = Draw teams instead of blocks.
filters.empty = [LIGHT_GRAY]No filters! Add one with the button below.
filter.distort = Distort

View File

@ -44,7 +44,7 @@ public enum EditorTool{
});
}
},
pencil("replace", "square"){
pencil("replace", "square", "drawteams"){
{
edit = true;
draggable = true;
@ -61,6 +61,9 @@ public enum EditorTool{
}else if(mode == 1){
//square mode
editor.drawBlocks(x, y, true, tile -> true);
}else if(mode == 2){
//draw teams
editor.drawCircle(x, y, tile -> tile.link().setTeam(editor.drawTeam));
}
}