summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Ensure that the cached layout mode is in syncYuri Sizov2023-01-101-0/+10
| | | |
* | | | Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-21/+45
|/ / / | | | | | | | | | | | | | | | | | | | | | * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
* | | Fix inconsistent state of Controls when editing and running scenesYuri Sizov2023-01-091-25/+36
| | |
* | | Use BitField<> hint for ArrayFormatJuan Linietsky2023-01-081-12/+12
| | | | | | | | | | | | This was missing in the conversion of bitflags to BitField<>.
* | | Merge pull request #36301 from KoBeWi/daddy_nodeRémi Verschelde2023-01-071-0/+8
|\ \ \ | | | | | | | | | | | | Add reparent methods to Node
| * | | Add methods for node reparentingTomasz Chabora2022-08-161-0/+8
| | | |
* | | | 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".
* | | | Restore 'rotation_degrees' properties.Juan Linietsky2022-12-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By popular demand, restoring the helper properties to rotate objects in degrees. Affected are local and global rotations for: * Node2D * Node3D * Control
* | | | Merge pull request #61855 from Calinou/popup-centered-minsize-fix-freezeRémi Verschelde2022-12-121-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | Fix infinite loop when calling `Control.popup_centered_minsize()`
| * | | | Fix infinite loop when calling `Control.popup_centered_minsize()`Hugo Locurcio2022-06-091-0/+6
| | | | | | | | | | | | | | | | | | | | Co-authored-by: sriramun <sriramun2@gmail.com>
* | | | | Copy local theme overrides from Control to WindowYuri Sizov2022-12-071-79/+79
| | | | |
* | | | | Display transform properties of contained controlskobewi2022-11-301-4/+4
| | | | |
* | | | | Move z_index, z_as_relative and y_sort_enabled from Node2D to CanvasItemHendrik Brucker2022-11-291-0/+4
| | | | |
* | | | | Merge pull request #59801 from Sauermann/fix-node2d-viewport-root-orderRémi Verschelde2022-11-281-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix Viewport root order after Node2D raise
| * | | | | Fix Viewport root order after Node2D raiseMarkus Sauermann2022-11-021-1/+1
| | | | | |
* | | | | | Add `Control::localize_numeral_system` property to toggle automatic numeral ↵bruvzg2022-11-171-1/+19
|/ / / / / | | | | | | | | | | | | | | | system conversion.
* | | | | Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * | | | | Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
| | |_|_|/ | |/| | |
* | | | | Merge pull request #67588 from KoBeWi/if(!GDVIRTUAL_CALL)don'tRémi Verschelde2022-10-311-22/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Simplify GDVIRTUAL_CALL calls
| * | | | | Simplify GDVIRTUAL_CALL callskobewi2022-10-191-22/+10
| |/ / / /
* | | | | Merge pull request #67566 from Sauermann/fix-code-simplificationsClay John2022-10-231-7/+0
|\ \ \ \ \ | |_|_|_|/ |/| | | | Code simplifications
| * | | | Code simplificationsMarkus Sauermann2022-10-181-7/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Viewport::get_visible_rect().position is always zero. So Control::get_window_rect is identical to Control::get_global_rect. Remove Control::get_window_rect since it is not used in the source code. 2. sqrt(a * a) = abs(a) for doubles 3. Simplify affine_inverse combination 4. Simplify calculation in shaders
* | | | Merge pull request #66279 from aaronfranke/control-min-sizeMax Hilbrunner2022-10-191-3/+3
|\ \ \ \ | |/ / / |/| | | Revert `custom_minimum_size` type back to `Vector2` instead of `Vector2i`
| * | | Revert custom_minimum_size type back to Vector2 instead of Vector2iAaron Franke2022-09-221-3/+3
| | | |
* | | | Move Shortcut Context to Control and ensure that `shortcut_input` adheres to ↵Eric M2022-10-131-0/+34
| | | | | | | | | | | | | | | | contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
* | | | Merge pull request #66953 from Sauermann/fix-top-level-connect-errorRémi Verschelde2022-10-131-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Fix Control node not disconnecting from signal
| * | | | Fix Control not disconnecting signalMarkus Sauermann2022-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | If a Control has not parent CanvasItem and is set as top_level, then it does not disconnect from the "size_changed" signal when it leaves the Canvas. This patch corrects this.
* | | | | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-1/+1
|/ / / / | | | | | | | | | | | | change warnings=all to use /W4.
* | | | Merge pull request #58995 from Sauermann/fix-mouse-cursor-change-2Rémi Verschelde2022-09-281-0/+12
|\ \ \ \ | |/ / / |/| | | | | | | Update mouse cursor shape after changes
| * | | Update mouse cursor shape after changesMarkus Sauermann2022-09-181-0/+12
| | | | | | | | | | | | | | | | This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
* | | | Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-2/+2
|/ / /
* | | Make `Vector2i` values paired with `EDSCALE` be just `Vector2`Michael Alexsander2022-09-081-3/+3
| | |
* | | Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky2022-09-061-1/+1
| | | | | | | | | | | | For consistency. Every other exposed `one_shot` is spaced out like this.
* | | Merge pull request #65250 from YuriSizov/theme-owner-risesRémi Verschelde2022-09-021-365/+62
|\ \ \
| * | | Un-defer the initial theme changed notificationYuri Sizov2022-09-021-18/+9
| | | | | | | | | | | | | | | | Co-authored-by: Rindbee <idleman@yeah.net>
| * | | Add ThemeOwner type for managing theme propagation and lookupYuri Sizov2022-09-021-351/+57
| | | |
* | | | Rename `or_lesser` range property hint to `or_less`Hugo Locurcio2022-09-021-5/+5
|/ / / | | | | | | | | | | | | | | | | | | "less" should be used for quantity, rather than "lesser". Existing scripts that use `or_lesser` in `_get_property_list()` will need to be updated to account for this change.
* | | Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-0/+10
| | |
* | | Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #64119 from YuriSizov/theme-init-databaseRémi Verschelde2022-08-291-40/+41
|\ \ \
| * | | Add ThemeDB, expose previously static Theme methodsYuri Sizov2022-08-261-40/+41
| | | |
* | | | Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-7/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | | Refactor and remove excessive calls of `NOTIFICATION_THEME_CHANGED`Aaron Record2022-08-251-121/+98
| | |
* | | Disconnect Control from theme resources to avoid issues on destructionYuri Sizov2022-08-241-0/+21
| | |
* | | Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+43
| | | | | | | | | | | | Avoid executing the following value-changed logics if the value does not really change.
* | | Replace Array return types with TypedArraykobewi2022-08-221-3/+3
| | |
* | | Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde2022-08-221-34/+34
|\ \ \
| * | | Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-34/+34
| | |/ | |/|
* / | Replace meta properties with regular properties in `Control`Yuri Sizov2022-08-191-30/+51
|/ /
* | Add dumb theme item cache to ControlYuri Sizov2022-08-121-6/+57
| |