mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +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
|
|
@ -60,7 +60,7 @@ void GraphColorRampEdit::_gui_input(const InputEvent& p_event) {
|
|||
return;
|
||||
Size2 ms = Size2(350, picker->get_combined_minimum_size().height+10);
|
||||
picker->set_color(points[grabbed].color);
|
||||
popup->set_pos(get_global_pos()-Size2(0,ms.height));
|
||||
popup->set_position(get_global_position()-Size2(0,ms.height));
|
||||
popup->set_size(ms);
|
||||
popup->popup();
|
||||
return;
|
||||
|
|
@ -840,7 +840,7 @@ void ShaderGraphView::_xform_input_changed(int p_id, Node *p_button){
|
|||
|
||||
|
||||
ToolButton *tb = p_button->cast_to<ToolButton>();
|
||||
ped_popup->set_pos(tb->get_global_pos()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_position(tb->get_global_position()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_size(tb->get_size());
|
||||
edited_id=p_id;
|
||||
edited_def=-1;
|
||||
|
|
@ -851,7 +851,7 @@ void ShaderGraphView::_xform_input_changed(int p_id, Node *p_button){
|
|||
void ShaderGraphView::_xform_const_changed(int p_id, Node *p_button){
|
||||
|
||||
ToolButton *tb = p_button->cast_to<ToolButton>();
|
||||
ped_popup->set_pos(tb->get_global_pos()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_position(tb->get_global_position()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_size(tb->get_size());
|
||||
edited_id=p_id;
|
||||
edited_def=-1;
|
||||
|
|
@ -1075,7 +1075,7 @@ void ShaderGraphView::_input_name_changed(const String& p_name, int p_id, Node *
|
|||
void ShaderGraphView::_tex_edited(int p_id,Node* p_button) {
|
||||
|
||||
ToolButton *tb = p_button->cast_to<ToolButton>();
|
||||
ped_popup->set_pos(tb->get_global_pos()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_position(tb->get_global_position()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_size(tb->get_size());
|
||||
edited_id=p_id;
|
||||
edited_def=-1;
|
||||
|
|
@ -1085,7 +1085,7 @@ void ShaderGraphView::_tex_edited(int p_id,Node* p_button) {
|
|||
void ShaderGraphView::_cube_edited(int p_id,Node* p_button) {
|
||||
|
||||
ToolButton *tb = p_button->cast_to<ToolButton>();
|
||||
ped_popup->set_pos(tb->get_global_pos()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_position(tb->get_global_position()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_size(tb->get_size());
|
||||
edited_id=p_id;
|
||||
edited_def=-1;
|
||||
|
|
@ -1300,7 +1300,7 @@ void ShaderGraphView::_delete_nodes_request()
|
|||
void ShaderGraphView::_default_changed(int p_id, Node *p_button, int p_param, int v_type, String p_hint)
|
||||
{
|
||||
ToolButton *tb = p_button->cast_to<ToolButton>();
|
||||
ped_popup->set_pos(tb->get_global_pos()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_position(tb->get_global_position()+Vector2(0,tb->get_size().height));
|
||||
ped_popup->set_size(tb->get_size());
|
||||
edited_id=p_id;
|
||||
edited_def=p_param;
|
||||
|
|
@ -2751,7 +2751,7 @@ ShaderGraphView::ShaderGraphView(ShaderGraph::ShaderType p_type) {
|
|||
graph_edit->get_top_layer()->add_child(status);
|
||||
graph_edit->connect("_begin_node_move", this, "_begin_node_move");
|
||||
graph_edit->connect("_end_node_move", this, "_end_node_move");
|
||||
status->set_pos(Vector2(5,5));
|
||||
status->set_position(Vector2(5,5));
|
||||
status->add_color_override("font_color_shadow",Color(0,0,0));
|
||||
status->add_color_override("font_color",Color(1,0.4,0.3));
|
||||
status->add_constant_override("shadow_as_outline",1);
|
||||
|
|
@ -2779,7 +2779,7 @@ void ShaderGraphEditor::_popup_requested(const Vector2 &p_position)
|
|||
{
|
||||
Vector2 scroll_ofs=graph_edits[tabs->get_current_tab()]->get_graph_edit()->get_scroll_ofs();
|
||||
next_location = get_local_mouse_pos() + scroll_ofs;
|
||||
popup->set_global_pos(p_position);
|
||||
popup->set_global_position(p_position);
|
||||
popup->set_size( Size2( 200, 0) );
|
||||
popup->popup();
|
||||
popup->call_deferred("grab_click_focus");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue