You are right, it's kind of unnecessary. I've also fixed my problem to some degree!
This is my code now
if (switchOneState == HIGH || switchTwoState == HIGH || switchThreeState == HIGH) {
tft.fillScreen(BLACK);
x ++;
tft.println("Wetter Menu");
tft.println();
tft.println("1. Temperatur");
tft.println("2. Luftfeuchtigkeit");
tft.println("3. Test");
if (x >= 2 && switchOneState == HIGH){
tft.setCursor(0, 0);
tft.fillScreen(BLACK);
tft.println("Temperatur");
}
if (x >= 2 && switchTwoState == HIGH){
tft.setCursor(0, 0);
tft.fillScreen(BLACK);
tft.println("Luftfeuchtigkeit");
}
if (x >= 2 && switchThreeState == HIGH){
tft.setCursor(0, 0);
tft.fillScreen(BLACK);
tft.println("Test");
}
}
Now my problem is, that I just can't seem to figure out how to get into the submenu with just a single button, but the other buttons should still work within the submenu. The way the code is currently, allows me to enter the submenu with all 3 buttons, which I don't want since button 2 is for getting into submenu 2