summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
AgeCommit message (Collapse)Author
2021-05-04Rename `doubleclick` to `double_click`Aaron Franke
2021-04-29Replace remaining uses of `NULL` with `nullptr`Rémi Verschelde
Follow-up to #38736 (these uses were likely added after this PR was merged).
2021-04-06Add Various ColorPicker shapesKongfa Waroros
2021-04-05Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde
2021-03-31Use double when setting the default step sizemegalobyte
Casting it as a float was causing issues with the progress bar
2021-04-01Merge pull request #43155 from nathanfranke/collapse-resource-previewRémi Verschelde
Collapse Resource Preview Properly
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-13Fix always capitalized properties in sub-inspectorjmb462
Fix #46961: This commit correctly initialize capitalization in sub-inspectors (like shaders's sub-inspector in the inspector panel) with the editor settings.
2021-03-10Implement Navigation layersGilles Roudière
2021-02-12Improved Inspector Sub-Resource Editingreduz
-Better margins -Colors to delimit subresources better.
2021-02-10Removed _change_notifyreduz
-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.
2021-02-04Make Rect2 properties show in 2x2 layoutkobewi
2021-01-09Emit changed signal from Color Picker when changedkobewi
2021-01-07Merge pull request #44980 from RandomShaper/fix_res_lifetimeRémi Verschelde
Fix cases of resources destroyed too early
2021-01-07Revert "Fixed EditorPropertyText change signal emission."Rémi Verschelde
This reverts commit ed1f208ec4c1111a450fe1401c3378b973c7a6e5. This caused a regression: #44854. Another PR will re-apply these changes while handling the regression: #44982. Fixes #44854.
2021-01-06Fix cases of resources destroyed too earlyPedro J. Estébanez
2021-01-06Merge pull request #44971 from nekomatata/fix-string-property-updateRémi Verschelde
Update String property field only when text has changed
2021-01-06Update String property field only when text has changedPouleyKetchoupp
Avoids resetting the cursor position when the inspector updates while editing a string property. Fixes #42488
2021-01-03Don't emit changed signal on Color Picker closekobewi
2021-01-01Merge pull request #44809 from Calinou/physics-render-layers-zero-indexRémi Verschelde
Use zero-indexing for physics and render layer names
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-30Use zero-indexing for physics and render layer namesHugo Locurcio
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.
2020-12-29Fix instantiation of resource as property valuePedro J. Estébanez
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-12Fixed EditorPropertyText change signal emission.Andrea Catania
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.
2020-11-09Variant: Rename Type::_RID to Type::RIDRémi Verschelde
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`.
2020-10-28Collapse Resource Preview ProperlyNathan Franke
2020-10-26fix toggle mask bit 0David Sichma
2020-10-21Shader globals bugfixesDavid Sichma
- shader globals editor displays properties correctly - fixed some errors how globals were transferred
2020-10-12Ensure grid index is valid before trying to change value.Marcel Admiraal
2020-08-25Accept DynamicFontData for FontsTomasz Chabora
2020-08-25Added ability to unfold editor sections when dragging and dropping.Eric M
Also added editor setting to control the delay used before unfold occurs.
2020-08-15Merge pull request #41103 from Calinou/editor-improve-easing-inspectorRémi Verschelde
Improve the inspector easing editor
2020-08-07Improve the inspector easing editorHugo Locurcio
- 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.
2020-08-03Modify the scene only when color changedAntoine Félix
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
2020-07-27Make all String float conversion methods be 64-bitAaron Franke
2020-07-20Convert some resource types in the inspectorTomasz Chabora
2020-07-14Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen
resource depency dialogs).
2020-07-10Add override keywords.Marcel Admiraal
2020-07-02Make Resource properties accept SE plugin scriptsRiley Lyman
2020-07-01Merge pull request #38713 from aaronfranke/string-64bitRémi Verschelde
Make all String integer conversion methods be 64-bit
2020-06-19Remove ToolButton in favor of ButtonHugo Locurcio
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.
2020-06-15Made low level changes to the Skeleton3D class and Skeleton3D inspector. ↵TwistedTwigleg
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.
2020-06-03Add visual feedback when hovering layer checkboxes in the InspectorHugo Locurcio
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).
2020-06-03Remove 32-bit String to_int methodAaron Franke
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
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.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.