summaryrefslogtreecommitdiffstats
path: root/scene/gui/menu_bar.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Menu Bar] Update min. size when items are added/removed/changed.bruvzg2023-10-251-0/+5
|
* [macOS] Add `about_to_open` and `popup_hide` callback for the global menus, ↵bruvzg2023-10-041-102/+126
| | | | move part of logic to the PopupMenu to allow live menu modification.
* Register theme properties with ThemeDBYuri Sizov2023-09-111-29/+26
|
* Add option to allow echo events in menu shortcutsTomasz Chabora2023-08-161-1/+1
|
* Code simplificationsMarkus Sauermann2023-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | CPPcheck found most of them. no need to assign the variable twice: - AnimationTrackEditTypeAudio - SSEffects variable is assigned in all if-else clauses: - EditorHelp - AndroidInputHandler - MenuBar - ShaderCompiler same if clause: - ItemList clearing an empty bitfield has no effect: - Viewport
* Remove unused variable `PopupMenu::parent_rect`Markus Sauermann2023-06-151-1/+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
* Fix MenuBar item order in RTL layout.bruvzg2023-05-291-3/+13
|
* Fix auto-translations in editorkobewi2023-03-221-1/+3
|
* Fix exported type for Menubar start_indexjustchen13692023-03-101-1/+1
|
* MenuBar add auto-translation of Menu namesАлексей Смирнов2023-01-201-4/+4
|
* Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky2023-01-091-21/+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>
* 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 hovering-color of MenuBar entries when reentering MenuBarMarkus Sauermann2022-12-291-0/+1
| | | | | | 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.
* Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde2022-10-131-2/+2
|\ | | | | | | 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-2/+2
| | | | | | | | check the action exactly.
* | Move Shortcut Context to Control and ensure that `shortcut_input` adheres to ↵Eric M2022-10-131-36/+0
| | | | | | | | contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-10/+10
|/ | | | change warnings=all to use /W4.
* Fix #66062: editing shortcut_context in inspectorRedMser2022-09-191-1/+1
|
* Rename `PopupMenu`'s `set/get_current_index()` to `set/get_focused_item()`Michael Alexsander2022-09-061-1/+1
|
* Merge pull request #65156 from YuriSizov/control-customizable-cache-p1Rémi Verschelde2022-09-011-32/+56
|\
| * Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-32/+56
| |
* | Merge pull request #65132 from bruvzg/global_menu_shortcuts_contextRémi Verschelde2022-09-011-6/+9
|\ \ | |/ |/|
| * [macOS] Handle accelerator and click events of the global menu items separately.bruvzg2022-09-011-6/+9
| |
* | Fix switching `MenuBar`'s menus with the keys while mouse hoveringMichael Alexsander2022-08-301-0/+5
|/
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-6/+6
| | | | | | | | | | 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`.
* Add item auto-highlighting to `MenuBar`Michael Alexsander2022-08-281-3/+12
|
* [macOS] Extend editor contents to the window titlebar for better space usage.bruvzg2022-08-261-5/+2
|
* Fix MenuBar minimum size adding unnecessary extra spacing after the last item.bruvzg2022-08-191-2/+4
|
* Fix MenuBar not processing shortcuts.bruvzg2022-08-191-0/+1
|
* Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native ↵bruvzg2022-08-181-0/+865
menu for editor.