Rename pos to position in user facing methods and variables

Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
This commit is contained in:
letheed
2017-09-10 15:37:49 +02:00
parent ecd226c6a7
commit 5ad9be4c24
247 changed files with 823 additions and 832 deletions

View File

@@ -419,12 +419,12 @@ bool EditorAutoloadSettings::can_drop_data_fw(const Point2 &p_point, const Varia
return false;
if (drop_data.has("type")) {
TreeItem *ti = tree->get_item_at_pos(p_point);
TreeItem *ti = tree->get_item_at_position(p_point);
if (!ti)
return false;
int section = tree->get_drop_section_at_pos(p_point);
int section = tree->get_drop_section_at_position(p_point);
if (section < -1)
return false;
@@ -437,12 +437,12 @@ bool EditorAutoloadSettings::can_drop_data_fw(const Point2 &p_point, const Varia
void EditorAutoloadSettings::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_control) {
TreeItem *ti = tree->get_item_at_pos(p_point);
TreeItem *ti = tree->get_item_at_position(p_point);
if (!ti)
return;
int section = tree->get_drop_section_at_pos(p_point);
int section = tree->get_drop_section_at_position(p_point);
if (section < -1)
return;