mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 07:17:19 +07:00
Team drawing
This commit is contained in:
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user