godot/scene
Pedro J. Estébanez 259ed1d400 Improve popup menus usability
It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal.

This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item.

This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature.

This improves UX a bit by saving unnecessary clicks.

From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
2018-04-07 01:06:02 +02:00
..
2d Merge pull request #16971 from Noshyaar/tilemap 2018-03-13 13:57:58 +01:00
3d Merge pull request #17555 from poke1024/add-worldenv-warning 2018-03-23 11:27:03 +01:00
animation AnimationPlayer: fix scrubbing after play backwards 2018-03-09 19:41:14 +01:00
audio Merge pull request #15910 from robfram/fix-audio-signal-issue-15895 2018-02-01 16:54:31 +01:00
gui Improve popup menus usability 2018-04-07 01:06:02 +02:00
main Improve popup menus usability 2018-04-07 01:06:02 +02:00
resources Merge pull request #17094 from Calinou/add-dynamicfont-hinting-options 2018-03-13 13:38:35 +01:00
register_scene_types.cpp Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion. 2018-02-21 09:39:09 -03:00
register_scene_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_string_names.cpp Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
scene_string_names.h Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00