Skip to content

Commit

Permalink
Set the opacity back.
Browse files Browse the repository at this point in the history
  • Loading branch information
naotokuwa committed Aug 5, 2023
1 parent 94305ff commit edcef7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void stopAnimation(int position) {
public void setWordPaneText(Word word) {
int[] dimensions = positionToDimensions(word.getWordID());
wordPanes[dimensions[0]][dimensions[1]].setWord(word.getWord());
wordPanes[dimensions[0]][dimensions[1]].setOpacity(1);
}

public void clearWordPaneText(int position) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/wordhunter/client/ui/WordPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public void setWord(String word){
this.label.setText(word);
}

public void setOpacity(long opacity){
this.label.setOpacity(opacity);
}

public void setColor(String color) {
this.label.setTextFill(Color.web(color));
}
Expand Down

0 comments on commit edcef7a

Please sign in to comment.