mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-30 16:19:05 +01:00
refactor: clean up formatting and remove unnecessary line breaks in editor classes
This commit is contained in:
@@ -763,7 +763,8 @@ public class DialogueEditor extends JSONElementEditor {
|
||||
protected void setInner(List<Dialogue.Reward> 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<Dialogue.Reply> 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<Requirement, Dialogue.Reply> {
|
||||
public static class ReplyRequirementsListModel extends CommonEditor.AtListModel<Requirement, Dialogue.Reply> {
|
||||
|
||||
public ReplyRequirementsListModel(Dialogue.Reply reply) {
|
||||
super(reply);
|
||||
}
|
||||
public ReplyRequirementsListModel(Dialogue.Reply reply) {
|
||||
super(reply);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<Requirement> getInner() {
|
||||
return source.requirements;
|
||||
}
|
||||
@Override
|
||||
protected List<Requirement> getInner() {
|
||||
return source.requirements;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setInner(List<Requirement> value) {
|
||||
|
||||
@@ -1201,7 +1201,8 @@ public class ItemEditor extends JSONElementEditor {
|
||||
protected void setInner(List<Common.TimedConditionEffect> value) {
|
||||
source.conditions_source = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class TargetTimedConditionsListModel extends CommonEditor.AtListModel<Common.TimedConditionEffect, Common.HitEffect> {
|
||||
|
||||
@@ -1218,7 +1219,8 @@ public class ItemEditor extends JSONElementEditor {
|
||||
protected void setInner(List<Common.TimedConditionEffect> 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<Common.ConditionEffect> value) {
|
||||
source.conditions = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class ConditionsCellRenderer extends DefaultListCellRenderer {
|
||||
private static final long serialVersionUID = 7987880146189575234L;
|
||||
|
||||
@@ -1041,7 +1041,8 @@ public class NPCEditor extends JSONElementEditor {
|
||||
protected void setInner(List<Common.TimedConditionEffect> value) {
|
||||
source.conditions_target = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class SourceTimedConditionsListModel extends CommonEditor.AtListModel<Common.TimedConditionEffect, Common.DeathEffect> {
|
||||
|
||||
@@ -1058,7 +1059,8 @@ public class NPCEditor extends JSONElementEditor {
|
||||
protected void setInner(List<Common.TimedConditionEffect> value) {
|
||||
source.conditions_source = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class TimedConditionsCellRenderer extends DefaultListCellRenderer {
|
||||
private static final long serialVersionUID = 7987880146189575234L;
|
||||
|
||||
@@ -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<QuestStage> value) {
|
||||
source.stages = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user