mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
align to horizontal_alignment, valign to vertical_alignment, related
This commit is contained in:
parent
f1e3c87244
commit
41a20171eb
130 changed files with 861 additions and 1011 deletions
|
|
@ -1410,7 +1410,7 @@ void CustomPropertyEditor::_draw_easing() {
|
|||
prev = h;
|
||||
}
|
||||
|
||||
f->draw_string(ci, Point2(10, 10 + f->get_ascent(font_size)), String::num(exp, 2), HALIGN_LEFT, -1, font_size, color);
|
||||
f->draw_string(ci, Point2(10, 10 + f->get_ascent(font_size)), String::num(exp, 2), HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, color);
|
||||
}
|
||||
|
||||
void CustomPropertyEditor::_text_edit_changed() {
|
||||
|
|
@ -1864,7 +1864,7 @@ CustomPropertyEditor::CustomPropertyEditor() {
|
|||
slider->connect("value_changed", callable_mp(this, &CustomPropertyEditor::_range_modified));
|
||||
|
||||
action_hboxes = memnew(HBoxContainer);
|
||||
action_hboxes->set_alignment(BoxContainer::ALIGN_CENTER);
|
||||
action_hboxes->set_alignment(BoxContainer::ALIGNMENT_CENTER);
|
||||
value_vbox->add_child(action_hboxes);
|
||||
for (int i = 0; i < MAX_ACTION_BUTTONS; i++) {
|
||||
action_buttons[i] = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue