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

How to create a tool like Flip Button ? #10

Open
finscn opened this issue Oct 5, 2021 · 1 comment
Open

How to create a tool like Flip Button ? #10

finscn opened this issue Oct 5, 2021 · 1 comment
Labels
question Further information is requested

Comments

@finscn
Copy link

finscn commented Oct 5, 2021

When I create a tool , it's like a switch button.
click to enter a mode, click again to exit the mode.

I want create a tool like Flip Button , click to run an action

How to do that ?

thanks

@bjorn
Copy link
Member

bjorn commented Oct 5, 2021

If you want to create an action rather than a tool, you need to use tiled.registerAction. The action can then be added to a menu using tiled.extendMenu. Unfortunately it is currently not yet possible to add a custom action to a tool bar.

@bjorn bjorn added the question Further information is requested label Oct 5, 2021
@bjorn bjorn changed the title How to create a tool like Filp Button ? How to create a tool like Flip Button ? Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants