Merge pull request #1 from DelvalletQuentin/bugfixes

Fixed two bugs related to checkboxes
This commit is contained in:
Zukero
2015-03-03 16:02:53 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ public class ActorConditionEditor extends JSONElementEditor {
} else if (source == positiveBox) {
aCond.positive = (Integer) value;
} else if (source == stackingBox) {
aCond.positive = (Integer) value;
aCond.stacking = (Integer) value;
} else if (source == categoryBox) {
aCond.category = (ActorCondition.ACCategory) value;
} else if (source == roundVisualField) {

View File

@@ -64,7 +64,7 @@ public class QuestEditor extends JSONElementEditor {
addTextField(pane, "Internal ID: ", quest.id, quest.writable, listener);
addTextField(pane, "Quest Name: ", quest.name, quest.writable, listener);
addIntegerBasedCheckBox(pane, "Visible in quest log", quest.visible_in_log, quest.writable, listener);
visibleBox = addIntegerBasedCheckBox(pane, "Visible in quest log", quest.visible_in_log, quest.writable, listener);
JPanel stagesPane = new JPanel();
stagesPane.setLayout(new JideBoxLayout(stagesPane, JideBoxLayout.PAGE_AXIS, 6));