Skip to content

Commit

Permalink
Fix spacing of pondering text
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBlanvillain committed Oct 12, 2018
1 parent aeed86e commit 4dfb630
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ public void paint(Graphics g0) {

if (Lizzie.leelaz != null && Lizzie.leelaz.isLoaded()) {
if (Lizzie.config.showStatus) {
String pondKey = "LizzieFrame.display." + (Lizzie.leelaz.isPondering() ? "on" : "off");
String pondText =
resourceBundle.getString("LizzieFrame.display.pondering")
+ resourceBundle.getString(pondKey);
String switchText = resourceBundle.getString("LizzieFrame.prompt.switching");
String weightText = Lizzie.leelaz.currentWeight();
String text = pondText + " " + weightText + (Lizzie.leelaz.switching() ? switchText : "");
String statusKey = "LizzieFrame.display." + (Lizzie.leelaz.isPondering() ? "on" : "off");
String statusText = resourceBundle.getString(statusKey);
String ponderingText = resourceBundle.getString("LizzieFrame.display.pondering");
String switching = resourceBundle.getString("LizzieFrame.prompt.switching");
String switchingText = Lizzie.leelaz.switching() ? switching : "";
String weightText = Lizzie.leelaz.currentWeight().toString();
String text = ponderingText + " " + statusText + " " + weightText + " " + switchingText;
drawPonderingState(g, text, ponderingX, ponderingY, ponderingSize);
}

Expand Down

0 comments on commit 4dfb630

Please sign in to comment.