Team drawing
This commit is contained in:
@@ -267,6 +267,8 @@ toolmode.eraseores = Erase Ores
|
|||||||
toolmode.eraseores.description = Erase only ores.
|
toolmode.eraseores.description = Erase only ores.
|
||||||
toolmode.fillteams = Fill Teams
|
toolmode.fillteams = Fill Teams
|
||||||
toolmode.fillteams.description = Fill teams instead of blocks.
|
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.
|
filters.empty = [LIGHT_GRAY]No filters! Add one with the button below.
|
||||||
filter.distort = Distort
|
filter.distort = Distort
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public enum EditorTool{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pencil("replace", "square"){
|
pencil("replace", "square", "drawteams"){
|
||||||
{
|
{
|
||||||
edit = true;
|
edit = true;
|
||||||
draggable = true;
|
draggable = true;
|
||||||
@@ -61,6 +61,9 @@ public enum EditorTool{
|
|||||||
}else if(mode == 1){
|
}else if(mode == 1){
|
||||||
//square mode
|
//square mode
|
||||||
editor.drawBlocks(x, y, true, tile -> true);
|
editor.drawBlocks(x, y, true, tile -> true);
|
||||||
|
}else if(mode == 2){
|
||||||
|
//draw teams
|
||||||
|
editor.drawCircle(x, y, tile -> tile.link().setTeam(editor.drawTeam));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user