Skip to content
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

Implement ACTION defining by ACTION TYPE #1938

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

BONNe
Copy link
Member

@BONNe BONNe commented Feb 3, 2022

This change implements a new way how to define actions via a custom panel template.

Previously there were 2 options how to define an action:

  • by click-type
  • as an array list

This adds the third type: by action type. It means that now developers could code that action is the main key for defining what happens when button is clicked:

    actions:
       visit:
          click-type: LEFT
          tooltip: Tooltip text for left click action

This change implements a new way how to define actions via a custom panel template.

Previously there were 2 options how to define an action:
- by click-type
- as an array list

This adds the third type: by action type. It means that now developers could code that action is the main key for defining what happens when button is clicked:
```
    actions:
       visit:
          click-type: LEFT
          tooltip: Tooltip text for left click action
```
@tastybento tastybento merged commit d492539 into BentoBoxWorld:develop Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants