Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 3c8fb474 rédigé par Rayane TABTI's avatar Rayane TABTI
Parcourir les fichiers

Setting the y pos of the refusal in transaction method

parent 8bb2a35a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -10,10 +10,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="5da3cc68-103b-4b76-99ba-87efacd066e5" name="Changes" comment="Add javadoc comments to all method and class.&#10;Delete unused import.&#10;Generate Javadoc.">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/highScorrer" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/highScorrer" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/money.txt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/money.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/saveShips.txt" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/example/poo/textData/saveShips.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/example/poo/utils/ViewManager.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/example/poo/utils/ViewManager.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......
......@@ -491,7 +491,7 @@ public class ViewManager
{
root.getChildren().removeAll(yes,no,confirmation);
refusal = new Text();
setTextAttributs(refusal,"YOU DON'T HAVE ENOUGH MONEY TO BUY THIS SHIP !",menuWidth/2 - 340,200,Color.WHITE,mainFont,35);
setTextAttributs(refusal,"YOU DON'T HAVE ENOUGH MONEY TO BUY THIS SHIP !",menuWidth/2 - 340,270,Color.WHITE,mainFont,35);
root.getChildren().add(refusal);
KeyFrame refusalFrame = new KeyFrame(Duration.seconds(1),actionEvent -> root.getChildren().remove(refusal)); // delay of 1 sec to delete the msg
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter