Bouton retour joueur
This commit is contained in:
parent
fdf6fed74d
commit
ce4a6bfeac
@ -92,6 +92,8 @@ public class ParametreController implements Initializable {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Pour la couleur du theme
|
||||
|
||||
/*
|
||||
@ -126,6 +128,7 @@ public class ParametreController implements Initializable {
|
||||
// Quitter les paramètres
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/Menu.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
|
@ -99,11 +99,12 @@ public class PauseController implements Initializable {
|
||||
Stage appStage = (Stage) ((Node) me.getSource()).getScene().getWindow();
|
||||
appStage.close();
|
||||
|
||||
/* final URL fxmlURL = getClass().getResource("/ihm/ressources/Menu.fxml");
|
||||
/* final URL fxmlURL = getClass().getResource("/ihm/ressources/Menu.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRENCH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
AnchorPane root = fxmlLoader.load(); */
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ public class PlateauController implements Initializable {
|
||||
@FXML private GridPane gridPaneVie;
|
||||
@FXML public GridPane gridPaneLieux;
|
||||
|
||||
|
||||
private ChoisirBoolean cb;
|
||||
|
||||
public static int DICE_SIX = 2;
|
||||
@ -61,6 +62,7 @@ public class PlateauController implements Initializable {
|
||||
Pane p = (Pane) gridPaneVie.getChildren().get(i);
|
||||
Label l = (Label) p.getChildren().get(1);
|
||||
l.setText(i+"");
|
||||
|
||||
}
|
||||
|
||||
for(int i : map.keySet()) {
|
||||
@ -159,6 +161,7 @@ public class PlateauController implements Initializable {
|
||||
|
||||
}
|
||||
|
||||
|
||||
private Pane getPaneJoueur(int i) {
|
||||
|
||||
System.out.println("i "+i);
|
||||
|
@ -23,6 +23,7 @@ import javafx.scene.control.TextField;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import main.Configuration;
|
||||
import main.GestionnaireJeu;
|
||||
@ -213,4 +214,14 @@ public class PlayersController implements Initializable{
|
||||
}else
|
||||
enleverJoueur(indice);
|
||||
}
|
||||
@FXML
|
||||
public void retour(MouseEvent me) throws IOException {
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/Menu.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
}
|
||||
}
|
||||
|
@ -164,6 +164,14 @@
|
||||
<Insets top="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button layoutX="283.0" layoutY="379.0" mnemonicParsing="false" onMouseClicked="#retour" prefHeight="55.0" prefWidth="247.0" styleClass="bouton" stylesheets="@style/menu.css" text="retour">
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
<VBox.margin>
|
||||
<Insets top="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
</center>
|
||||
|
Loading…
x
Reference in New Issue
Block a user