Skip to content

Commit

Permalink
Highlight when mouse over + Add to description
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Oct 26, 2024
1 parent 37a1097 commit da84f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ block.tranqol-smart-power-node.description = Transmits power to connected nodes.
block.tranqol-smart-beam-node.name = Smart Beam Node
block.tranqol-smart-beam-node.description = Transmits power to other blocks orthogonally. Stores a small amount of power.\nBeam color is randomized based on the graph id.
block.tranqol-power-analyzer.name = Power Analyzer
block.tranqol-power-analyzer.description = Displays the status of the power grid it's connected to.
block.tranqol-power-analyzer.description = Displays the status of the power grid it's connected to. Click/tap to view detailed information.
block.tranqol-beam-insulator.name = Beam Insulator
block.tranqol-beam-insulator.description = Blocks connection between beam nodes. Can be opened and closed to toggle connections.
block.tranqol-beam-diode.name = Beam Diode
Expand Down
5 changes: 5 additions & 0 deletions src/tranqol/world/blocks/power/PowerAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public void drawStatus(){ //Literally just removing the requirement of having a
}
}

@Override
public void drawSelect(){
Drawf.select(x, y, size * tilesize / 2f + 2f, Pal.power);
}

@Override
public BlockStatus status(){
float net = (power.graph.getLastScaledPowerIn() - power.graph.getLastScaledPowerOut()) * 60f;
Expand Down

0 comments on commit da84f5f

Please sign in to comment.