You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +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:
committed by
Rémi Verschelde
parent
1c480698ce
commit
8589ca3903
@@ -397,12 +397,12 @@ void ProjectSettings::_action_button_pressed(Object *p_obj, int p_column, int p_
|
||||
ERR_FAIL_COND(!ti);
|
||||
|
||||
if (p_id == 1) {
|
||||
Point2 ofs = input_editor->get_global_pos();
|
||||
Point2 ofs = input_editor->get_global_position();
|
||||
Rect2 ir = input_editor->get_item_rect(ti);
|
||||
ir.pos.y -= input_editor->get_scroll().y;
|
||||
ofs += ir.pos + ir.size;
|
||||
ofs.x -= 100;
|
||||
popup_add->set_pos(ofs);
|
||||
popup_add->set_position(ofs);
|
||||
popup_add->popup();
|
||||
add_at = "input/" + ti->get_text(0);
|
||||
|
||||
@@ -1326,7 +1326,7 @@ ProjectSettings::ProjectSettings(EditorData *p_data) {
|
||||
|
||||
l = memnew(Label);
|
||||
vbc->add_child(l);
|
||||
l->set_pos(Point2(6, 5));
|
||||
l->set_position(Point2(6, 5));
|
||||
l->set_text(TTR("Action:"));
|
||||
|
||||
hbc = memnew(HBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user