Suppression du mode clair non fonctionnel
This commit is contained in:
parent
8c3ad11a52
commit
7c37fd3a05
@ -25,8 +25,7 @@ public class ParametreController implements Initializable {
|
|||||||
private CheckBox cmusique;
|
private CheckBox cmusique;
|
||||||
@FXML
|
@FXML
|
||||||
private CheckBox cbEffetSonore;
|
private CheckBox cbEffetSonore;
|
||||||
@FXML
|
|
||||||
private CheckBox clair;
|
|
||||||
@FXML
|
@FXML
|
||||||
private ComboBox<String> langues;
|
private ComboBox<String> langues;
|
||||||
@FXML
|
@FXML
|
||||||
@ -37,7 +36,7 @@ public class ParametreController implements Initializable {
|
|||||||
public static Locale LaLangue = Locale.FRANCE;
|
public static Locale LaLangue = Locale.FRANCE;
|
||||||
public static boolean cbMusiqueCoche = false; // verifi si la checbox musical est coche
|
public static boolean cbMusiqueCoche = false; // verifi si la checbox musical est coche
|
||||||
public static boolean cbSonCoche = false;
|
public static boolean cbSonCoche = false;
|
||||||
public static boolean cbClair = false;
|
|
||||||
public static double slideValue;
|
public static double slideValue;
|
||||||
public static double slideValueEffets;
|
public static double slideValueEffets;
|
||||||
public static String langueChoisi;
|
public static String langueChoisi;
|
||||||
@ -59,7 +58,7 @@ public class ParametreController implements Initializable {
|
|||||||
|
|
||||||
cmusique.setSelected(cbMusiqueCoche);
|
cmusique.setSelected(cbMusiqueCoche);
|
||||||
cbEffetSonore.setSelected(cbSonCoche);
|
cbEffetSonore.setSelected(cbSonCoche);
|
||||||
clair.setSelected(cbClair);
|
|
||||||
sliderMusique.setValue(slideValue);
|
sliderMusique.setValue(slideValue);
|
||||||
sliderEffets.setValue(slideValueEffets);
|
sliderEffets.setValue(slideValueEffets);
|
||||||
|
|
||||||
@ -145,34 +144,8 @@ public class ParametreController implements Initializable {
|
|||||||
System.out.println(EffetSonore.isSoundOK());
|
System.out.println(EffetSonore.isSoundOK());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pour la couleur du theme
|
|
||||||
|
|
||||||
if (clair.isSelected()) {
|
|
||||||
// Pane root =
|
|
||||||
// FXMLLoader.load(getClass().getResource("../ressources/menu.fxml"));
|
|
||||||
|
|
||||||
rootPane.setStyle("-fx-background-color: white;");
|
|
||||||
rootPane.applyCss();
|
|
||||||
}
|
|
||||||
rootPane.setStyle("-fx-background-color: white;");
|
|
||||||
rootPane.applyCss();
|
|
||||||
/*
|
|
||||||
* if (liste != null) { for (int i = 0; i < liste.length; i++) {
|
|
||||||
*
|
|
||||||
* System.out.println(liste[i]); System.out.println(i); repertoire2 = new
|
|
||||||
* File("../ressources/" + liste[i]);
|
|
||||||
*
|
|
||||||
* if (repertoire.isDirectory() == false) { if (liste[i] == "Plateau.fxml") {
|
|
||||||
* Pane root1 = FXMLLoader.load(getClass().getResource("../ressources/" +
|
|
||||||
* liste[i])); root1.setStyle("../ressources/style/plateau.css");
|
|
||||||
*
|
|
||||||
* } Pane root1 = FXMLLoader.load(getClass().getResource("../ressources/" +
|
|
||||||
* liste[i])); root1.setStyle("../ressources/style/menuLight.css"); } }
|
|
||||||
*
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
* }
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Quitter les paramètres
|
// Quitter les paramètres
|
||||||
EffetSonore.playSoundEffect(fileSound1); // emet un bruit sur le bouton si les effets sonores sont activés
|
EffetSonore.playSoundEffect(fileSound1); // emet un bruit sur le bouton si les effets sonores sont activés
|
||||||
|
@ -13,11 +13,10 @@
|
|||||||
|
|
||||||
<Pane fx:id="rootPane" onMouseClicked="#slideVolumeMusique" prefHeight="595.0" prefWidth="758.0" styleClass="background" stylesheets="@style/menu.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ParametreController">
|
<Pane fx:id="rootPane" onMouseClicked="#slideVolumeMusique" prefHeight="595.0" prefWidth="758.0" styleClass="background" stylesheets="@style/menu.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ParametreController">
|
||||||
<children>
|
<children>
|
||||||
<HBox alignment="TOP_CENTER" layoutX="146.0" layoutY="171.0" prefHeight="242.0" prefWidth="507.0" spacing="10.0">
|
<HBox alignment="TOP_CENTER" layoutX="126.0" layoutY="151.0" prefHeight="242.0" prefWidth="507.0" spacing="10.0">
|
||||||
<children>
|
<children>
|
||||||
<VBox prefHeight="348.0" prefWidth="195.0" spacing="35.0">
|
<VBox prefHeight="348.0" prefWidth="195.0" spacing="35.0">
|
||||||
<children>
|
<children>
|
||||||
<CheckBox fx:id="clair" mnemonicParsing="false" styleClass="checkBox" text="%mode.claire" />
|
|
||||||
<CheckBox fx:id="cmusique" mnemonicParsing="false" styleClass="checkBox" text="%musique" />
|
<CheckBox fx:id="cmusique" mnemonicParsing="false" styleClass="checkBox" text="%musique" />
|
||||||
<Slider fx:id="sliderMusique" blockIncrement="1.0" majorTickUnit="1.0" max="1.0" minorTickCount="10" onMouseClicked="#slideVolumeMusique" value="0.1">
|
<Slider fx:id="sliderMusique" blockIncrement="1.0" majorTickUnit="1.0" max="1.0" minorTickCount="10" onMouseClicked="#slideVolumeMusique" value="0.1">
|
||||||
<padding>
|
<padding>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user