As of right now I am trying to print some text on a screen when a variable is a certain value.
My code is reporting a "Cannot make a static reference…" error for the line if(ElementButton.showElement[0] == 2)
:
void buildDiatomicMolecules(){
if(ElementButton.showElement[0] == 2){
textSize(18);
text("H", g.eXLocation/2, g.eYLocation/2 - g.eYLocation/8);
}
In this case ElementButton is a class. Do I need to make the ElementButton class static?