Skip to content

Commit 8694674

Browse files
committed
Setting cursor to HAND in result table-cell
1 parent 5ce6d22 commit 8694674

16 files changed

Lines changed: 9 additions & 15 deletions

File tree

src/main/java/io/github/gravetii/controller/GameEndResultController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void updateItem(GameResultDisplayer.TableResult item, boolean empty) {
4343

4444
row.setOnMouseClicked(
4545
event -> {
46-
if (event.getClickCount() == 2 && !row.isEmpty()) {
46+
if (!row.isEmpty()) {
4747
GameResultDisplayer.TableResult result = row.getItem();
4848
if (!result.isEmpty()) {
4949
String word = result.getWord();

src/main/java/io/github/gravetii/controller/GamePlayStyler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void revisit(List<ImageView> imgViews) {
149149
this.revisitTimeline =
150150
new Timeline(
151151
new KeyFrame(
152-
Duration.millis(200),
152+
Duration.millis(300),
153153
(event) -> {
154154
ImageView imgView = itr.next();
155155
this.forValidClick(imgView);

src/main/java/io/github/gravetii/controller/GameResultController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void initialize() {
3333
TableRow<TableResult> row = new TableRow<>();
3434
row.setOnMouseClicked(
3535
event -> {
36-
if (event.getClickCount() == 2 && !row.isEmpty()) {
36+
if (!row.isEmpty()) {
3737
TableResult result = row.getItem();
3838
String word = result.getWord();
3939
if (result.isByUser()) {

src/main/resources/fxml/whatIsIt.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<?import javafx.scene.control.TextArea?>
44
<?import javafx.scene.text.Font?>
55

6-
<TextArea editable="false" prefHeight="200.0" prefWidth="200.0" text="WORDAGAM is just another word game.&#10;&#10;You are given a 4x4 grid with random letters. You try to form as many words as you can from those letters by selecting the neighbors of each letter successively. &#10;&#10;You can define the pace of each game by configuring the game time via the Settings menu. A progress bar at the bottom of the game window depicts the time left in the game.&#10;&#10;After the game is over, you will see all the possible list of words in the game. If you want to check out how a particular word is formed, just double-click on the word, and you will see the word formation in the grid.&#10;&#10;Hope you enjoy playing this game!" wrapText="true" xmlns="http://javafx.com/javafx/8.0.172-ea" xmlns:fx="http://javafx.com/fxml/1">
6+
<TextArea editable="false" prefHeight="200.0" prefWidth="200.0" text="WORDAGAM is just another word game.&#10;&#10;You are given a 4x4 grid of random letters. The goal is to form as many words as you can from those letters by selecting the neighbors of each letter successively. &#10;&#10;You can define the pace of each game by configuring the game time via the Settings menu. A progress bar at the bottom of the game window depicts the time left/elapsed in the game.&#10;&#10;After the game is over, you will see all the possible list of words in the game. If you want to check out how a particular word is formed, just click on the cell containing the word and you will see the word formation in the grid.&#10;&#10;Hope you enjoy playing this game!" wrapText="true" xmlns="http://javafx.com/javafx/8.0.172-ea" xmlns:fx="http://javafx.com/fxml/1">
77
<font>
88
<Font name="Avenir Medium" size="15.0" />
99
</font>

src/main/resources/theme/css/azure.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
.custom-button:hover {
99
-fx-background-color: #4095C6;
10-
-fx-cursor: HAND;
1110
}
1211

1312
.custom-button:pressed {

src/main/resources/theme/css/black_and_white.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
.custom-button:hover {
99
-fx-background-color: #8A8988;
10-
-fx-cursor: HAND;
1110
}
1211

1312
.custom-button:pressed {

src/main/resources/theme/css/bluezy.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
.custom-button:hover {
99
-fx-background-color: #3C7A79;
10-
-fx-cursor: HAND;
1110
}
1211

1312
.custom-button:pressed {

src/main/resources/theme/css/common.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
-fx-text-alignment: center;
2121
}
2222

23+
.custom-button:hover {
24+
-fx-cursor: HAND;
25+
}
26+
2327
#goBtn {
2428
-fx-font-size: 19px;
2529
}
@@ -43,6 +47,7 @@
4347

4448
.table-view .table-cell {
4549
-fx-text-fill: #FFFFFF;
50+
-fx-cursor: HAND;
4651
}
4752

4853
.table-view .table-column {

src/main/resources/theme/css/contra.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
.custom-button:hover {
99
-fx-background-color: #B96F6C;
10-
-fx-cursor: HAND;
1110
}
1211

1312
.custom-button:pressed {

src/main/resources/theme/css/euanthe.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
.custom-button:hover {
99
-fx-background-color: #AFAD5B;
10-
-fx-cursor: HAND;
1110
}
1211

1312
.custom-button:pressed {

0 commit comments

Comments
 (0)