1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Allow running/debugging up to 4 instances.

This commit is contained in:
Fabio Alessandrelli
2020-03-08 22:48:04 +01:00
parent 4d623b70d7
commit bfc1b76803
2 changed files with 37 additions and 35 deletions

View File

@@ -36,6 +36,7 @@
class EditorNode;
class EditorFileServer;
class MenuButton;
class PopupMenu;
class DebuggerEditorPlugin : public EditorPlugin {
@@ -44,10 +45,9 @@ class DebuggerEditorPlugin : public EditorPlugin {
private:
MenuButton *debug_menu;
EditorFileServer *file_server;
PopupMenu *instances_menu;
enum MenuOptions {
RUN_DEBUG_ONE,
RUN_DEBUG_TWO,
RUN_FILE_SERVER,
RUN_LIVE_DEBUG,
RUN_DEBUG_COLLISONS,
@@ -58,9 +58,10 @@ private:
void _update_debug_options();
void _notification(int p_what);
void _select_run_count(int p_index);
void _menu_option(int p_option);
public:
void _menu_option(int p_option);
virtual String get_name() const { return "Debugger"; }
bool has_main_screen() const { return false; }