mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Rename [gs]et_pos to [gs]et_position for Controls
Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
This commit is contained in:
parent
1c480698ce
commit
8589ca3903
82 changed files with 330 additions and 330 deletions
|
@ -1017,7 +1017,7 @@ void VisualScriptEditor::_member_button(Object *p_item, int p_column, int p_butt
|
|||
}
|
||||
|
||||
Rect2 pos = members->get_item_rect(ti);
|
||||
new_function_menu->set_pos(members->get_global_pos() + pos.pos + Vector2(0, pos.size.y));
|
||||
new_function_menu->set_position(members->get_global_position() + pos.pos + Vector2(0, pos.size.y));
|
||||
new_function_menu->popup();
|
||||
return;
|
||||
} else if (p_button == 0) {
|
||||
|
@ -2517,7 +2517,7 @@ void VisualScriptEditor::_graph_connect_to_empty(const String &p_from, int p_fro
|
|||
|
||||
port_action_pos = p_release_pos;
|
||||
port_action_popup->set_size(Size2(1, 1));
|
||||
port_action_popup->set_pos(graph->get_global_pos() + p_release_pos);
|
||||
port_action_popup->set_position(graph->get_global_position() + p_release_pos);
|
||||
port_action_popup->popup();
|
||||
}
|
||||
|
||||
|
@ -2806,7 +2806,7 @@ void VisualScriptEditor::_default_value_edited(Node *p_button, int p_id, int p_i
|
|||
existing = Variant::construct(pinfo.type, &existingp, 1, ce, false);
|
||||
}
|
||||
|
||||
default_value_edit->set_pos(p_button->cast_to<Control>()->get_global_pos() + Vector2(0, p_button->cast_to<Control>()->get_size().y));
|
||||
default_value_edit->set_position(p_button->cast_to<Control>()->get_global_position() + Vector2(0, p_button->cast_to<Control>()->get_size().y));
|
||||
default_value_edit->set_size(Size2(1, 1));
|
||||
if (default_value_edit->edit(NULL, pinfo.name, pinfo.type, existing, pinfo.hint, pinfo.hint_string)) {
|
||||
if (pinfo.hint == PROPERTY_HINT_MULTILINE_TEXT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue