summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_run_bar.cpp
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/editor_run_bar.cpp
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/editor_run_bar.cpp')
-rw-r--r--editor/gui/editor_run_bar.cpp6
1 files changed, 5 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);