diff --git a/docs/src/fancydialogs/inspiration.md b/docs/src/fancydialogs/inspiration.md index 6be667fb..9120292a 100644 --- a/docs/src/fancydialogs/inspiration.md +++ b/docs/src/fancydialogs/inspiration.md @@ -8,3 +8,9 @@ icon: image The following examples show how to use FancyDialogs in different ways. They are meant to give you an idea of what you can do with the plugin. Almost all examples are made by the community. If you have a nice example that you want to share, feel free come to our discord server and show it to us. + +![Provided by oliver](../static/fancydialogs/examples/oliver-welcome_to_fd.png) + +![Provided by oliver](../static/fancydialogs/examples/oliver-welcome.png) + +![Provided by oliver](../static/fancydialogs/examples/oliver-quick_actions.png) diff --git a/docs/src/static/fancydialogs/examples/oliver-quick_actions.png b/docs/src/static/fancydialogs/examples/oliver-quick_actions.png new file mode 100644 index 00000000..010cdf2d Binary files /dev/null and b/docs/src/static/fancydialogs/examples/oliver-quick_actions.png differ diff --git a/docs/src/static/fancydialogs/examples/oliver-welcome.png b/docs/src/static/fancydialogs/examples/oliver-welcome.png new file mode 100644 index 00000000..8d462a34 Binary files /dev/null and b/docs/src/static/fancydialogs/examples/oliver-welcome.png differ diff --git a/docs/src/static/fancydialogs/examples/oliver-welcome_to_fd.png b/docs/src/static/fancydialogs/examples/oliver-welcome_to_fd.png new file mode 100644 index 00000000..03992a40 Binary files /dev/null and b/docs/src/static/fancydialogs/examples/oliver-welcome_to_fd.png differ diff --git a/plugins/fancydialogs/src/main/java/com/fancyinnovations/fancydialogs/registry/DefaultDialogs.java b/plugins/fancydialogs/src/main/java/com/fancyinnovations/fancydialogs/registry/DefaultDialogs.java index 354d4172..04279158 100644 --- a/plugins/fancydialogs/src/main/java/com/fancyinnovations/fancydialogs/registry/DefaultDialogs.java +++ b/plugins/fancydialogs/src/main/java/com/fancyinnovations/fancydialogs/registry/DefaultDialogs.java @@ -22,21 +22,111 @@ public class DefaultDialogs { } dialogsFolder.mkdirs(); + welcomeToFancyDialogsDialog(); welcomeDialog(); + quickActions(); + } + + private static void welcomeToFancyDialogsDialog() { + DialogData data = new DialogData( + "welcome_to_fancydialogs", + "Welcome to FancyDialogs!", + false, + List.of( + new DialogBodyData("The simple and lightweight dialog plugin for your server!"), + new DialogBodyData(""), + new DialogBodyData("This dialog is a demonstration of how to use FancyDialogs to create interactive and user-friendly dialogs."), + new DialogBodyData("FancyDialogs supports MiniMessages and PlaceholderAPI"), + new DialogBodyData("Explore more features in the documentation (click here)."), + new DialogBodyData("Enjoy using FancyDialogs :D") + ), + List.of( + new DialogButton( + "Close", + "Enjoy using FancyDialogs", + "close_dialog" + ), + new DialogButton( + "Run command", + "Click to give yourself an apple :)", + "run_command:/give {player} apple 1" + ) + ) + ); + + register(data); } private static void welcomeDialog() { DialogData data = new DialogData( - "welcome_to_fancydialogs_dialog", - "Welcome to FancyDialogs", + "welcome", + "Welcome to {server_name}!", false, List.of( - new DialogBodyData("Welcome to FancyDialogs! This is a sample dialog to get you started.") + new DialogBodyData("The best Minecraft server on earth!"), + new DialogBodyData(""), + new DialogBodyData("We are glad to have you here!"), + new DialogBodyData("If you have any questions, feel free to ask our staff members.") ), List.of( new DialogButton( - "Close", - "Close the dialog", + "Read the rules", + "Click to read our rules!", + "message:Visit our rules!" + ), + new DialogButton( + "Start playing", + "Click to start playing!", + "close_dialog" + ), + new DialogButton( + "Join our Discord", + "Click to join our Discord server!", + "message:Join our Discord server!" + ), + new DialogButton( + "Visit our website", + "Click to visit our website!", + "message:Visit our website!" + ) + ) + ); + + register(data); + } + + private static void quickActions() { + DialogData data = new DialogData( + "quick_actions", + "Quick Actions", + false, + List.of( + new DialogBodyData("Here you can quickly access some of the most important features of our server.") + ), + List.of( + new DialogButton( + "Visit our website", + "Click to visit our website!", + "message:Visit our website!" + ), + new DialogButton( + "Read the rules", + "Click to read our rules!", + "message:Visit our rules!" + ), + new DialogButton( + "Join our Discord", + "Click to join our Discord server!", + "message:Join our Discord server!" + ), + new DialogButton( + "Support us", + "Click to support us!", + "message:Support us!" + ), + new DialogButton( + "Close", + "Click to close this dialog!", "close_dialog" ) )