Commit Graph

357 Commits (cb1569345a6f17da08241e645ab03cb2e1b78d2f)

Author SHA1 Message Date
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 +07:00
Koyper 70e6ac5db3 Fix PopupMenu submenu item not popping on mouse enter 2025-11-18 08:34:49 +07:00
Michael Alexsander 41d93ca03c
Fix blurry items on `PopupMenu` when `v_separation` has an odd value 2025-11-13 16:52:31 +07:00
Haoyu Qiu 4694ee84f6 PopupMenu: Add theme option for merging icon and checkbox gutters 2025-11-09 13:09:14 +07:00
Haoyu Qiu 7a3093c373 PopupMenu: Fix minimum size for items with icons 2025-11-05 07:48:26 +07:00
Michael Alexsander c5fe5d4faf
Fix `PopupMenu` losing item highlight when hovering submenus 2025-10-28 18:09:07 +07:00
scgm0 4a98162690 PopupMenu no longer ignores max_size 2025-10-27 18:10:58 +07: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 +07:00
chocola-mint 19c47c5d99 Remove `#include "scene/main/timer.h"` from `control.h` 2025-10-05 14:41:06 +07: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 +07: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 +07: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 +07: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 +07:00
Pāvels Nadtočajevs 90370a08ec
Clamp menus at the bottom of the screen. 2025-08-27 15:29:50 +07: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 +07:00
Giganzo cadfd52b16 Fix PopupMenu accel position 2025-08-17 22:55:37 +07: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 +07:00
Pāvels Nadtočajevs 10fd7163d4
Add methods to check which event first triggered "just pressed/released" state. 2025-08-12 16:25:23 +07:00
Pāvels Nadtočajevs 2111ff0e2a
Fix menu keyboard and controller navigation. 2025-07-21 10:03:07 +07:00
Giganzo 6ac24d232b Fix PopupMenu clickable area with shadows 2025-07-09 07:20:43 +07:00
Pāvels Nadtočajevs 34a97f9c9b
Fix scale and position of popups with `force_native`. 2025-06-16 13:03:42 +07:00
Pāvels Nadtočajevs 12d957e737
Call `PopupMenu` min. size calculations after `about_to_popup` signal processing. 2025-06-11 12:23:29 +07: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 +07: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 +07: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 +07:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +07:00
scgm0 27438a1b9d Improve Popup content_scale_factor 2025-03-26 23:47:40 +07:00
Ibrahn Sahir 6e7d2abb81 Fix and simplify hit calculation in PopupMenu::_get_mouse_over. 2025-03-26 00:25:48 +07:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +07:00
Haoyu Qiu 82a0290871 Add auto translate mode for items in PopupMenu and OptionButton 2025-03-09 23:50:11 +07:00
Michael Alexsander a32d3663c4
Fix popup shadows misbehaving with `content_scale_factor` 2025-02-10 11:55:08 +07:00
Pāvels Nadtočajevs 4b8cfc3040 Fix native popup menus position in embedded windows. 2025-02-01 21:31:03 +07:00
Michael Alexsander 5c63646e87
Change print warnings to config ones for popups that need transparency 2025-01-09 15:59:56 +07:00
Michael Alexsander f7f6432af6
Make `PopupMenu/Panel` shadows properly visible again 2024-12-02 14:20:58 +07:00
rune-scape d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 +07:00
Haoyu Qiu a328952fc1 Fix `PopupMenu.id_focused` signal using index as ID 2024-10-07 00:19:16 +07: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 +07:00
kit 307e40e873 Clean up Viewport forced_mouse_focus 2024-08-21 09:37:44 +07:00
kobewi 5279fec60f Always store ID of PopupMenu items 2024-08-20 15:33:21 +07:00
bruvzg 7f6c14522c
Stop popup release timeout on click. 2024-08-12 19:35:20 +07:00
bruvzg 460b538746
[PopupMenu] Increase mouse button release timeout and reset it from `post_popup`. 2024-08-07 10:22:12 +07:00
Yuri Rubinsky af5fc8354b Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +07:00
bruvzg eddc9cea11
[NativeMenu] Do not auto toggle check/multi-state items. Add `is_native_menu` method. 2024-07-08 11:20:28 +07:00
A Thousand Ships 926afccbd8
[Scene] Add `SceneStringNames::panel` 2024-05-30 22:54:50 +07:00
A Thousand Ships 755a0efbb6
[Scene] Add `SceneStringNames::id_pressed` 2024-05-30 22:54:04 +07:00
bruvzg cb3ce85902
Fix `PopupMenu` focus issues after `Viewport::set_embedding_subwindows` is changed. 2024-05-22 11:17:43 +07:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +07:00
Gilles Roudière 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 +07:00
Koyper 4c5a904faf [PopupMenu] Fix incorrect vertical scroll bar visible at fractional content scale 2024-04-25 09:33:36 +07:00
Rémi Verschelde 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 +07:00