You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +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
@@ -405,7 +405,7 @@ public:
|
||||
|
||||
l = memnew(Label);
|
||||
l->set_text(TTR("Project Name:"));
|
||||
l->set_pos(Point2(5, 50));
|
||||
l->set_position(Point2(5, 50));
|
||||
vb->add_child(l);
|
||||
pn = l;
|
||||
|
||||
@@ -624,7 +624,7 @@ void ProjectManager::_unhandled_input(const InputEvent &p_ev) {
|
||||
selected_list.clear();
|
||||
selected_list.insert(current, hb->get_meta("main_scene"));
|
||||
|
||||
int offset_diff = scroll->get_v_scroll() - hb->get_pos().y;
|
||||
int offset_diff = scroll->get_v_scroll() - hb->get_position().y;
|
||||
|
||||
if (offset_diff > 0)
|
||||
scroll->set_v_scroll(scroll->get_v_scroll() - offset_diff);
|
||||
@@ -662,7 +662,7 @@ void ProjectManager::_unhandled_input(const InputEvent &p_ev) {
|
||||
selected_list.insert(current, hb->get_meta("main_scene"));
|
||||
|
||||
int last_y_visible = scroll->get_v_scroll() + scroll->get_size().y;
|
||||
int offset_diff = (hb->get_pos().y + hb->get_size().y) - last_y_visible;
|
||||
int offset_diff = (hb->get_position().y + hb->get_size().y) - last_y_visible;
|
||||
|
||||
if (offset_diff > 0)
|
||||
scroll->set_v_scroll(scroll->get_v_scroll() + offset_diff);
|
||||
@@ -912,7 +912,7 @@ void ProjectManager::_update_scroll_pos(const String &dir) {
|
||||
selected_list.insert(hb->get_meta("name"), hb->get_meta("main_scene"));
|
||||
_update_project_buttons();
|
||||
int last_y_visible = scroll->get_v_scroll() + scroll->get_size().y;
|
||||
int offset_diff = (hb->get_pos().y + hb->get_size().y) - last_y_visible;
|
||||
int offset_diff = (hb->get_position().y + hb->get_size().y) - last_y_visible;
|
||||
|
||||
if (offset_diff > 0)
|
||||
scroll->set_v_scroll(scroll->get_v_scroll() + offset_diff);
|
||||
|
||||
Reference in New Issue
Block a user