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