summaryrefslogtreecommitdiffstats
path: root/scene/gui/popup_menu.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move `global_menu_*` methods to a separate `NativeMenu` class.bruvzg2024-03-041-186/+192
|
* Fix PopupMenu doesn't respect it's ScrollContainer's marginsMounir Tohami2024-02-231-76/+58
|
* Add methods to add submenus without using nameskobewi2024-02-221-86/+76
|
* Merge pull request #87967 from jsjtxietian/set_item_submenuRémi Verschelde2024-02-221-0/+5
|\ | | | | | | Fix `set_item_submenu` infinite recursion crash
| * Fix `set_item_submenu` infinite recursion crashjsjtxietian2024-02-221-0/+5
| |
* | Revert "Fix selecting popup menu items on mouse release"Rémi Verschelde2024-02-201-48/+43
|/
* Merge pull request #86952 from ↵Rémi Verschelde2024-02-141-43/+48
|\ | | | | | | | | | | ryevdokimov/fix-selecting-popup-menu-items-on-mouse-release Fix selecting popup menu items on mouse release
| * Fix selecting popup menu items on mouse releaseRobert Yevdokimov2024-01-141-43/+48
| |
* | Add PropertyListHelper to PopupMenukobewi2024-02-111-97/+35
| |
* | Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-1/+1
| |
* | Expose PopupMenu get_item_multistate(), get_item_multistate_max() and ↵mrcdk2024-01-221-0/+24
| | | | | | | | set_item_multistate_max()
* | [macOS] Do not unbind PopupMenu from global menu on `clear` call.bruvzg2024-01-161-2/+3
| |
* | Merge pull request #86141 from Maran23/popup-hover-height-calcRémi Verschelde2024-01-151-4/+3
|\ \ | | | | | | | | | Fix Popup hover and height calculation are off by some pixels
| * | Fix Popup hover and height calculation are off by some pixelsMarius Hanl2023-12-141-4/+3
| | | | | | | | | | | | This was caused by an incorrect calculation of the v_separation where it was not needed
* | | Merge pull request #84946 from DarkMessiah/default-theme-checkbox-disabled-stateRémi Verschelde2024-01-101-3/+1
|\ \ \ | |_|/ |/| | | | | Use disabled icons for CheckBox in DefaultTheme
| * | Use disabled icons for CheckBox in DefaultThemeStanislav Labzyuk2023-11-191-3/+1
| |/
* | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-041-2/+2
|\ \ | | | | | | | | | Add const references detected by clang-tidy
| * | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-2/+2
| |/
* | Merge pull request #82900 from bruvzg/macos_menu_global_shortcutsRémi Verschelde2024-01-031-7/+12
|\ \ | | | | | | | | | [PopupMenu] Handle shortcuts with "global" flag directly.
| * | [PopupMenu] Handle shortcuts with "global" flag directly.bruvzg2023-10-061-7/+12
| | |
* | | [PopupMenu] Handle physical_keycode and key_label of shortcuts.bruvzg2023-12-301-18/+24
| | |
* | | Merge pull request #81243 from Sauermann/fix-window-eventsYuri Sizov2023-12-191-4/+9
|\ \ \ | | | | | | | | | | | | Fix internal events not being delivered to some Window types
| * | | Fix internal events not being delivered to some Window typesMarkus Sauermann2023-11-141-4/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | `AcceptDialog`, `Popup` and `PopupMenu` no longer subscribe to "window_input" signal, because that is only sent if it is not an internal signal. Instead they receive events in `_input_from_window`. They ensure that the event is also propagated to their super-function, just like previously the signals would be treated.
* / | [macOS] Add default Window and Help menus, allow special menu customization.bruvzg2023-12-131-1/+51
|/ /
* | Allow auto-generated node names in `PopupMenu::add_submenu_item`Yuri Sizov2023-11-091-1/+5
| |
* | Fix `activate_item_by_event` infinite recursion crashjsjtxietian2023-11-011-0/+1
| |
* | Ensure input event is valid in `PopupMenu::activate_item_by_event`A Thousand Ships2023-10-251-0/+1
| |
* | Add bulk change guards to successive theme overrides in Editor and GUIYuri Sizov2023-10-191-0/+2
| |
* | Fix incorrect offset of `PopupMenu` separator iconsYuri Sizov2023-10-171-7/+7
| |
* | Merge pull request #80271 from Ymanawat/optionmenu-scroll-testRémi Verschelde2023-10-091-8/+10
|\ \ | |/ |/| | | Fix scrolling on keyboard/controller input
| * Fix scrolling popup_menu On keyboard/controller inputYogendra Manawat2023-08-301-8/+10
| |
* | [macOS] Add `about_to_open` and `popup_hide` callback for the global menus, ↵bruvzg2023-10-041-8/+453
| | | | | | | | move part of logic to the PopupMenu to allow live menu modification.
* | Free submenu children when clearing PopupMenukobewi2023-09-251-5/+13
| |
* | Expose `PopupMenu` `activate_item_by_event` methodPrecisionRender2023-09-151-0/+2
| |
* | Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This adds binds for GraphEdit/GraphElement/GraphNode, which were skipped before due to a rework. This also adds binds for Window, which was skipped before due to a complicated code organization. Also adds theme cache entries/direct cache access to a few places that previously missed it. Some theme properties are now exposed to other classes via friendships or public getters for convenience. This removes all string-based theme access from scene/ classes.
* | Merge pull request #81477 from timothyqiu/alignedRémi Verschelde2023-09-111-2/+2
|\ \ | | | | | | | | | Fix submenu alignment with parent menu item
| * | Fix submenu alignment with parent menu itemHaoyu Qiu2023-09-091-2/+2
| | |
* | | Register theme properties with ThemeDBYuri Sizov2023-09-111-46/+43
|/ /
* / Add option to allow echo events in menu shortcutsTomasz Chabora2023-08-161-13/+15
|/
* Unify and streamline connecting to Resource changeskobewi2023-07-171-2/+2
|
* [macOS] Implement optional native file selection dialog support for ↵bruvzg2023-07-121-1/+1
| | | | sandboxed apps.
* Merge pull request #78476 from Sauermann/fix-embedded-safe-areaYuri Sizov2023-07-121-2/+7
|\ | | | | | | Embedded Popups store their safe_rect in their embedder
| * Embedded Popups store their safe_rect in their embedderMarkus Sauermann2023-06-201-2/+7
| | | | | | | | | | Storing it in the DisplayServer didn't make sense in this case, because the embedded window is unknown to the DisplayServer.
* | Fix invalid minimum size for translated messages in option buttonFlorian Kothmeier2023-06-291-0/+5
|/
* Remove unused variable `PopupMenu::parent_rect`Markus Sauermann2023-06-151-4/+0
| | | | | This private variable is not read anywhere. Remove it and all places, where it is set.
* Use `get_node_or_null` when null checks are presentNinni Pipping2023-06-101-3/+3
| | | | Avoids duplicate or unnecessary errors
* Merge pull request #63168 from Levrault/masterRémi Verschelde2023-06-051-0/+93
|\ | | | | | | Fix: InputEventJoypadMotion should trigger only once on a vslider
| * feat(gamepad): improve gamepad behavior with slider and popup_menuLuc-Frédéric Langis2023-06-051-0/+93
| |
* | Merge pull request #76854 from CapitaineCookie/fix-change-typeYuri Sizov2023-06-021-2/+7
|\ \ | | | | | | Fix crash when changing node type from PopupMenu to ItemList
| * | Fix crash when changing node type from PopMenu to ItemListClement C2023-05-121-2/+7
| | |