diff --git a/databse.tar b/databse.tar deleted file mode 100644 index ed4aaa6..0000000 Binary files a/databse.tar and /dev/null differ diff --git a/src/ihm/Main.java b/src/ihm/Main.java index eea36f6..ae4bc0f 100644 --- a/src/ihm/Main.java +++ b/src/ihm/Main.java @@ -16,7 +16,7 @@ public class Main extends Application { public void start(Stage primaryStage) throws Exception { System.out.println("Lancement de l'application"); - final URL fxmlURL = getClass().getResource("ressources/Jouer_tour(1)lancer_des.fxml"); // "ressources/Jouer_tour(1)lancer_des.fxml" + final URL fxmlURL = getClass().getResource("ressources/parametre.fxml"); // "ressources/Jouer_tour(1)lancer_des.fxml" final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE); final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); Pane root = fxmlLoader.load(); diff --git a/src/ihm/controller/ParametreController.java b/src/ihm/controller/ParametreController.java new file mode 100644 index 0000000..550c9a6 --- /dev/null +++ b/src/ihm/controller/ParametreController.java @@ -0,0 +1,52 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import ihm.Musique; +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.control.Button; +import javafx.scene.control.CheckBox; +import javafx.scene.control.ComboBox; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class ParametreController implements Initializable{ + @FXML private Pane rootPane; + @FXML private CheckBox cmusique; + @FXML private CheckBox clair; + @FXML private ComboBox langues; + + + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + langues.getItems().add("Anglais"); + langues.getItems().add("Allemand"); + langues.getItems().add("Espagnol"); + langues.getItems().add("Français"); + + + + + } + /*@FXML + public void enregistre(MouseEvent mouseEvent) throws IOException{ + if(cmusique.isSelected()==true) { + + String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; // lien vers la musique : + // https://www.youtube.com/watch?v=LBpKUIyOHdo + Musique musiqueObjet = new Musique(); + //musiqueObjet.playMusique(filepath); + + Pane root = FXMLLoader.load(getClass().getResource("ressources/parametre.fxml")); + //root.setStyle("ressources/style/menuLight.css); + + } + + } */ + +} diff --git a/src/ihm/ressources/parametre.fxml b/src/ihm/ressources/parametre.fxml new file mode 100644 index 0000000..e70b1b9 --- /dev/null +++ b/src/ihm/ressources/parametre.fxml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +