Ver código fonte

Fixup last commit, change misleading CodeEditor for consistency

Rémi Verschelde 3 anos atrás
pai
commit
31ded7e126

+ 3 - 3
editor/code_editor.cpp

@@ -624,7 +624,7 @@ FindReplaceBar::FindReplaceBar() {
 
 
 	vbc_lineedit = memnew(VBoxContainer);
 	vbc_lineedit = memnew(VBoxContainer);
 	add_child(vbc_lineedit);
 	add_child(vbc_lineedit);
-	vbc_lineedit->set_alignment(ALIGNMENT_CENTER);
+	vbc_lineedit->set_alignment(BoxContainer::ALIGNMENT_CENTER);
 	vbc_lineedit->set_h_size_flags(SIZE_EXPAND_FILL);
 	vbc_lineedit->set_h_size_flags(SIZE_EXPAND_FILL);
 	VBoxContainer *vbc_button = memnew(VBoxContainer);
 	VBoxContainer *vbc_button = memnew(VBoxContainer);
 	add_child(vbc_button);
 	add_child(vbc_button);
@@ -633,10 +633,10 @@ FindReplaceBar::FindReplaceBar() {
 
 
 	HBoxContainer *hbc_button_search = memnew(HBoxContainer);
 	HBoxContainer *hbc_button_search = memnew(HBoxContainer);
 	vbc_button->add_child(hbc_button_search);
 	vbc_button->add_child(hbc_button_search);
-	hbc_button_search->set_alignment(ALIGNMENT_END);
+	hbc_button_search->set_alignment(BoxContainer::ALIGNMENT_END);
 	hbc_button_replace = memnew(HBoxContainer);
 	hbc_button_replace = memnew(HBoxContainer);
 	vbc_button->add_child(hbc_button_replace);
 	vbc_button->add_child(hbc_button_replace);
-	hbc_button_replace->set_alignment(ALIGNMENT_END);
+	hbc_button_replace->set_alignment(BoxContainer::ALIGNMENT_END);
 
 
 	HBoxContainer *hbc_option_search = memnew(HBoxContainer);
 	HBoxContainer *hbc_option_search = memnew(HBoxContainer);
 	vbc_option->add_child(hbc_option_search);
 	vbc_option->add_child(hbc_option_search);

+ 1 - 1
editor/plugins/material_editor_plugin.cpp

@@ -125,7 +125,7 @@ MaterialEditor::MaterialEditor() {
 	// canvas item
 	// canvas item
 
 
 	layout_2d = memnew(HBoxContainer);
 	layout_2d = memnew(HBoxContainer);
-	layout_2d->set_alignment(ALIGNMENT_CENTER);
+	layout_2d->set_alignment(BoxContainer::ALIGNMENT_CENTER);
 	add_child(layout_2d);
 	add_child(layout_2d);
 	layout_2d->set_anchors_and_offsets_preset(PRESET_WIDE);
 	layout_2d->set_anchors_and_offsets_preset(PRESET_WIDE);