feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -54,7 +54,15 @@ void NodeDock::_save_layout_to_config(Ref<ConfigFile> p_layout, const String &p_
|
|||
|
||||
void NodeDock::_load_layout_from_config(Ref<ConfigFile> p_layout, const String &p_section) {
|
||||
const int current_tab = p_layout->get_value(p_section, "dock_node_current_tab", 0);
|
||||
if (current_tab == 0) {
|
||||
if (select_a_node->is_visible()) {
|
||||
if (current_tab == 0) {
|
||||
groups_button->set_pressed_no_signal(false);
|
||||
connections_button->set_pressed_no_signal(true);
|
||||
} else if (current_tab == 1) {
|
||||
groups_button->set_pressed_no_signal(true);
|
||||
connections_button->set_pressed_no_signal(false);
|
||||
}
|
||||
} else if (current_tab == 0) {
|
||||
show_connections();
|
||||
} else if (current_tab == 1) {
|
||||
show_groups();
|
||||
|
|
@ -110,7 +118,7 @@ NodeDock::NodeDock() {
|
|||
|
||||
connections_button = memnew(Button);
|
||||
connections_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
connections_button->set_text(TTR("Signals"));
|
||||
connections_button->set_text(TTRC("Signals"));
|
||||
connections_button->set_toggle_mode(true);
|
||||
connections_button->set_pressed(true);
|
||||
connections_button->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
|
@ -120,7 +128,7 @@ NodeDock::NodeDock() {
|
|||
|
||||
groups_button = memnew(Button);
|
||||
groups_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
groups_button->set_text(TTR("Groups"));
|
||||
groups_button->set_text(TTRC("Groups"));
|
||||
groups_button->set_toggle_mode(true);
|
||||
groups_button->set_pressed(false);
|
||||
groups_button->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
|
@ -139,7 +147,7 @@ NodeDock::NodeDock() {
|
|||
groups->hide();
|
||||
|
||||
select_a_node = memnew(Label);
|
||||
select_a_node->set_text(TTR("Select a single node to edit its signals and groups."));
|
||||
select_a_node->set_text(TTRC("Select a single node to edit its signals and groups."));
|
||||
select_a_node->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
|
||||
select_a_node->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
select_a_node->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue