mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Rename internal Button icon to button_icon to match exposed methods
This commit is contained in:
@@ -488,7 +488,7 @@ void ConnectDialog::_notification(int p_what) {
|
||||
}
|
||||
|
||||
method_search->set_right_icon(get_editor_theme_icon("Search"));
|
||||
open_method_tree->set_icon(get_editor_theme_icon("Edit"));
|
||||
open_method_tree->set_button_icon(get_editor_theme_icon("Edit"));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
@@ -1079,17 +1079,17 @@ void ConnectionsDock::_tree_item_selected() {
|
||||
TreeItem *item = tree->get_selected();
|
||||
if (item && _get_item_type(*item) == TREE_ITEM_TYPE_SIGNAL) {
|
||||
connect_button->set_text(TTR("Connect..."));
|
||||
connect_button->set_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_button_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_disabled(false);
|
||||
} else if (item && _get_item_type(*item) == TREE_ITEM_TYPE_CONNECTION) {
|
||||
connect_button->set_text(TTR("Disconnect"));
|
||||
connect_button->set_icon(get_editor_theme_icon(SNAME("Unlinked")));
|
||||
connect_button->set_button_icon(get_editor_theme_icon(SNAME("Unlinked")));
|
||||
|
||||
Object::Connection connection = item->get_metadata(0);
|
||||
connect_button->set_disabled(_is_connection_inherited(connection));
|
||||
} else {
|
||||
connect_button->set_text(TTR("Connect..."));
|
||||
connect_button->set_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_button_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_disabled(true);
|
||||
}
|
||||
}
|
||||
@@ -1586,7 +1586,7 @@ void ConnectionsDock::update_tree() {
|
||||
}
|
||||
|
||||
connect_button->set_text(TTR("Connect..."));
|
||||
connect_button->set_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_button_icon(get_editor_theme_icon(SNAME("Instance")));
|
||||
connect_button->set_disabled(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user