mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Allow scripts to extend the tool bars #3318

bjorn posted onGitHub

Currently scripts can register custom actions through tiled.registerAction and then they can add them to various menus using tiled.extendMenu. It is however not possible to extend a tool bar.

It should be possible for scripts to extend most of the existing tool bars, probably through a tiled.extendToolBar function.


Somewhat related: It would be very useful if scripted Tools could have toggles to their tool-specific toolbar, like some of the native tools do. I suspect this would need to be done differently from extendToolbar though.

posted by eishiya about 3 years ago

@eishiya Yes, that's a somewhat different feature. Such actions or toggles are mostly just actions added to the tool bar, so I guess it would be best in this case to add a property to the ScriptedTool class that is an array of action IDs, which will be added to this tool bar.

posted by bjorn about 3 years ago

Alright, Tool.toolBarActions done. :-)

posted by bjorn about 3 years ago

Interested in tiled.extendToolBar as well

posted by user72356 almost 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests