MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

[Feature Request] How do i close dialog after button click ? #149

Closed remanam closed 4 months ago

remanam commented 7 months ago

For example i clicked "Yes" on a dialog and i want it to be closed.

What should i type in dialog actions ?

MarkusBordihn commented 7 months ago

Could you please clarify your exact use-case.

If the button has no "action" at all, it will close automatically. See: https://github.com/MarkusBordihn/BOs-Easy-NPC/wiki/Dialogs#close-dialog-

If the button has other "actions" as well, this is something I probably need to add as new feature.

remanam commented 7 months ago

I have simple dialog with "yes" Button.

When I click yes server execute command and player teleports. After player teleports its still have dialog open and can click "yes" Button again. I want it to be closed after I clicked yes

remanam commented 7 months ago

So there is a way to do it or it's a feature request ?

remanam commented 7 months ago

May be you lost my question?

MarkusBordihn commented 3 months ago

This is implemented as additional action type like:

image