1
0
Fork 0
Commit Graph

367 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs 887e001c21
Unset submenu index when popup menu is hidden. 2025-12-09 11:48:09 +02:00
Rémi Verschelde 6b420d701a
Merge pull request #110080 from bruvzg/popscwpc
[GraphEdit] Do not scale popup menus in the graph elements when zoomed.
2025-12-05 12:55:44 +01:00
Rémi Verschelde 03546373f4
Merge pull request #113320 from Koyper/fix_popup_menu_accelerator_incorrect_highlighting
[PopupMenu] Fix accelerator incorrect highlighting when mouse moves toward submenu
2025-12-03 09:49:50 +01:00
Koyper 7282a8564b fix popup menu accelerator incorrect highlighting 2025-12-01 08:43:50 -06:00
Koyper 3ae88632e2 Fix redundant attempts to connect popup hidden signal on submenu 2025-11-27 08:53:34 -06:00
Pāvels Nadtočajevs bdca5fa3a3
[GraphEdit] Do not scale popup menus in the graph elements when zoomed. 2025-11-27 13:40:14 +02:00
Pāvels Nadtočajevs 2721dbf5bc
[PopupMenu] Update global menu shortcuts when shortcut is externally changed. 2025-11-25 20:32:42 +02:00
Thaddeus Crews 5afc01c46d
Merge pull request #112604 from bruvzg/pop_center_rec
Update rect after `_pre_popup` in `popup_centered_*`.
2025-11-25 09:52:38 -06:00
Koyper 5b61baa60d Fix error spam and skip submenu hidden signals on native menus 2025-11-21 19:01:15 -06:00
Thaddeus Crews 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
Koyper 70e6ac5db3 Fix PopupMenu submenu item not popping on mouse enter 2025-11-18 08:34:49 -06:00
Michael Alexsander 41d93ca03c
Fix blurry items on `PopupMenu` when `v_separation` has an odd value 2025-11-13 16:52:31 -03:00
Pāvels Nadtočajevs adf18ff44d
Update rect after `_pre_popup` in `popup_centered_*`. 2025-11-10 11:24:37 +02:00
Haoyu Qiu 4694ee84f6 PopupMenu: Add theme option for merging icon and checkbox gutters 2025-11-09 13:09:14 +08:00
Haoyu Qiu 7a3093c373 PopupMenu: Fix minimum size for items with icons 2025-11-05 07:48:26 +08:00
Michael Alexsander c5fe5d4faf
Fix `PopupMenu` losing item highlight when hovering submenus 2025-10-28 18:09:07 -03:00
scgm0 4a98162690 PopupMenu no longer ignores max_size 2025-10-27 18:10:58 +08:00
Thaddeus Crews 9e96c7d9b8
Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
chocola-mint 19c47c5d99 Remove `#include "scene/main/timer.h"` from `control.h` 2025-10-05 14:41:06 +09:00
Haoyu Qiu 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
Thaddeus Crews 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
Thaddeus Crews 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
Pāvels Nadtočajevs 02adbc47ba
Do not set flags when `PopupMenu::set_visible` is called to hide popup. 2025-08-28 13:16:16 +03:00
Pāvels Nadtočajevs 90370a08ec
Clamp menus at the bottom of the screen. 2025-08-27 15:29:50 +03:00
Thaddeus Crews 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
Giganzo cadfd52b16 Fix PopupMenu accel position 2025-08-17 22:55:37 +02:00
Pāvels Nadtočajevs 7b47f5e8db
[Accessibility] Process non-focusable windows (popups, menus) as part of the parent window tree. 2025-08-17 12:15:08 +03:00
Pāvels Nadtočajevs 10fd7163d4
Add methods to check which event first triggered "just pressed/released" state. 2025-08-12 16:25:23 +03:00
Pāvels Nadtočajevs 2111ff0e2a
Fix menu keyboard and controller navigation. 2025-07-21 10:03:07 +03:00
Giganzo 6ac24d232b Fix PopupMenu clickable area with shadows 2025-07-09 07:20:43 +02:00
Pāvels Nadtočajevs 34a97f9c9b
Fix scale and position of popups with `force_native`. 2025-06-16 13:03:42 +03:00
Pāvels Nadtočajevs 12d957e737
Call `PopupMenu` min. size calculations after `about_to_popup` signal processing. 2025-06-11 12:23:29 +03:00
lawnjelly 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
Ibrahn Sahir 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
Thaddeus Crews 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
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +03:00
scgm0 27438a1b9d Improve Popup content_scale_factor 2025-03-26 23:47:40 +08:00
Ibrahn Sahir 6e7d2abb81 Fix and simplify hit calculation in PopupMenu::_get_mouse_over. 2025-03-26 00:25:48 +00:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Haoyu Qiu 82a0290871 Add auto translate mode for items in PopupMenu and OptionButton 2025-03-09 23:50:11 +08:00
Michael Alexsander a32d3663c4
Fix popup shadows misbehaving with `content_scale_factor` 2025-02-10 11:55:08 -03:00
Pāvels Nadtočajevs 4b8cfc3040 Fix native popup menus position in embedded windows. 2025-02-01 21:31:03 +02:00
Michael Alexsander 5c63646e87
Change print warnings to config ones for popups that need transparency 2025-01-09 15:59:56 -03:00
Michael Alexsander f7f6432af6
Make `PopupMenu/Panel` shadows properly visible again 2024-12-02 14:20:58 -03:00
rune-scape d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 -08:00
Haoyu Qiu a328952fc1 Fix `PopupMenu.id_focused` signal using index as ID 2024-10-07 00:19:16 +08:00
Rémi Verschelde 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
kobewi 5279fec60f Always store ID of PopupMenu items 2024-08-20 15:33:21 +02:00
bruvzg 7f6c14522c
Stop popup release timeout on click. 2024-08-12 19:35:20 +03:00