You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add the button pressed to some signals in Tree
This commit is contained in:
@@ -46,7 +46,7 @@ void EditorPluginSettings::_notification(int p_what) {
|
||||
|
||||
case Node::NOTIFICATION_READY: {
|
||||
plugin_config_dialog->connect("plugin_ready", Callable(EditorNode::get_singleton(), "_on_plugin_ready"));
|
||||
plugin_list->connect("button_pressed", callable_mp(this, &EditorPluginSettings::_cell_button_pressed));
|
||||
plugin_list->connect("button_clicked", callable_mp(this, &EditorPluginSettings::_cell_button_pressed));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,10 @@ void EditorPluginSettings::_create_clicked() {
|
||||
plugin_config_dialog->popup_centered();
|
||||
}
|
||||
|
||||
void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id) {
|
||||
void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button) {
|
||||
if (p_button != MouseButton::LEFT) {
|
||||
return;
|
||||
}
|
||||
TreeItem *item = Object::cast_to<TreeItem>(p_item);
|
||||
if (!item) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user