Merge pull request #2906 from Quezler/patch-53
Visualize maximum amount of power node wires
This commit is contained in:
@@ -628,6 +628,7 @@ bar.powerbalance = Power: {0}/s
|
|||||||
bar.powerstored = Stored: {0}/{1}
|
bar.powerstored = Stored: {0}/{1}
|
||||||
bar.poweramount = Power: {0}
|
bar.poweramount = Power: {0}
|
||||||
bar.poweroutput = Power Output: {0}
|
bar.poweroutput = Power Output: {0}
|
||||||
|
bar.powerlines = Connections: {0}/{1}
|
||||||
bar.items = Items: {0}
|
bar.items = Items: {0}
|
||||||
bar.capacity = Capacity: {0}
|
bar.capacity = Capacity: {0}
|
||||||
bar.unitcap = {0} {1}/{2}
|
bar.unitcap = {0} {1}/{2}
|
||||||
|
|||||||
@@ -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.items,
|
||||||
|
() -> (float)entity.power.links.size / (float)maxNodes
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user