Skip to content

Commit

Permalink
add a label for dynamic komi
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba97531 committed Jul 20, 2018
1 parent 20611db commit c0707b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,11 @@ public void paint(Graphics g0) {
double ponderingSize = .02;

// dynamic komi
int dynamicKomiLabelX = this.getInsets().left;
int dynamicKomiLabelY = boardY + (int) (maxSize*0.86);

int dynamicKomiX = this.getInsets().left;
int dynamicKomiY = boardY + (int) (maxSize*0.86);
int dynamicKomiY = boardY + (int) (maxSize*0.89);
double dynamicKomiSize = .02;


Expand Down Expand Up @@ -397,6 +400,7 @@ public void paint(Graphics g0) {
}

if (Lizzie.leelaz.getDynamicKomi() != null) {
drawPonderingState(g, resourceBundle.getString("LizzieFrame.display.dynamic-komi"), dynamicKomiLabelX, dynamicKomiLabelY, dynamicKomiSize);
drawPonderingState(g, Lizzie.leelaz.getDynamicKomi(), dynamicKomiX, dynamicKomiY, dynamicKomiSize);
}

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/l10n/DisplayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ LizzieFrame.display.loading=Leela Zero is loading...
LizzieFrame.display.download-latest-network-prompt=Download the latest network file? This may take some time.
LizzieFrame.display.leelaz-missing=Did not find Leela Zero, update config.txt or download from Leela Zero homepage
LizzieFrame.display.network-missing=Did not find network/weights.\nUpdate config.txt (network-file) or download from Leela Zero homepage
LizzieFrame.display.dynamic-komi=dyn. komi:
1 change: 1 addition & 0 deletions src/main/resources/l10n/DisplayStrings_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ LizzieFrame.display.loading=Leela Zero\u6B63\u5728\u8F7D\u5165\u4E2D...
LizzieFrame.display.download-latest-network-prompt=Download the latest network file? This may take some time.
LizzieFrame.display.leelaz-missing=Did not find Leela Zero, update config.txt or download from Leela Zero homepage
LizzieFrame.display.network-missing=Did not find network/weights.\nUpdate config.txt (network-file) or download from Leela Zero homepage
LizzieFrame.display.dynamic-komi=dyn. komi:

0 comments on commit c0707b2

Please sign in to comment.