Switched impact blocks to blue
This commit is contained in:
Binary file not shown.
@@ -14,8 +14,7 @@ import io.anuke.mindustry.world.Block;
|
|||||||
import io.anuke.mindustry.world.blocks.BlockPart;
|
import io.anuke.mindustry.world.blocks.BlockPart;
|
||||||
import io.anuke.mindustry.world.blocks.Floor;
|
import io.anuke.mindustry.world.blocks.Floor;
|
||||||
|
|
||||||
import static io.anuke.mindustry.Vars.content;
|
import static io.anuke.mindustry.Vars.*;
|
||||||
import static io.anuke.mindustry.Vars.ui;
|
|
||||||
|
|
||||||
public enum EditorTool{
|
public enum EditorTool{
|
||||||
pick{
|
pick{
|
||||||
@@ -139,6 +138,17 @@ public enum EditorTool{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else if(isAlt2()){
|
||||||
|
for(int cx = 0; cx < width; cx++){
|
||||||
|
for(int cy = 0; cy < height; cy++){
|
||||||
|
byte w = data.read(cx, cy, DataPosition.wall);
|
||||||
|
if(content.block(w).synthetic()){
|
||||||
|
TileDataMarker prev = editor.getPrev(cx, cy, false);
|
||||||
|
data.write(cx, cy, DataPosition.rotationTeam, (byte)editor.getDrawTeam().ordinal());
|
||||||
|
editor.onWrite(cx, cy, prev);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
int x1;
|
int x1;
|
||||||
boolean spanAbove, spanBelow;
|
boolean spanAbove, spanBelow;
|
||||||
@@ -202,6 +212,10 @@ public enum EditorTool{
|
|||||||
return Core.input.keyDown(KeyCode.TAB);
|
return Core.input.keyDown(KeyCode.TAB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isAlt2(){
|
||||||
|
return Core.input.keyDown(KeyCode.GRAVE);
|
||||||
|
}
|
||||||
|
|
||||||
public void touched(MapEditor editor, int x, int y){
|
public void touched(MapEditor editor, int x, int y){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user