示例#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
示例#2
0
 public void redrawActor() {
   jLabel3.setText("Talking to: " + currentDialogue.getActor().getDisplayName());
 }
示例#3
0
 public void redrawResponse() {
   textPaneResponse.setText(currentDialogue.getCurrentNode().getResponse());
 }
示例#4
0
  public void redrawOptions() {
    DefaultListModel model = new DefaultListModel();
    for (String s : currentDialogue.getDialogueOptions()) model.addElement(s);

    listDialogueOptions.setModel(model);
  }