Suppression responsive
This commit is contained in:
parent
3e13aefcce
commit
5e1ee06436
@ -16,9 +16,9 @@ import javafx.stage.WindowEvent;
|
||||
import main.GestionnaireJeu;
|
||||
|
||||
public class Main extends Application {
|
||||
GraphicsDevice Gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
||||
/*GraphicsDevice Gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
||||
int width = Gd.getDisplayMode().getWidth();
|
||||
int height = Gd.getDisplayMode().getHeight();
|
||||
int height = Gd.getDisplayMode().getHeight(); */
|
||||
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws Exception {
|
||||
@ -28,7 +28,7 @@ public class Main extends Application {
|
||||
Pane root = fxmlLoader.load();
|
||||
|
||||
primaryStage.setTitle("Shadow Hunters");
|
||||
primaryStage.setScene(new Scene(root,width,height));
|
||||
primaryStage.setScene(new Scene(root));
|
||||
primaryStage.setMaximized(true);
|
||||
primaryStage.centerOnScreen();
|
||||
primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>() {
|
||||
|
@ -32,10 +32,13 @@ public class ParametreController implements Initializable {
|
||||
@FXML
|
||||
private Slider sliderMusique;
|
||||
|
||||
|
||||
|
||||
public static boolean cbMusiqueCoche = false; // verifi si la checbox musical est coche
|
||||
public static boolean cbSonCoche = false;
|
||||
public static boolean cbClair = false;
|
||||
public static double slideValue;
|
||||
public static String langueChoisi;
|
||||
|
||||
boolean MusiqueLancee = false; //verifi si la musique a déja été lancé une première fois
|
||||
|
||||
@ -115,10 +118,12 @@ public class ParametreController implements Initializable {
|
||||
|
||||
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++) {
|
||||
|
||||
@ -143,6 +148,7 @@ public class ParametreController implements Initializable {
|
||||
|
||||
EffetSonore.playSoundEffect(fileSound1); //emet un bruit sur le bouton si les effets sonores sont activés
|
||||
|
||||
|
||||
// Quitter les paramètres
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/Menu.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user