mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Change set_drag_forwarding() to use callables.
* This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
This commit is contained in:
parent
f5f7d11ac4
commit
e6a4debede
30 changed files with 86 additions and 113 deletions
|
|
@ -1023,7 +1023,7 @@ ProjectExportDialog::ProjectExportDialog() {
|
|||
mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
presets = memnew(ItemList);
|
||||
// TODO: Must reimplement drag forwarding.
|
||||
//presets->set_drag_forwarding(this);
|
||||
//presets->set_drag_forwarding_compat(this);
|
||||
mc->add_child(presets);
|
||||
presets->connect("item_selected", callable_mp(this, &ProjectExportDialog::_edit_preset));
|
||||
duplicate_preset = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue