mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Schematic Drill Indicator (#2069)
* schematic drill indicator * temp comment clarity * more implementations * implementation as suggested Anuke implementation as suggested Anuke * Update core/src/mindustry/world/blocks/production/Drill.java Co-authored-by: Anuken <arnukren@gmail.com> * suggested check & fix display Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
parent
7ffc170b76
commit
4bb7d007f8
@ -9,6 +9,7 @@ import arc.util.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.entities.*;
|
||||
import mindustry.entities.units.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.type.*;
|
||||
@ -66,6 +67,20 @@ public class Drill extends Block{
|
||||
idleSoundVolume = 0.003f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawRequestConfigTop(BuildRequest req, Eachable<BuildRequest> list){
|
||||
if(!req.worldContext) return;
|
||||
Tile tile = req.tile();
|
||||
if(tile == null) return;
|
||||
|
||||
countOre(req.tile());
|
||||
if(returnItem == null) return;
|
||||
|
||||
Draw.color(returnItem.color);
|
||||
Draw.rect("drill-top", req.drawx(), req.drawy());
|
||||
Draw.color();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBars(){
|
||||
super.setBars();
|
||||
@ -302,7 +317,7 @@ public class Drill extends Block{
|
||||
|
||||
if(dominantItem != null && drawMineItem){
|
||||
Draw.color(dominantItem.color);
|
||||
Draw.rect("drill-top", x, y, 1f);
|
||||
Draw.rect("drill-top", x, y);
|
||||
Draw.color();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user