mapeditor/tiled

Do you want to work on this issue?

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

Scripting-API - Allow for tool-groups / sections #3242

BlaXun posted onGitHub

I think it would be nice if tools could be grouped in a section. The section could have a name that would be shown in the toolbar above/below the actual tools. This way plugins could easily be distinguished from each other


I guess you mean similar to how it is done here?

image

It's a nice idea, but I think it would easily look a bit cluttered. As a first step, it might be a good idea to add support for adding separators between tools.

posted by bjorn over 3 years ago

Yeah, like that. Separators would be a good starting point I assume. Maybe upon calling registerTool a group identifier could be given to add the tool to the specific group. Ideally the user would have a way to disable specific groups in order to not have a cramped toolbar.

On Tue, Jan 18, 2022 at 11:10 AM Thorbjørn Lindeijer < @.***> wrote:

I guess you mean similar to how it is done here https://stackoverflow.com/questions/26837441/how-to-give-headings-for-each-toolbar-section-in-qt ?

[image: image] https://user-images.githubusercontent.com/531764/149916529-fdfb8eb3-43a1-4652-a253-4969eba424bf.png

It's a nice idea, but I think it would easily look a bit cluttered. As a first step, it might be a good idea to add support for adding separators between tools.

— Reply to this email directly, view it on GitHub https://github.com/mapeditor/tiled/issues/3242#issuecomment-1015259038, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNHC45LT7YE3OD4V45RYYDUWU4B5ANCNFSM5MGWDLBQ . You are receiving this because you authored the thread.Message ID: @.***>

posted by BlaXun over 3 years ago

I'm not interested in labels, but I'd love defined sections that let you insert a tool at a specific location (similar logic to e.g. map.addLayerAt(index)). Tools are added to the toolbar in the order their script files are read, which means if you have multiple tools, they'll likely end up not organized in any meaningful way. With menus, at least you can control where in the menu the item will go, though there are still load order issues if you want to group items from multiple scripts together. With tools, there's no control at all.

posted by eishiya over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests