Esempio n. 1
0
 public void createSelectionInterface(PApplet wapp) {
   MLabel lblControls = new MLabel(wapp, 0, 0, wapp.width, 20);
   lblControls.setText("Control devices");
   lblControls.setOpaque(true);
   lblControls.setTextBold();
   MButton btnExit = new MButton(wapp, wapp.width - 105, wapp.height - 28, 100, 24);
   btnExit.setText("Exit Game");
   btnExit.addEventHandler(this, "exitClick");
 }
Esempio n. 2
0
 public void updateMessage() {
   if (messageSelector.getValue().equals(english)) {
     messageText.setText(englishMessage);
     okayButton.setLabel("Change the language");
   } else if (messageSelector.getValue().equals(french)) {
     messageText.setText(frenchMessage);
     okayButton.setLabel("Change la langue");
   } else if (messageSelector.getValue().equals(spanish)) {
     messageText.setText(spanishMessage);
     okayButton.setLabel("Cambie el lenguaje");
   } else if (messageSelector.getValue().equals(polish)) {
     messageText.setText(polishMessage);
     okayButton.setLabel("Zmien jezyk");
   } else if (messageSelector.getValue().equals(german)) {
     messageText.setText(germanMessage);
     okayButton.setLabel("Andern Sie die Sprache"); // €ndern Sie die Sprache
   }
 }