summaryrefslogtreecommitdiff
path: root/scene/gui/menu_bar.cpp
AgeCommit message (Collapse)Author
2023-03-14Fix exported type for Menubar start_indexjustchen1369
(cherry picked from commit dbfecdb3b04956db58ee199fdbd9f7c03794e269)
2023-01-20MenuBar add auto-translation of Menu namesАлексей Смирнов
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* 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>
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-29Fix hovering-color of MenuBar entries when reentering MenuBarMarkus Sauermann
When reentering MenuBar with the mouse cursor, the hovering-color was not set, because the previously hovered entry was still referenced in selected_menu. This PR resets selected_menu on mouse-exit.
2022-10-13Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
2022-10-13Move Shortcut Context to Control and ensure that `shortcut_input` adheres to ↵Eric M
contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-09-24Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M
check the action exactly.
2022-09-19Fix #66062: editing shortcut_context in inspectorRedMser
2022-09-06Rename `PopupMenu`'s `set/get_current_index()` to `set/get_focused_item()`Michael Alexsander
2022-09-01Merge pull request #65156 from YuriSizov/control-customizable-cache-p1Rémi Verschelde
2022-09-01Merge pull request #65132 from bruvzg/global_menu_shortcuts_contextRémi Verschelde
2022-09-01Add a lifecycle method for manual theme item caching to ControlYuri Sizov
2022-09-01[macOS] Handle accelerator and click events of the global menu items separately.bruvzg
2022-08-30Fix switching `MenuBar`'s menus with the keys while mouse hoveringMichael Alexsander
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
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`.
2022-08-28Add item auto-highlighting to `MenuBar`Michael Alexsander
2022-08-26[macOS] Extend editor contents to the window titlebar for better space usage.bruvzg
2022-08-19Fix MenuBar minimum size adding unnecessary extra spacing after the last item.bruvzg
2022-08-19Fix MenuBar not processing shortcuts.bruvzg
2022-08-18Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native ↵bruvzg
menu for editor.