mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-26 00:32:43 -07:00
Merge pull request #2701 from Voz-Duh/team-indicator-for-command-center
Team Indicator For Command Center
This commit is contained in:
commit
f3f33038e4
3 changed files with 2 additions and 2 deletions
BIN
core/assets-raw/sprites/blocks/units/command-center-team.png
Normal file
BIN
core/assets-raw/sprites/blocks/units/command-center-team.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 511 B |
Binary file not shown.
|
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 347 B |
|
|
@ -20,7 +20,7 @@ import mindustry.world.meta.*;
|
|||
|
||||
public class CommandCenter extends Block{
|
||||
public TextureRegionDrawable[] commandRegions = new TextureRegionDrawable[UnitCommand.all.length];
|
||||
public Color topColor = Pal.command, bottomColor = Color.valueOf("5e5e5e");
|
||||
public Color topColor = null, bottomColor = Color.valueOf("5e5e5e");
|
||||
public Effect effect = Fx.commandSend;
|
||||
|
||||
public CommandCenter(String name){
|
||||
|
|
@ -63,7 +63,7 @@ public class CommandCenter extends Block{
|
|||
|
||||
Draw.color(bottomColor);
|
||||
Draw.rect(commandRegions[team.data().command.ordinal()].getRegion(), tile.drawx(), tile.drawy() - 1, size, size);
|
||||
Draw.color(topColor);
|
||||
Draw.color(topColor == null ? team.color : topColor);
|
||||
Draw.rect(commandRegions[team.data().command.ordinal()].getRegion(), tile.drawx(), tile.drawy(), size, size);
|
||||
Draw.color();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue