summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add Various ColorPicker shapesKongfa Waroros2021-04-061-0/+3
|
* Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde2021-04-051-2/+4
|
* Use double when setting the default step sizemegalobyte2021-03-311-1/+1
| | | | Casting it as a float was causing issues with the progress bar
* Merge pull request #43155 from nathanfranke/collapse-resource-previewRémi Verschelde2021-04-011-0/+1
|\ | | | | Collapse Resource Preview Properly
| * Collapse Resource Preview ProperlyNathan Franke2020-10-281-0/+1
| |
* | Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-6/+6
| |
* | Fix always capitalized properties in sub-inspectorjmb4622021-03-131-1/+1
| | | | | | | | | | Fix #46961: This commit correctly initialize capitalization in sub-inspectors (like shaders's sub-inspector in the inspector panel) with the editor settings.
* | Implement Navigation layersGilles Roudière2021-03-101-1/+18
| |
* | Improved Inspector Sub-Resource Editingreduz2021-02-121-0/+42
| | | | | | | | | | -Better margins -Colors to delimit subresources better.
* | Removed _change_notifyreduz2021-02-101-1/+0
| | | | | | | | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* | Make Rect2 properties show in 2x2 layoutkobewi2021-02-041-6/+26
| |
* | Emit changed signal from Color Picker when changedkobewi2021-01-091-0/+12
| |
* | Merge pull request #44980 from RandomShaper/fix_res_lifetimeRémi Verschelde2021-01-071-9/+6
|\ \ | | | | | | Fix cases of resources destroyed too early
| * | Fix cases of resources destroyed too earlyPedro J. Estébanez2021-01-061-9/+6
| | |
* | | Revert "Fixed EditorPropertyText change signal emission."Rémi Verschelde2021-01-071-2/+2
|/ / | | | | | | | | | | | | | | | | | | This reverts commit ed1f208ec4c1111a450fe1401c3378b973c7a6e5. This caused a regression: #44854. Another PR will re-apply these changes while handling the regression: #44982. Fixes #44854.
* | Merge pull request #44971 from nekomatata/fix-string-property-updateRémi Verschelde2021-01-061-4/+8
|\ \ | | | | | | Update String property field only when text has changed
| * | Update String property field only when text has changedPouleyKetchoupp2021-01-061-4/+8
| | | | | | | | | | | | | | | | | | | | | Avoids resetting the cursor position when the inspector updates while editing a string property. Fixes #42488
* | | Don't emit changed signal on Color Picker closekobewi2021-01-031-5/+0
| | |
* | | Merge pull request #44809 from Calinou/physics-render-layers-zero-indexRémi Verschelde2021-01-011-3/+3
|\ \ \ | | | | | | | | Use zero-indexing for physics and render layer names
| * | | Use zero-indexing for physics and render layer namesHugo Locurcio2020-12-301-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | The first layer is now Layer 0 instead of Layer 1, and the last layer is now Layer 19 instead of Layer 20. This helps reference physics and render layers from scripts since layers start from 0 there.
* / / Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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 🎆
* | Fix instantiation of resource as property valuePedro J. Estébanez2020-12-291-5/+7
| |
* | Rename empty() to is_empty()Marcel Admiraal2020-12-281-3/+3
| |
* | Rename Control margin to offsetMarcel Admiraal2020-12-231-5/+5
| |
* | Fixed EditorPropertyText change signal emission.Andrea Catania2020-12-121-2/+2
| |
* | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-10/+14
| | | | | | | | | | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* | Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-1/+1
|/ | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* fix toggle mask bit 0David Sichma2020-10-261-1/+1
|
* Shader globals bugfixesDavid Sichma2020-10-211-7/+7
| | | | | - shader globals editor displays properties correctly - fixed some errors how globals were transferred
* Ensure grid index is valid before trying to change value.Marcel Admiraal2020-10-121-1/+1
|
* Accept DynamicFontData for FontsTomasz Chabora2020-08-251-0/+10
|
* Added ability to unfold editor sections when dragging and dropping.Eric M2020-08-251-5/+3
| | | | Also added editor setting to control the delay used before unfold occurs.
* Merge pull request #41103 from Calinou/editor-improve-easing-inspectorRémi Verschelde2020-08-151-5/+28
|\ | | | | Improve the inspector easing editor
| * Improve the inspector easing editorHugo Locurcio2020-08-071-5/+28
| | | | | | | | | | | | | | | | | | | | | | - Make it possible to drag a negative easing or an easing of 0 back to a positive value. - Clamp the value between -1000000 and 1000000 to avoid issues related to infinity. - Display more decimals for numbers closer to 0, less for large numbers. - Display trailing zeroes in decimals to avoid flickering when dragging. This closes #18712 and closes #22079.
* | Modify the scene only when color changedAntoine Félix2020-08-031-0/+5
|/ | | | | | | | | Editor now changes a color in the inspector only when it is different from the current one. Solves fake unsaved changes in editor after using the ColorPicker. Resolves: #40879
* Make all String float conversion methods be 64-bitAaron Franke2020-07-271-36/+36
|
* Convert some resource types in the inspectorTomasz Chabora2020-07-201-18/+52
|
* Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen2020-07-141-5/+5
| | | | resource depency dialogs).
* Add override keywords.Marcel Admiraal2020-07-101-2/+2
|
* Make Resource properties accept SE plugin scriptsRiley Lyman2020-07-021-12/+26
|
* Merge pull request #38713 from aaronfranke/string-64bitRémi Verschelde2020-07-011-5/+5
|\ | | | | Make all String integer conversion methods be 64-bit
| * Remove 32-bit String to_int methodAaron Franke2020-06-031-5/+5
| |
* | Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* | Made low level changes to the Skeleton3D class and Skeleton3D inspector. ↵TwistedTwigleg2020-06-151-20/+33
| | | | | | | | | | | | | | | | | | | | Changes listed below: * Added helper functions to Skeleton3D for converting transforms from bone space to global space, and vice versa. * Updated the Skeleton3D class reference. * Changed the icon used for bones in the Skeleton3D inspector to use BoneAttachement3D's icon. * Changed the Skeleton3D inspector to use EditorPropertyTransform and EditorPropertyVector3 when possible. * Placed the Transform/Matrix for each bone in a sub-section, so it is visually similar to the Node3D inspector.
* | Add visual feedback when hovering layer checkboxes in the InspectorHugo Locurcio2020-06-031-39/+64
|/ | | | | | This also changes how checkboxes are selected, which makes it possible to click in the small area between two checkboxes and still toggle a value successfully (which is arguably less frustrating).
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-44/+86
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+24
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-141/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Revert "Renamed plane's d to distance"Rémi Verschelde2020-05-101-2/+2
| | | | | | | This reverts commit ec7b481170dcd6a7b4cf0e6c1221e204ff7945f3. This was wrong, `d` is not a distance but the `d` constant in the parametric equation `ax + by + cz = d` describing the plane.
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-7/+21
| | | | Part of #33027.