Add a connections bar to powernodes
Bundle entry in next commit.
This commit is contained in:
committed by
GitHub
parent
bcb248907c
commit
a975da543b
@@ -112,6 +112,12 @@ public class PowerNode extends PowerBlock{
|
|||||||
(UI.formatAmount((int)entity.power.graph.getLastPowerStored())), UI.formatAmount((int)entity.power.graph.getLastCapacity())),
|
(UI.formatAmount((int)entity.power.graph.getLastPowerStored())), UI.formatAmount((int)entity.power.graph.getLastCapacity())),
|
||||||
() -> Pal.powerBar,
|
() -> Pal.powerBar,
|
||||||
() -> Mathf.clamp(entity.power.graph.getLastPowerStored() / entity.power.graph.getLastCapacity())));
|
() -> Mathf.clamp(entity.power.graph.getLastPowerStored() / entity.power.graph.getLastCapacity())));
|
||||||
|
|
||||||
|
bars.add("connections", entity -> new Bar(() ->
|
||||||
|
Core.bundle.format("bar.powerlines", entity.power.links.size, maxNodes),
|
||||||
|
() -> Pal.ammo,
|
||||||
|
() -> (float)entity.power.links.size / (float)maxNodes
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user