You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
align to horizontal_alignment, valign to vertical_alignment, related
This commit is contained in:
@@ -136,7 +136,7 @@ void ThemeEditorPreview::_draw_picker_overlay() {
|
||||
Point2 label_pos = highlight_label_rect.position;
|
||||
label_pos.y += highlight_label_rect.size.y - margin_bottom;
|
||||
label_pos.x += margin_left;
|
||||
picker_overlay->draw_string(theme_cache.preview_picker_font, label_pos, highlight_name, HALIGN_LEFT, -1, theme_cache.font_size);
|
||||
picker_overlay->draw_string(theme_cache.preview_picker_font, label_pos, highlight_name, HORIZONTAL_ALIGNMENT_LEFT, -1, theme_cache.font_size);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ DefaultThemeEditorPreview::DefaultThemeEditorPreview() {
|
||||
vhb->add_child(memnew(VSeparator));
|
||||
VBoxContainer *hvb = memnew(VBoxContainer);
|
||||
vhb->add_child(hvb);
|
||||
hvb->set_alignment(BoxContainer::ALIGN_CENTER);
|
||||
hvb->set_alignment(BoxContainer::ALIGNMENT_CENTER);
|
||||
hvb->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
hvb->add_child(memnew(HSlider));
|
||||
HScrollBar *hsb = memnew(HScrollBar);
|
||||
|
||||
Reference in New Issue
Block a user