add navigation to getCollapsibleItemList

This commit is contained in:
OMGeeky
2025-06-01 22:51:15 +02:00
parent 355bb2bc54
commit cf8c0497bc
4 changed files with 44 additions and 24 deletions

View File

@@ -243,6 +243,7 @@ public class DialogueEditor extends JSONElementEditor {
Dialogue.Reward::new,
cellRendererRewards,
titleRewards,
(x)->null,
false
).collapsiblePanel;
if (dialogue.rewards == null || dialogue.rewards.isEmpty()) {
@@ -355,8 +356,9 @@ public class DialogueEditor extends JSONElementEditor {
dialogue.writable,
Dialogue.Reply::new,
cellRendererReplies,
titleReplies
, true
titleReplies,
(x)->null,
true
).collapsiblePanel;
if (dialogue.replies == null || dialogue.replies.isEmpty()) {
replies.collapse();
@@ -706,6 +708,7 @@ public class DialogueEditor extends JSONElementEditor {
Requirement::new,
cellRendererRequirements,
titleRequirements,
(x)-> x.required_obj,
false
);
CollapsiblePanel requirementsPane = itemsPane.collapsiblePanel;

View File

@@ -73,6 +73,7 @@ public class DroplistEditor extends JSONElementEditor {
DroppedItem::new,
new DroppedItemsCellRenderer(),
"Items in this droplist: ",
(x)-> x.item,
false
).collapsiblePanel;
if (droplist.dropped_items == null || droplist.dropped_items.isEmpty()) {