summaryrefslogtreecommitdiff
path: root/scene/gui/popup_menu.cpp
AgeCommit message (Collapse)Author
2022-01-15OptionButton::pressed(): give focus to selectedRicardo Buring
2022-01-08Merge pull request #54647 from rafallus/fix/popupmenu_idsRémi Verschelde
Fix `PopupMenu` items id range in inspector
2022-01-07Fix `PopupMenu` items id range in inspectorrafallus
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-03Merge pull request #55487 from YeldhamDev/scroll_bikesheddingRémi Verschelde
2021-12-10Merge pull request #43181 from nathanfranke/string-emptyRémi Verschelde
Replace String comparisons with "", String() to is_empty()
2021-12-09Increased time delay on selection when opening a popupFelipeMatoba
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-08Improve PopupMenu doc about id and indexkobewi
2021-12-06Rename "items_count" property to "item_count"Aaron Franke
2021-12-06Fix bad popups offset in editor with single window offjmb462
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-11-30Rename all methods that return `ScrollBar` nodes to `get_*_scroll_bar()`Michael Alexsander
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-04Add missing argument names for bindings in GDExtensionRémi Verschelde
2021-11-03Implement inspector property array for `PopupMenu` and `MenuButton`rafallus
2021-08-29Merge pull request #30391 from KoBeWi/hiding_childrenJuan Linietsky
Add support for internal nodes
2021-08-28Merge pull request #51906 from requizm/fix/49077Michael Alexsander
Fix tooltips don't appear for PopupMenus
2021-08-28Add support for internal nodeskobewi
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-20Fix tooltip message working incorrectly in PopupMenurequizm
fix
2021-08-19fixed popup_menu buttons getting triggered by lmb press instead of release.ThreeRhinosInAnElephantCostume
2021-08-10Use Key enum instead of plain integersAaron Franke
2021-08-05Shortcut: Rename `shortcut` property to `event`Rémi Verschelde
Having a property which has the same name as its class leads to confusing situations (e.g. `BaseButton` has a `shortcut` property of type `Shortcut` which has a `shortcut` property of type `InputEvent`). Also renames `is_event` to `matches_event`, and `is_valid` to `has_valid_event` to better reflect what the methods check.
2021-07-29Add `auto_translate` toggle for automatic translationMichael Alexsander
2021-07-25Use const references where possible for List range iteratorsRémi Verschelde
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-23Fix popup submenu in single-window modejfons
The internal processing code only works for OS windows, since it takes the mouse position relative to the window and not the viewport. Now we make sure it's not called in single-window mode.
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-05-07Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A
InputEventWithModifiers properties/methods
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-20Fix wrong width with PopupMenus on first opening in the editorMichael Alexsander
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-02-16Fix various small issues with PopupMenuMichael Alexsander
2021-02-15Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.Eric M
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-04Merge pull request #44906 from ↵Rémi Verschelde
EricEzaM/PR/popup-menu-fix-not-matching-button-size Fixed PopupMenu not matching parent MenuButton/OptionButton width
2021-01-04Fixed PopupMenu not matching parent MenuButton/OptionButton widthEric M
2021-01-04Fixed hover highlight style rect of items being cut off.Eric M
This was caused by an incorrect calculation of the height of each item when determining the minimum size, plus a few things which were leftover after the PopupMenu rework.
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-27Added optional id parameter to `PopupMenu::add_separator`Yuri Roubinsky
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-10Allow to circle back in 'PopupMenu' even if the first/last item is ↵Michael Alexsander
non-selectable
2020-12-10Merge pull request #44233 from YeldhamDev/popupmenu_circle_backRémi Verschelde
Re-add circle back scrolling to 'PopupMenu'
2020-12-09Re-add circle back scrolling to 'PopupMenu'Michael Alexsander
2020-12-03Add "font_color_separator" theme property to 'PopupMenu'Michael Alexsander
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.