summaryrefslogtreecommitdiffstats
path: root/scene/gui/dialogs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::panel`A Thousand Ships2024-05-301-1/+1
|
* Fix duplicate AcceptDialog cancel/confirm events.bruvzg2024-05-281-1/+17
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-7/+7
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-6/+6
|
* Fix buttons offset to the right when dialog is at minsizeHaoyu Qiu2024-04-181-6/+6
|
* Merge pull request #89693 from Calinou/dialogs-add-button-minimum-sizeRémi Verschelde2024-04-181-0/+11
|\ | | | | | | Add minimum width/height to dialog buttons
| * Add minimum width/height to dialog buttonsHugo Locurcio2024-04-171-0/+11
| | | | | | | | | | | | | | | | | | This makes buttons with short texts such as "OK" or "Close" easier to click, especially on a touchscreen. This is exposed to projects via `buttons_min_width` and `buttons_min_height` theme items in AcceptDialog (and therefore ConfirmationDialog and FileDialog), with the default values being 0 to preserve compatibility with existing projects.
* | Fix non-embedded Windows resizing to match Viewport content scale factorKoyper2024-04-171-1/+1
|/
* Use `Vector*` component-wise `min/max/clamp` functions where applicableA Thousand Ships2024-03-201-2/+1
|
* Fix some translations not properly falling backMichael Alexsander2024-03-141-4/+4
|
* Fix some AcceptDialog argument typeskobewi2024-03-121-19/+16
|
* Update deferred calls to use Callableskobewi2024-01-091-1/+1
|
* Fix internal events not being delivered to some Window typesMarkus Sauermann2023-11-141-2/+1
| | | | | | | | | | `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.
* [DisplayServer] Add method to estimate window title bar size.bruvzg2023-10-031-0/+1
|
* Register theme properties with ThemeDBYuri Sizov2023-09-111-7/+4
|
* Support controller input on popup/dialogsRicardo Subtil2023-08-131-2/+1
|
* Merge pull request #79293 from ItsNL/add-accept-dialog-close-on-unfocusedRémi Verschelde2023-08-021-1/+1
|\ | | | | | | Check `FLAG_POPUP` to close an AcceptDialog when parent is focused
| * Check FLAG_POPUP to close an AcceptDialog when parent is focusedNL2023-07-191-1/+1
| |
* | Hide/show AcceptDialog's button spacer on button visibility changedkleonc2023-07-111-5/+21
|/
* Revert "Fix focusloss of non-exclusive `AcceptDialog` with `close_on_escape`"Markus Sauermann2023-07-061-3/+32
| | | | This reverts commit 7f547fcf09e7af0e2443356fe7a003c3c8335cd6.
* Fix focusloss of non-exclusive `AcceptDialog` with `close_on_escape`Markus Sauermann2023-06-171-32/+3
| | | | | | | | Fix, that a non-exclusive AcceptDialog with `close_on_escape == true` gets closed, when the parent window of the parent window receives focus. There is no need to rely on the focus of the parent visible window. Instead check if the AcceptDialog loses focus.
* Fix that button presses don't set event as handled in AcceptDialogMarkus Sauermann2023-06-021-0/+2
|
* Use defined key mapping for closing popups and dialogsArman Elgudzhyan2023-05-201-1/+1
| | | | As opposed to hardcoding the escape key. Also removed such hardcoding in a few other places as well as a hardcoded enter key in one of the affected input fields.
* Use min_size/max_size to limit the window size and the position while popup ↵Rindbee2023-02-071-4/+0
| | | | center
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-2/+2
|
* Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky2023-01-091-1/+1
| | | | | | | | | | | | | | | | * 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 inspector not showing name for LabelSettings.fontHaoyu Qiu2022-11-251-1/+1
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-5/+5
| | | | change warnings=all to use /W4.
* Merge pull request #65375 from ItsNL/fix-accep-dialog-its_inside_tree-falseRémi Verschelde2022-09-071-1/+8
|\ | | | | | | Condition "!is_inside_tree()" is true" when AcceptDialog was visible from the editor.
| * Fix "grab_focus: Condition "!is_inside_tree()" is true" when AcceptDialog ↵=2022-09-071-1/+8
| | | | | | | | was visible from the editor.
* | Make AcceptDialog and derivatives utilize StyleBox fullyYuri Sizov2022-09-071-76/+110
|/
* Add dumb and manual theme caching systems to WindowYuri Sizov2022-09-011-13/+18
|
* Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+3
| | | | Avoid executing the following value-changed logics if the value does not really change.
* Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov2022-08-081-1/+1
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-2/+26
|
* Replace some TTRCs with TTRskobewi2022-06-221-2/+2
|
* Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-2/+2
| | | | TextServer.
* Add Blender install autodetection and configuration.reduz2022-04-011-2/+13
| | | | | | | | | | | | | This PR is a continuation to #54886 * Changed Blender path editor setting from binary to installation. * Add a class to query whether the format is supported. * This class allows to create proper editors to configure support. **NOTE**: This PR only provides autodetection on Linux. Code needs to be added for Windows and MacOS to autodetect the Blender installation. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com> Co-authored-by: Pedro J. Estébanez <pedrojrulez@gmail.com>
* Refactor Object metadatareduz2022-03-241-0/+3
| | | | | | | | | * API kept the same (Although functions could be renamed to set_metadata/get_metadata in a later PR), so not much should change. * Metadata now exposed as individual properties. * Properties are editable in inspector (unless metadata name begins with _) under the metadata/ namespace. * Added the ability to Add/Remove metadata properties to the inspector. This is a functionality that was requested very often, that makes metadata work a bit more similar to custom properties in Blender.
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-0/+4
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-6/+1
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-1/+1
| | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Use "enum class" for input enumsAaron Franke2021-11-121-1/+1
|
* Remove EDSCALE dependency from /scene/guiYuri Sizov2021-10-041-4/+2
|