1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00
Commit Graph

334 Commits

Author SHA1 Message Date
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
bruvzg
460b538746 [PopupMenu] Increase mouse button release timeout and reset it from post_popup. 2024-08-07 10:22:12 +03:00
Yuri Rubinsky
af5fc8354b Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
bruvzg
eddc9cea11 [NativeMenu] Do not auto toggle check/multi-state items. Add is_native_menu method. 2024-07-08 11:20:28 +03:00
A Thousand Ships
926afccbd8 [Scene] Add SceneStringNames::panel 2024-05-30 22:54:50 +02:00
A Thousand Ships
755a0efbb6 [Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
bruvzg
cb3ce85902 Fix PopupMenu focus issues after Viewport::set_embedding_subwindows is changed. 2024-05-22 11:17:43 +03:00
kobewi
413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02: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 +02:00
Koyper
4c5a904faf [PopupMenu] Fix incorrect vertical scroll bar visible at fractional content scale 2024-04-25 09:33:36 -05: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 +02:00
Koyper
0881c81c13 Fix non-embedded Windows resizing to match Viewport content scale factor 2024-04-17 09:30:16 -05:00
Michael Alexsander
978ffb39bf Fix submenus erroneously closing on some occasions 2024-04-13 15:10:19 -03:00
bruvzg
3459aaa9d1 Fix NativeMenu layout direction on macOS, add extra check for Windows menu. 2024-03-15 09:48:54 +02:00
bruvzg
ac7583e449 [NativeMenu] Implement native popup menu support on Windows. 2024-03-13 10:51:38 +02:00
bruvzg
c65a667924 Move global_menu_* methods to a separate NativeMenu class. 2024-03-04 23:41:41 +02:00
Mounir Tohami
7884d63281 Fix PopupMenu doesn't respect it's ScrollContainer's margins 2024-02-23 15:51:47 +02:00
kobewi
aeec3c1309 Add methods to add submenus without using names 2024-02-22 15:13:53 +01:00
Rémi Verschelde
a246a4b523 Merge pull request #87967 from jsjtxietian/set_item_submenu
Fix `set_item_submenu` infinite recursion crash
2024-02-22 14:39:06 +01:00
jsjtxietian
3525972bc7 Fix set_item_submenu infinite recursion crash 2024-02-22 12:37:50 +08:00
Rémi Verschelde
8f1915eb90 Revert "Fix selecting popup menu items on mouse release" 2024-02-20 10:05:41 +01:00
Rémi Verschelde
92951b0295 Merge pull request #86952 from ryevdokimov/fix-selecting-popup-menu-items-on-mouse-release
Fix selecting popup menu items on mouse release
2024-02-14 10:59:40 +01:00
kobewi
4f29ef82db Add PropertyListHelper to PopupMenu 2024-02-11 12:09:55 +01:00
A Thousand Ships
15369fdb1d Remove unnecessary this-> expressions 2024-01-29 09:59:18 +01:00
mrcdk
c9bdccf7f2 Expose PopupMenu get_item_multistate(), get_item_multistate_max() and set_item_multistate_max() 2024-01-22 20:07:19 +01:00
bruvzg
5a61fecd0e [macOS] Do not unbind PopupMenu from global menu on clear call. 2024-01-16 15:33:14 +02:00
Rémi Verschelde
c1da69d8f2 Merge pull request #86141 from Maran23/popup-hover-height-calc
Fix Popup hover and height calculation are off by some pixels
2024-01-15 13:23:42 +01:00
Robert Yevdokimov
06c2cda848 Fix selecting popup menu items on mouse release 2024-01-14 17:45:52 -05:00
Rémi Verschelde
365755fb34 Merge pull request #84946 from DarkMessiah/default-theme-checkbox-disabled-state
Use disabled icons for CheckBox in DefaultTheme
2024-01-10 12:03:12 +01:00
Rémi Verschelde
6c390b620d Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
Rémi Verschelde
0c36bd791d Merge pull request #82900 from bruvzg/macos_menu_global_shortcuts
[PopupMenu] Handle shortcuts with "global" flag directly.
2024-01-03 15:41:04 +01:00
bruvzg
15cdc52658 [PopupMenu] Handle physical_keycode and key_label of shortcuts. 2023-12-30 13:17:46 +02:00
Yuri Sizov
8a9aa30348 Merge pull request #81243 from Sauermann/fix-window-events
Fix internal events not being delivered to some Window types
2023-12-19 13:01:00 +01:00