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:
2024-11-06 14:26:46 +01:00
parent eebb8259b0
commit d0c67d5298
28 changed files with 422 additions and 2 deletions

View 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);
}
}
}