feat: Add Custom Toolbar Buttons from Project Settings#8166
feat: Add Custom Toolbar Buttons from Project Settings#8166malec-palec wants to merge 4 commits into4ian:masterfrom
Conversation
|
Idea to go futher: For example, in Maya 3D, the interface is customizable and Python/Mel scripts can be used to generate elements and interact with the editor. Here is a basic example in Maya. This could help automate the placement of objects on the scene programmatically. And much more! |
|
Thanks for the feedback. This kind of functionality would definitely be useful, but it is clearly out of scope for this PR. Also, as far as I know, GDevelop does not provide such an API, nor access to it via the CLI. The original goal of this work was to add missing GDevelop capabilities directly into the editor, for example building projects via the CLI, and support for custom workflows (such as asset post-processing and running tests). |
|
Hi! My main worry about this is that this would give an attacker the ability to execute arbitrary command if for example a rogue project is shared. Do you think of ways to mitigate this? |


Summary
Adds support for configurable toolbar buttons in the GDevelop editor that execute npm scripts from the project's package.json in external terminal windows. Buttons are defined in a
gdevelop-settings.yamlfile in the project directory.Features
Configuration
Create
gdevelop-settings.yamlin your project root:See result:

Technical Details
cmd.exe /c start cmd /k <command>osascriptto launch Terminal.appx-terminal-emulator,gnome-terminal,konsole,xtermTesting
gdevelop-settings.yamlin a project directory