diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/DialogueEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/DialogueEditor.java index be293cb..69a894a 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/DialogueEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/DialogueEditor.java @@ -763,7 +763,8 @@ public class DialogueEditor extends JSONElementEditor { protected void setInner(List value) { source.rewards = value; } - } + + } public static class RewardsCellRenderer extends DefaultListCellRenderer { private static final long serialVersionUID = 7987880146189575234L; @@ -886,6 +887,7 @@ public class DialogueEditor extends JSONElementEditor { protected void setInner(List value) { source.replies = value; } + } public static class RepliesCellRenderer extends DefaultListCellRenderer { @@ -938,16 +940,16 @@ public class DialogueEditor extends JSONElementEditor { } } - public static class ReplyRequirementsListModel extends CommonEditor.AtListModel { + public static class ReplyRequirementsListModel extends CommonEditor.AtListModel { - public ReplyRequirementsListModel(Dialogue.Reply reply) { - super(reply); - } + public ReplyRequirementsListModel(Dialogue.Reply reply) { + super(reply); + } - @Override - protected List getInner() { - return source.requirements; - } + @Override + protected List getInner() { + return source.requirements; + } @Override protected void setInner(List value) { diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java index a19d9a2..f9679be 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java @@ -1201,7 +1201,8 @@ public class ItemEditor extends JSONElementEditor { protected void setInner(List value) { source.conditions_source = value; } - } + + } public static class TargetTimedConditionsListModel extends CommonEditor.AtListModel { @@ -1218,7 +1219,8 @@ public class ItemEditor extends JSONElementEditor { protected void setInner(List value) { source.conditions_target = value; } - } + + } public static class TimedConditionsCellRenderer extends DefaultListCellRenderer { private static final long serialVersionUID = 7987880146189575234L; @@ -1269,7 +1271,7 @@ public class ItemEditor extends JSONElementEditor { protected void setInner(List value) { source.conditions = value; } - } + } public static class ConditionsCellRenderer extends DefaultListCellRenderer { private static final long serialVersionUID = 7987880146189575234L; diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/NPCEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/NPCEditor.java index 9456b78..05c186f 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/NPCEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/NPCEditor.java @@ -1041,7 +1041,8 @@ public class NPCEditor extends JSONElementEditor { protected void setInner(List value) { source.conditions_target = value; } - } + + } public static class SourceTimedConditionsListModel extends CommonEditor.AtListModel { @@ -1058,7 +1059,8 @@ public class NPCEditor extends JSONElementEditor { protected void setInner(List value) { source.conditions_source = value; } - } + + } public static class TimedConditionsCellRenderer extends DefaultListCellRenderer { private static final long serialVersionUID = 7987880146189575234L; diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/QuestEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/QuestEditor.java index caf265c..485914a 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/QuestEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/QuestEditor.java @@ -1,38 +1,25 @@ package com.gpl.rpg.atcontentstudio.ui.gamedataeditors; import java.awt.Component; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; -import java.util.concurrent.CopyOnWriteArrayList; import javax.swing.DefaultListCellRenderer; import javax.swing.ImageIcon; -import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; -import javax.swing.JScrollPane; import javax.swing.JSpinner; import javax.swing.JTextArea; import javax.swing.JTextField; -import javax.swing.ListModel; -import javax.swing.ListSelectionModel; -import javax.swing.event.ListDataEvent; -import javax.swing.event.ListDataListener; -import javax.swing.event.ListSelectionEvent; -import javax.swing.event.ListSelectionListener; import com.gpl.rpg.atcontentstudio.ATContentStudio; import com.gpl.rpg.atcontentstudio.model.GameDataElement; import com.gpl.rpg.atcontentstudio.model.ProjectTreeNode; -import com.gpl.rpg.atcontentstudio.model.gamedata.Dialogue; import com.gpl.rpg.atcontentstudio.model.gamedata.Quest; import com.gpl.rpg.atcontentstudio.model.gamedata.QuestStage; import com.gpl.rpg.atcontentstudio.ui.CollapsiblePanel; -import com.gpl.rpg.atcontentstudio.ui.DefaultIcons; import com.gpl.rpg.atcontentstudio.ui.FieldUpdateListener; import com.gpl.rpg.atcontentstudio.ui.IntegerBasedCheckBox; import com.gpl.rpg.atcontentstudio.ui.tools.CommonEditor; @@ -132,6 +119,7 @@ public class QuestEditor extends JSONElementEditor { protected void setInner(List value) { source.stages = value; } + }