mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-25 22:17:59 +07:00
Display liquid tooltips
This commit is contained in:
parent
7240da5016
commit
cef3d383b7
Binary file not shown.
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 226 B |
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -2705,7 +2705,7 @@ public class UnitTypes{
|
||||
mineTier = 1;
|
||||
buildSpeed = 0.8f;
|
||||
drag = 0.06f;
|
||||
speed = 2.5f;
|
||||
speed = 2.9f;
|
||||
rotateSpeed = 9f;
|
||||
accel = 0.1f;
|
||||
itemCapacity = 40;
|
||||
@ -2763,7 +2763,7 @@ public class UnitTypes{
|
||||
mineTier = 2;
|
||||
buildSpeed = 1.4f;
|
||||
drag = 0.06f;
|
||||
speed = 2.6f;
|
||||
speed = 2.8f;
|
||||
rotateSpeed = 5f;
|
||||
accel = 0.11f;
|
||||
itemCapacity = 70;
|
||||
|
@ -192,7 +192,6 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
||||
pass((x, y) -> {
|
||||
|
||||
if(block != Blocks.air){
|
||||
//TODO use d4 instead of d8 for no out-of-reach ores?
|
||||
if(nearAir(x, y)){
|
||||
if(block == Blocks.carbonWall && noise(x + 78, y, 4, 0.7f, 33f, 1f) > 0.52f){
|
||||
block = Blocks.graphiticWall;
|
||||
|
@ -476,7 +476,7 @@ public class PlacementFragment extends Fragment{
|
||||
}
|
||||
|
||||
//if the tile has a drop, display the drop
|
||||
if(hoverTile.drop() != null || hoverTile.wallDrop() != null){
|
||||
if(hoverTile.drop() != null || hoverTile.wallDrop() != null || hoverTile.floor().liquidDrop != null){
|
||||
return hoverTile;
|
||||
}
|
||||
}
|
||||
|
@ -129,6 +129,16 @@ public class Floor extends Block{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextureRegion getDisplayIcon(Tile tile){
|
||||
return liquidDrop == null ? super.getDisplayIcon(tile) : liquidDrop.uiIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName(Tile tile){
|
||||
return liquidDrop == null ? super.getDisplayName(tile) : liquidDrop.localizedName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createIcons(MultiPacker packer){
|
||||
super.createIcons(packer);
|
||||
|
Loading…
Reference in New Issue
Block a user