packets, fancydialogs: Refactor custom action handling to use a map for additional data

This commit is contained in:
Oliver
2025-06-17 21:50:34 +02:00
parent 31f03ae252
commit d61b3af90b
10 changed files with 65 additions and 29 deletions

View File

@@ -35,12 +35,14 @@ public class ConfirmationDialog {
new DialogButton(
this.confirmText,
this.confirmText,
"confirm"
"confirm",
""
),
new DialogButton(
this.cancelText,
this.cancelText,
"cancel"
"cancel",
""
)
)
);

View File

@@ -3,6 +3,7 @@ package com.fancyinnovations.fancydialogs.api.data;
public record DialogButton(
String label,
String tooltip,
String action
String action,
String actionData
) {
}