summaryrefslogtreecommitdiffstats
path: root/scene/gui/popup_menu.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
* | | Unify item indexing in `PopupMenu`Ninni Pipping2023-05-241-57/+57
|/ /
* / Add icon_modulate functionality to PopupMenuthe-sink2023-05-081-0/+23
|/
* Make icons of scripted and custom classes fit the editor UIYuri Sizov2023-03-311-8/+88
| | | | | | | | | | | Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
* Revert "Reordering emitted signals in PopupMenu" and fix editor selection ↵bruvzg2023-02-241-3/+3
| | | | issue in the safer way.
* Reordering emitted signals in PopupMenuNong Van Tinh2023-02-171-3/+3
|
* Merge pull request #66745 from EricEzaM/66453-popupmenu-shortcut-shape-fixRémi Verschelde2023-02-131-0/+1
|\ | | | | | | Ensure PopupMenu item is shaped when the shortcut is set.
| * Ensure PopupMenu item is shaped when the shortcut is set.EricEzaM2022-10-221-0/+1
| |
* | [X11] Fix IME subwindow in the popup not getting input focus.bruvzg2023-02-011-0/+3
| |
* | Clean-up, harmonize, and improve StyleBox APIYuri Sizov2023-01-191-3/+3
| | | | | | | | | | | | - Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
* | Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky2023-01-091-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Use BitField<> in core type masksJuan Linietsky2023-01-081-2/+2
| | | | | | | | | | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | Fix menu popup safe rect height no including theme separation.bruvzg2022-12-071-1/+1
| |
* | Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-1/+1
| |
* | Remove duplicate project settings definitionskobewi2022-11-081-1/+1
|/
* Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde2022-10-131-5/+5
|\ | | | | | | Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
| * Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M2022-09-241-5/+5
| | | | | | | | check the action exactly.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-8/+8
| | | | | | | | change warnings=all to use /W4.
* | Ensure popup menu redraws items when shortcuts update.Eric M2022-09-261-2/+9
|/
* Rename `PopupMenu`'s `set/get_current_index()` to `set/get_focused_item()`Michael Alexsander2022-09-061-5/+5
|
* Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl2022-09-021-1/+1
|
* Add dumb and manual theme caching systems to WindowYuri Sizov2022-09-011-98/+107
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-51/+51
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Merge pull request #64960 from YeldhamDev/more_hl_stuffRémi Verschelde2022-08-291-5/+15
|\
| * Fix some corner cases in the `Menu/OptionButton` item auto-highlightMichael Alexsander2022-08-281-5/+15
| |