summaryrefslogtreecommitdiffstats
path: root/editor/gui
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2023-06-25 02:30:07 +0200
committerRaul Santos <raulsntos@gmail.com>2023-08-03 17:55:52 +0200
commit03598062fd259aa7198e65a56a157822b0720bc7 (patch)
tree3bd406ef5b30f1b935b66b42494fb1f30a4b9051 /editor/gui
parent725beaa7afce294f38d4aca1fa287249021b6bf8 (diff)
downloadredot-engine-03598062fd259aa7198e65a56a157822b0720bc7.tar.gz
C#: Move build button to EditorRunBar
- Move C# build button to `EditorRunBar`. - Add C# build icon. - Add shortcut macros to `GodotTools`. - Move C# build shortcuts to C#.
Diffstat (limited to 'editor/gui')
-rw-r--r--editor/gui/editor_run_bar.cpp6
-rw-r--r--editor/gui/editor_run_bar.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/editor/gui/editor_run_bar.cpp b/editor/gui/editor_run_bar.cpp
index c226c1a2d6..e144d1d10d 100644
--- a/editor/gui/editor_run_bar.cpp
+++ b/editor/gui/editor_run_bar.cpp
@@ -348,6 +348,10 @@ bool EditorRunBar::is_movie_maker_enabled() const {
return write_movie_button->is_pressed();
}
+HBoxContainer *EditorRunBar::get_buttons_container() {
+ return main_hbox;
+}
+
void EditorRunBar::_bind_methods() {
ADD_SIGNAL(MethodInfo("play_pressed"));
ADD_SIGNAL(MethodInfo("stop_pressed"));
@@ -359,7 +363,7 @@ EditorRunBar::EditorRunBar() {
main_panel = memnew(PanelContainer);
add_child(main_panel);
- HBoxContainer *main_hbox = memnew(HBoxContainer);
+ main_hbox = memnew(HBoxContainer);
main_panel->add_child(main_hbox);
play_button = memnew(Button);
diff --git a/editor/gui/editor_run_bar.h b/editor/gui/editor_run_bar.h
index b7e7db2bd6..1cb999612a 100644
--- a/editor/gui/editor_run_bar.h
+++ b/editor/gui/editor_run_bar.h
@@ -39,6 +39,7 @@ class Button;
class EditorRunNative;
class EditorQuickOpen;
class PanelContainer;
+class HBoxContainer;
class EditorRunBar : public MarginContainer {
GDCLASS(EditorRunBar, MarginContainer);
@@ -53,6 +54,7 @@ class EditorRunBar : public MarginContainer {
};
PanelContainer *main_panel = nullptr;
+ HBoxContainer *main_hbox = nullptr;
Button *play_button = nullptr;
Button *pause_button = nullptr;
@@ -109,6 +111,8 @@ public:
Button *get_pause_button() { return pause_button; }
+ HBoxContainer *get_buttons_container();
+
EditorRunBar();
};