Example #1
0
 private void listDialogueOptionsMouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_listDialogueOptionsMouseClicked
   if (listDialogueOptions.getSelectedIndex() != -1) {
     String option = (String) listDialogueOptions.getSelectedValue();
     if (option.equals("[[End]]")) {
       this.setVisible(false);
     } else {
       currentDialogue.moveToNode(option);
       redrawOptions();
       redrawResponse();
     }
   }
 } // GEN-LAST:event_listDialogueOptionsMouseClicked
Example #2
0
 public void redrawActor() {
   jLabel3.setText("Talking to: " + currentDialogue.getActor().getDisplayName());
 }
Example #3
0
 public void redrawResponse() {
   textPaneResponse.setText(currentDialogue.getCurrentNode().getResponse());
 }
Example #4
0
  public void redrawOptions() {
    DefaultListModel model = new DefaultListModel();
    for (String s : currentDialogue.getDialogueOptions()) model.addElement(s);

    listDialogueOptions.setModel(model);
  }