Ajouts d'une version BETA du menu principal qui respecte le modèle MVC et la responsabilité unique + Modifications du README.md
This commit is contained in:
18
TestV2/src/fr/monkhanny/dorfromantik/enums/Fonts.java
Normal file
18
TestV2/src/fr/monkhanny/dorfromantik/enums/Fonts.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public enum Fonts {
|
||||
TITLE, BUTTON;
|
||||
|
||||
public String getFontPath() {
|
||||
switch (this) {
|
||||
case TITLE:
|
||||
return "./ressources/fonts/Contage-Black.ttf";
|
||||
case BUTTON:
|
||||
return "./ressources/fonts/Contage-Regular.ttf";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user