-
-
Notifications
You must be signed in to change notification settings - Fork 165
feat: Dialog API documentation #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
012e0dc
to
ac6e072
Compare
The type primarily influences the bottom part of the dialog. | ||
|
||
## Registering dialogs in the registry | ||
If you want dialogs to be registered in the dialogs registry, you have register them inside a registry modification lifecycle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a remark reminding about needing to do this for the dialogList type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, "you have to register" but maybe instead "you must register"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have to do it for the dialog list type. You can use a RegistryValueSet and just have a list of directly created ones.
``` | ||
|
||
### Reading the input | ||
To retrieve the values the user put into the dialog, we once again have to listen to a `PlayerCustomClickEvent`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about custom click action with the callback built in, instead of listening to the event?
No description provided.