summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #73381 from KoBeWi/works_better_than_expected_huhYuri Sizov2023-02-171-0/+7
|\ | | | | Fold resources when non-main inspector exits tree
| * Fold resources when non-main inspector exits treekobewi2023-02-151-0/+7
| |
* | EditorProperty: Fix missing increment buttons for integersRémi Verschelde2023-02-151-6/+9
|/ | | | Fixes #73192.
* Fix @export_multiline for PackedStringArraykobewi2023-02-041-1/+1
|
* Use `PropertyUsageFlags` enum in parse_propertyRaul Santos2023-01-311-2/+2
|
* Tweak overrun behavior of EditorPropertyObjectIDkobewi2023-01-291-0/+3
|
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-2/+2
|
* Rework EditorPlugin editing logickobewi2023-01-221-48/+15
|
* Merge pull request #71418 from TokageItLab/restart-anim-treeRémi Verschelde2023-01-191-2/+7
|\ | | | | | | Allow AnimationStateMachine / AnimationNode to restart when transitioning to the same state
| * Allow AnimationNodes to restart when transitioning to the same stateSilc Renew2023-01-191-2/+7
| |
* | Merge pull request #71379 from KoBeWi/destruction_of_compatibility_functionRémi Verschelde2023-01-181-6/+2
|\ \ | | | | | | Remove set_drag_forwarding_compat()
| * | Remove set_drag_forwarding_compat()kobewi2023-01-141-6/+2
| | |
* | | Merge pull request #71229 from reduz/fix-recursive-resource-inclusion-checkRémi Verschelde2023-01-151-0/+2
|\ \ \ | |/ / |/| | | | | Fix recursive resource inclusion check
| * | Fix recursive resource inclusion checkJuan Linietsky2023-01-111-0/+2
| |/ | | | | | | | | | | I forgot a line of code. Fixes #71194.
* | Merge pull request #70540 from vaartis/multiline-arrays-dictionariesRémi Verschelde2023-01-131-0/+1
|\ \ | |/ |/| | | Implement export_multiline support for Array[String] and Dictionary
| * Implement export_multiline support for Array[String] and DictionaryEkaterina Vaartis2022-12-251-0/+1
| | | | | | | | | | | | | | | | For arrays, specifically check if it's a string array and pass the type on to the editor. For dictionaries, save the hint on the type and use it later to draw the multiline editor, except for when adding a string key, because that doesn't make much sense. All string values however will be drawn as multiline.
* | Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-2/+2
| | | | | | | | | | | | | | | | * 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
* | Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky2023-01-091-173/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | Merge pull request #71045 from reduz/use-bitfield-in-core-typesRémi Verschelde2023-01-091-1/+1
|\ \ | | | | | | | | | Use BitField<> in core type masks
| * | Use BitField<> in core type masksJuan Linietsky2023-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* | | Prevent recursion in inspector resource assignment.Juan Linietsky2023-01-061-1/+81
|/ / | | | | | | Fixes #43177
* | Simplify some editor plugin logic and remove dead codeYuri Sizov2023-01-051-2/+1
| |
* | 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".
* | Revert "Merge pull request #70696 from Rindbee/propagate-keying-state"Silc Renew2023-01-041-2/+0
| | | | | | | | | | This reverts commit c774b4ce1777d19789bec1cbef100f26c6927777, reversing changes made to ccc609d824802d1d1a20f34bda69ecac75f5a8a1.
* | Propagate the keying state in the inspectorRindbee2022-12-311-0/+2
|/ | | | | | Toggling the keying state does not significantly change the structure of the inspector. So it's ok to propagate the keying state and then use `queue_redraw()` to update the keying icon.
* Add inspector plugin for key time edit & Change find key argumentSilc Renew2022-12-221-14/+13
|
* Use forward-declarations in big editor classestrollodel2022-11-291-2/+8
|
* Fixes inability to assign script after clearingocean (they/them)2022-11-211-1/+5
|
* Rename TextureButton set_*_texture methods to set_texture_*Aaron Franke2022-11-191-11/+11
|
* Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20Rémi Verschelde2022-11-041-3/+0
|
* Allow getting Quaternion rotation in different Euler ordersAaron Franke2022-11-021-1/+1
|
* Merge pull request #65062 from KoBeWi/RedoUndoRémi Verschelde2022-11-021-1/+0
|\ | | | | | | Unify usage of undo_redo in editor
| * Unify usage of undo_redo in editorkobewi2022-11-021-1/+0
| |
* | Replace Quaternion Euler constructor with `from_euler` methodAaron Franke2022-11-011-1/+1
|/
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-2/+2
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-2/+2
| |
* | Merge pull request #67055 from GuilhermeGSousa/custom-node-exportRémi Verschelde2022-10-311-1/+2
|\ \ | |/ |/| | | Added custom node export
| * Added custom node exportGuilherme Sousa2022-10-141-1/+2
| |
* | Preserve caret when updating EditorPropertyTextkobewi2022-10-141-0/+2
|/
* Add empty state to enum propertieskobewi2022-10-131-1/+6
|
* Only show named layers in layer menuHaoyu Qiu2022-10-081-13/+34
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-12/+12
| | | | change warnings=all to use /W4.
* Merge pull request #66839 from aaronfranke/editor-prop-hide-sliderRémi Verschelde2022-10-051-35/+33
|\ | | | | | | Fix `hide_slider` vs `no_slider` inconsistency in editor property code
| * Fix hide_slider vs no_slider inconsistency in editor property codeAaron Franke2022-10-031-35/+33
| |
* | Rename Projection `matrix` to `columns`Aaron Franke2022-10-041-32/+32
|/
* Merge pull request #62903 from ↵Rémi Verschelde2022-09-151-4/+4
|\ | | | | | | | | | | Rindbee/fix-property-link-not-work-in-MultiNodeEdit Set the changed field to empty (meaning all) if the link button is pressed
| * Fix property link not working in MultiNodeEditRindbee2022-07-111-4/+4
| | | | | | | | | | This is due to the `p_field` in the `EditorProperty::emit_changed`. `p_field` only works for `MultiNodeEdit`, not for other objects.
* | Rename `or_lesser` range property hint to `or_less`Hugo Locurcio2022-09-021-9/+9
| | | | | | | | | | | | | | "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.
* | Merge pull request #63411 from Calinou/improve-null-object-dictionary-printRémi Verschelde2022-08-311-2/+2
|\ \ | | | | | | Improve null and object printing to avoid confusion with arrays
| * | Improve null and object printing to avoid confusion with arraysHugo Locurcio2022-08-311-2/+2
| | | | | | | | | | | | | | | | | | | | | - Use different syntax for object printing to avoid confusion with arrays. - Print null as `<null>` to avoid confusion with a string `"null"`. - Display `<empty>` in editor resource pickers to avoid confusion with array-based properties.