Merge branch 'master' of https://github.com/Anuken/Mindustry into 7.0-features
Conflicts: tools/src/mindustry/tools/Generators.java
This commit is contained in:
@@ -471,13 +471,14 @@ public class Generators{
|
||||
}
|
||||
|
||||
//draw base region on top to mask weapons
|
||||
if(type.drawBody) image.draw(get(type.region), true);
|
||||
int baseColor = Color.valueOf("ffa665").rgba();
|
||||
if(type.drawCell) image.draw(get(type.region), true);
|
||||
|
||||
if(type.drawCell){
|
||||
Pixmap baseCell = get(type.cellRegion);
|
||||
Pixmap cell = new Pixmap(type.cellRegion.width, type.cellRegion.height);
|
||||
cell.each((x, y) -> cell.set(x, y, Color.muli(baseCell.getRaw(x, y), baseColor)));
|
||||
Pixmap cell = baseCell.copy();
|
||||
|
||||
//replace with 0xffd37fff : 0xdca463ff for sharded colors?
|
||||
cell.replace(in -> in == 0xffffffff ? 0xffa664ff : in == 0xdcc6c6ff ? 0xd06b53ff : 0);
|
||||
|
||||
image.draw(cell, image.width / 2 - cell.width / 2, image.height / 2 - cell.height / 2, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user