fancydialogs: Add debug logs and input control experiments

This commit is contained in:
Oliver
2025-06-19 21:30:16 +02:00
parent 066f22d7b3
commit df107beea2
2 changed files with 51 additions and 1 deletions

View File

@@ -66,7 +66,53 @@ public class DialogImpl extends Dialog {
false,
FS_DialogAction.CLOSE,
body,
new ArrayList<>() // inputs
List.of(
// new FS_DialogInput(
// "input1",
// new FS_DialogTextInput(
// 200,
// "Enter something",
// true,
// "default text",
// 100,
// null
// )
// ),
// new FS_DialogInput(
// "input2",
// new FS_DialogBooleanInput(
// "input2",
// false,
// "true",
// "false"
// )
// ),
// new FS_DialogInput(
// "input3",
// new FS_DialogNumberRangeInput(
// 200,
// "Number Input",
// "options.generic_value",
// 0,
// 100,
// 50.f,
// 1.0f
// )
// ),
// new FS_DialogInput(
// "input4",
// new FS_DialogSingleOptionInput(
// 200,
// List.of(
// new FS_DialogSingleOptionInput.Entry("option1", "Option 1", true),
// new FS_DialogSingleOptionInput.Entry("option2", "Option 2", false),
// new FS_DialogSingleOptionInput.Entry("option3", "Option 3", false)
// ),
// "Select an option",
// true
// )
// )
)
),
actions, // actions
null,

View File

@@ -37,6 +37,10 @@ public class CustomClickActionPacketListener {
return; // Ignore packets not related to FancyDialogs
}
packet.getPayload().forEach((key, value) -> {
FancyDialogsPlugin.get().getFancyLogger().debug("Click action data Key: " + key + " value: " + value.toString());
});
String dialogId = packet.getPayload().get("dialog_id");
String buttonId = packet.getPayload().get("button_id");