Commit Graph

357 Commits

Author SHA1 Message Date
1e1f044fd1 Merge pull request #110256 from Koyper/fix_popup_menu_item_wont_open
[PopupMenu] Fix submenu item not popping on mouse enter
2025-11-18 14:00:45 -06:00
70e6ac5db3 Fix PopupMenu submenu item not popping on mouse enter 2025-11-18 08:34:49 -06:00
41d93ca03c Fix blurry items on PopupMenu when v_separation has an odd value 2025-11-13 16:52:31 -03:00
4694ee84f6 PopupMenu: Add theme option for merging icon and checkbox gutters 2025-11-09 13:09:14 +08:00
7a3093c373 PopupMenu: Fix minimum size for items with icons 2025-11-05 07:48:26 +08:00
c5fe5d4faf Fix PopupMenu losing item highlight when hovering submenus 2025-10-28 18:09:07 -03:00
4a98162690 PopupMenu no longer ignores max_size 2025-10-27 18:10:58 +08:00
9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
19c47c5d99 Remove #include "scene/main/timer.h" from control.h 2025-10-05 14:41:06 +09:00
172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00
74e869c777 Merge pull request #109981 from bruvzg/clamp_menui_h
Clamp menus at the bottom of the screen.
2025-09-19 20:54:33 -05:00
8ccb7ba2ec Merge pull request #90832 from YeldhamDev/just_ignore_the_margin_bro
Fix incorrect submenu icon and accelerator text positions involving margins
2025-09-01 12:25:44 -05:00
02adbc47ba Do not set flags when PopupMenu::set_visible is called to hide popup. 2025-08-28 13:16:16 +03:00
90370a08ec Clamp menus at the bottom of the screen. 2025-08-27 15:29:50 +03:00
40c96b8433 Merge pull request #109046 from bruvzg/ac_win_x
[Accessibility] Process non-focusable windows (popups, menus) as part of the parent window tree.
2025-08-18 08:29:12 -05:00
cadfd52b16 Fix PopupMenu accel position 2025-08-17 22:55:37 +02:00
7b47f5e8db [Accessibility] Process non-focusable windows (popups, menus) as part of the parent window tree. 2025-08-17 12:15:08 +03:00
10fd7163d4 Add methods to check which event first triggered "just pressed/released" state. 2025-08-12 16:25:23 +03:00
2111ff0e2a Fix menu keyboard and controller navigation. 2025-07-21 10:03:07 +03:00
6ac24d232b Fix PopupMenu clickable area with shadows 2025-07-09 07:20:43 +02:00
34a97f9c9b Fix scale and position of popups with force_native. 2025-06-16 13:03:42 +03:00
12d957e737 Call PopupMenu min. size calculations after about_to_popup signal processing. 2025-06-11 12:23:29 +03:00
f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
147b8415b1 Fix shadow offset larger than shadow size in PopupMenu and PopupPanel.
Panel shadow offsets larger than shadow size should no longer place the
panel edges outside its window.
2025-04-10 12:31:06 +01:00
45fb66f4b0 Merge pull request #104632 from ibrahn/popup-menu-mouseover-calc
Fix and simplify hit calculation in `PopupMenu::_get_mouse_over`.
2025-04-09 18:11:58 -05:00
b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
27438a1b9d Improve Popup content_scale_factor 2025-03-26 23:47:40 +08:00
6e7d2abb81 Fix and simplify hit calculation in PopupMenu::_get_mouse_over. 2025-03-26 00:25:48 +00:00
10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
82a0290871 Add auto translate mode for items in PopupMenu and OptionButton 2025-03-09 23:50:11 +08:00
a32d3663c4 Fix popup shadows misbehaving with content_scale_factor 2025-02-10 11:55:08 -03:00
4b8cfc3040 Fix native popup menus position in embedded windows. 2025-02-01 21:31:03 +02:00
5c63646e87 Change print warnings to config ones for popups that need transparency 2025-01-09 15:59:56 -03:00
f7f6432af6 Make PopupMenu/Panel shadows properly visible again 2024-12-02 14:20:58 -03:00
d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 -08:00
a328952fc1 Fix PopupMenu.id_focused signal using index as ID 2024-10-07 00:19:16 +08:00
e2dd56bea7 Merge pull request #95902 from kitbdev/remove-forced-mouse-focus
Clean up Viewport's `forced_mouse_focus`
2024-09-03 17:38:17 +02:00
kit
307e40e873 Clean up Viewport forced_mouse_focus 2024-08-21 09:37:44 -04:00
5279fec60f Always store ID of PopupMenu items 2024-08-20 15:33:21 +02:00
7f6c14522c Stop popup release timeout on click. 2024-08-12 19:35:20 +03:00
460b538746 [PopupMenu] Increase mouse button release timeout and reset it from post_popup. 2024-08-07 10:22:12 +03:00
af5fc8354b Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
eddc9cea11 [NativeMenu] Do not auto toggle check/multi-state items. Add is_native_menu method. 2024-07-08 11:20:28 +03:00
926afccbd8 [Scene] Add SceneStringNames::panel 2024-05-30 22:54:50 +02:00
755a0efbb6 [Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
cb3ce85902 Fix PopupMenu focus issues after Viewport::set_embedding_subwindows is changed. 2024-05-22 11:17:43 +03:00
413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
7705265477 Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-05-10 10:46:04 +02:00
4c5a904faf [PopupMenu] Fix incorrect vertical scroll bar visible at fractional content scale 2024-04-25 09:33:36 -05:00
3a88373a4c Merge pull request #86553 from Koyper/fix_popup_panel_content_scaling
Fix non-embedded tooltips, popups and dialogs resizing to match Viewport content scale factors != 1.0
2024-04-18 12:24:11 +02:00