1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #107671 from dsnopek/editor-run-control

Allow editor plugins to modify run arguments
This commit is contained in:
Thaddeus Crews
2025-10-20 18:09:32 -05:00
6 changed files with 37 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ protected:
GDVIRTUAL1(_set_window_layout, Ref<ConfigFile>)
GDVIRTUAL1(_get_window_layout, Ref<ConfigFile>)
GDVIRTUAL0R(bool, _build)
GDVIRTUAL2RC(Vector<String>, _run_scene, String, Vector<String>)
GDVIRTUAL0(_enable_plugin)
GDVIRTUAL0(_disable_plugin)
@@ -210,6 +211,7 @@ public:
virtual void get_window_layout(Ref<ConfigFile> p_layout);
virtual void edited_scene_changed() {} // if changes are pending in editor, apply them
virtual bool build(); // builds with external tools. Returns true if safe to continue running scene.
virtual void run_scene(const String &p_scene, Vector<String> &r_args);
EditorInterface *get_editor_interface();
ScriptCreateDialog *get_script_create_dialog();