mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
packets, fancydialogs: Refactor custom action handling to use a map for additional data
This commit is contained in:
@@ -35,12 +35,14 @@ public class ConfirmationDialog {
|
||||
new DialogButton(
|
||||
this.confirmText,
|
||||
this.confirmText,
|
||||
"confirm"
|
||||
"confirm",
|
||||
""
|
||||
),
|
||||
new DialogButton(
|
||||
this.cancelText,
|
||||
this.cancelText,
|
||||
"cancel"
|
||||
"cancel",
|
||||
""
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.fancyinnovations.fancydialogs.api.data;
|
||||
public record DialogButton(
|
||||
String label,
|
||||
String tooltip,
|
||||
String action
|
||||
String action,
|
||||
String actionData
|
||||
) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user