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:
@@ -779,7 +779,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
||||
for (int i = 0; i < node->get_output_sequence_port_count(); i++) {
|
||||
Label *text2 = memnew(Label);
|
||||
text2->set_text(node->get_output_sequence_port_text(i));
|
||||
text2->set_align(Label::ALIGN_RIGHT);
|
||||
text2->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_RIGHT);
|
||||
gnode->add_child(text2);
|
||||
gnode->set_slot(slot_idx, false, 0, Color(), true, TYPE_SEQUENCE, mono_color, seq_port, seq_port);
|
||||
slot_idx++;
|
||||
@@ -900,7 +900,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
||||
if (i < mixed_seq_ports) {
|
||||
Label *text2 = memnew(Label);
|
||||
text2->set_text(node->get_output_sequence_port_text(i));
|
||||
text2->set_align(Label::ALIGN_RIGHT);
|
||||
text2->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_RIGHT);
|
||||
hbc->add_child(text2);
|
||||
}
|
||||
|
||||
@@ -4476,8 +4476,8 @@ VisualScriptEditor::VisualScriptEditor() {
|
||||
|
||||
select_func_text = memnew(Label);
|
||||
select_func_text->set_text(TTR("Select or create a function to edit its graph."));
|
||||
select_func_text->set_align(Label::ALIGN_CENTER);
|
||||
select_func_text->set_valign(Label::VALIGN_CENTER);
|
||||
select_func_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
select_func_text->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
|
||||
select_func_text->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
add_child(select_func_text);
|
||||
|
||||
@@ -4485,8 +4485,8 @@ VisualScriptEditor::VisualScriptEditor() {
|
||||
hint_text->set_anchor_and_offset(SIDE_TOP, ANCHOR_END, -100);
|
||||
hint_text->set_anchor_and_offset(SIDE_BOTTOM, ANCHOR_END, 0);
|
||||
hint_text->set_anchor_and_offset(SIDE_RIGHT, ANCHOR_END, 0);
|
||||
hint_text->set_align(Label::ALIGN_CENTER);
|
||||
hint_text->set_valign(Label::VALIGN_CENTER);
|
||||
hint_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
hint_text->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
|
||||
graph->add_child(hint_text);
|
||||
|
||||
hint_text_timer = memnew(Timer);
|
||||
|
||||
Reference in New Issue
Block a user