Ajouts de music de fond + modification des boutons (quand on survole le bouton, sa taille grandis progressivement et la couleur change
This commit is contained in:
17
TestV2/src/fr/monkhanny/dorfromantik/enums/Images.java
Normal file
17
TestV2/src/fr/monkhanny/dorfromantik/enums/Images.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
|
||||
public enum Images {
|
||||
SETTINGS_ICON, EXIT_ICON;
|
||||
|
||||
public String getImagePath() {
|
||||
switch (this) {
|
||||
case SETTINGS_ICON:
|
||||
return "./ressources/images/Icone/SettingsIcon.png";
|
||||
case EXIT_ICON:
|
||||
return "./ressources/images/Icone/ExitIcon.png";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
14
TestV2/src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
14
TestV2/src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
public enum Musics {
|
||||
MAIN_MENU_MUSIC;
|
||||
|
||||
public String getSoundsPath() {
|
||||
switch (this) {
|
||||
case MAIN_MENU_MUSIC:
|
||||
return "./ressources/sounds/Music/mainMenuMusic.wav";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
16
TestV2/src/fr/monkhanny/dorfromantik/enums/Sounds.java
Normal file
16
TestV2/src/fr/monkhanny/dorfromantik/enums/Sounds.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
public enum Sounds {
|
||||
SOUNDS1, SOUNDS2;
|
||||
|
||||
public String getSoundsPath() {
|
||||
switch (this) {
|
||||
case SOUNDS1:
|
||||
return "./ressources/sounds/SFX/1.mp3";
|
||||
case SOUNDS2:
|
||||
return "./ressources/sounds/SFX/2.mp3";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user