summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
AgeCommit message (Collapse)Author
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-02-28Signals: Manually port most of remaining connect_compat usesRémi Verschelde
It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-25Update docs and bindings for new integer vector typesRémi Verschelde
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-21Added StringName as a variant type.Juan Linietsky
Also changed all relevant properties defined manually to StringName.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-12ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky
32 bits.
2020-02-11Bugfixes and ability to better specify filter and repeat modes everywhere.Juan Linietsky
Removes antialiased flag for draw_* methods.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-01-15Use int64_t for EditorPropertyInteger and warn when out of double rangeAaron Franke
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-11-07Merge pull request #32997 from Calinou/editor-color-picker-add-tooltipRémi Verschelde
Add a tooltip to Color properties in the editor inspector
2019-10-22Add a tooltip to Color properties in the editor inspectorHugo Locurcio
This makes it possible to view a color's raw R/G/B/A values without clicking the ColorPickerButton.
2019-10-23Add clear menu entries for extending and replacing scriptsAnubhab Ghosh
2019-10-21Make the the resource menu button fallback to the Object icon instead of NodeMichael Alexsander
2019-10-14Make resource editor fallback to Object icon if none is foundMichael Alexsander
2019-10-13Increased step precisionDavid Sichma
Results in nicer numbers for float properties like 20.0 instead of 20.000001
2019-10-06Set tooltip to an empty string when clearingJoe Morton
Format Remove string conversion
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-06Make editor inspector easing lines use the accent color when draggedHugo Locurcio
This makes their visual feedback more consistent with other controls. This also makes easing lines slightly more subtle by decreasing their opacity by 10%.
2019-08-31Default ColorPicker color mode settingBhupendra Aole
There is a new setting for Default ColorPicker color mode in Editor Settings->Interface->Inspector. Initially this setting will be RGB. Editor ColorPicker will always start with mode defined in this settiing. Fixes #30755 and #30754
2019-08-30Editor: remove TOOLS_ENABLED guardsmerumelu
For code inside editor/ `#ifdef TOOLS_ENABLED` is always true so those checks are redundant.
2019-08-23Merge pull request #31586 from SonerSound/issue_31533Rémi Verschelde
Export path is the only path to be saved as a relative path
2019-08-22Export path is the only path to be saved as a relative pathSonerSound
Also reverts 90b2415343287f67586956c798d4b7a63544158f
2019-08-09Tweak the size of the multiline text edit popup dialogHugo Locurcio
This caps its size on large displays. This in turn prevents lines from becoming very long, which could hamper text readability.
2019-07-23Inspector: Make default float step configurableRémi Verschelde
Also allow lifting the decimal step formatting with a hint range step of 0. A new `range_step_decimals()` is added for this to avoid breaking compatibility on the general purpose `step_decimals()` (which still returns 0 for an input step of 0). Supersedes #25470. Partial fix for #18251.
2019-07-20Merge pull request #30576 from qarmin/lgtm_coverageRémi Verschelde
Changed some code reported by LGTM and Coverity
2019-07-20Changed some code showed in LGTM and Coverageqarmin
2019-07-19Make multiline text edit grab focus when popping upMichael Alexsander Silva Dias
2019-06-30Export path may now be written as a relative pathSonerSound
If the target directory does not exist, it will be recursively created. Export paths are now saved as a relative to the projects base directory Renamed relative_to function to final_path_from_relative which takes a relative path and outputs the final path from a string that represents a directory. Added relative_path_from_final which takes in a final path and outputs a relative path if possible. If not possible it outputs the relative path that represents the current directory. If the target directory does not exist when exporting the project, then it is recursively created. Removed final_path_from_relative function Changed DirAccess into DirAccessRef for automatic object destruction
2019-06-29Merge pull request #24156 from AnaDenisa/masterRémi Verschelde
Add option to input value in EditorPropertyEasing. Fixes #8449
2019-06-28Fix an EditorPropertyResource bug where clicking on the flat buttons would ↵LikeLakers2
not select the property in the inspector
2019-06-28Add option to input value manually in EditorPropertyEasingAnaDenisa
Double-clicking on the EditorPropertyEasing widget (e.g. for the Light Attenuation parameter) shows an EditorSpinSlider to set the value manually. Fixes #8449. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2019-06-26Some code changed with Clang-Tidyqarmin
2019-06-19Made use of semicolons more consitent, fixed formattingJohnJLight
2019-04-25Merge pull request #22301 from YeldhamDev/button_popup_highlightRémi Verschelde
Enable toggle behaviour for buttons that trigger popups
2019-04-19Added ability for multiple images to be imported as an atlasJuan Linietsky
This adds support for groups in the import system, which point to a single file. Add property hint for saving files in file field
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-04-06Merge pull request #26122 from vixelz/allow-embedding-gdscript-defined-resourcesRémi Verschelde
Include global class resources in Resource property inspector
2019-04-05Merge pull request #26954 from willnationsdev/refreshRémi Verschelde
Add a getter for the EditorInspector
2019-03-25Prevents crash on loading unrecognized resources.Anish
Editor crashes on trying to load resources with no loaders. Simple check on the resource loader prevents using a null resource loader. Fixes: #27385
2019-03-12Add EditorInspector getter. Update Sub-Inspectors.Will Nations
2019-03-09Allow class_name scripts to have nested inheritanceGeorge Marques
2019-03-06-Make tileset and meshlibrary edit in a separate inspector, fixes #26671Juan Linietsky
-Made relationship lines appear based on theme settings, not previous hack -Fix drawing of relationship lines (was broken) -Fix double initialization of theme settings
2019-03-04Ensure shader is not set if code did not changeJuan Linietsky