summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
AgeCommit message (Collapse)Author
2021-09-22Use Rect2's get_end().Anilforextra
2021-09-15Merge pull request #32068 from aaronfranke/transform-editorRémi Verschelde
Reformat Transform(2D) matrix display in the inspector
2021-09-05Apply set_read_only() to child classes of EditorProperty elementsSilc 'Tokage' Renew
2021-08-31Reformat Transform(2D) inspector menusAaron Franke
Move, rename, recolor, and fix the inspector for these in the inspector. Coloring is now done by a helper method in "editor_inspector.cpp".
2021-08-30Merge pull request #52245 from AndreaCatania/AndreaCatania-patch-4Juan Linietsky
EditorPropertyText, pass changing variable false.
2021-08-30Update editor_properties.cppAndrea Catania
2021-08-30EditorPropertyText, pass changing variable false.Andrea Catania
When the `EditorPropertyText` change is triggered, it pass the `changing` as true, while there is an early return that blocks such event to be emitted when the Editor is updating. This commit aligns the early return with the passes parameter.
2021-08-29Revert "Display a matrix for Node2D and don't display a duplicate origin"Juan Linietsky
2021-08-29Display a matrix for Node2D and don't display a duplicate originAaron Franke
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-12Merge pull request #51532 from nekomatata/layer-mask-accessorsRémi Verschelde
Uniformize layer names, script methods and documentation
2021-08-12Uniformize layer names, script methods and documentationPouleyKetchoupp
- Back to 1-based layer names to make it clearer in editor UI - Layer bit accessors are renamed to layer value and 1-based too - Uniform errors and documentation in render and physics - Fix a few remaining collision_layer used in place of collision_mask
2021-08-12Expose and cleanup TextEdit line wrap APIPaulb23
2021-08-07Added editor dialog for easily creating shaders.Yuri Roubinsky
2021-07-30Refactor layer property editor gridPouleyKetchoupp
- Now able to display up to 32 layers in physics (still 20 for render) - Adjustable grid size to fit available space in dock - Expansion icon to display more layers vertically - Layer numbers in cells to help with selection
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-07-13Add type variations to ThemeYuri Sizov
2021-07-01Use PROPERTY_USAGE_NONE instead of 0 for no property usageAaron Franke
Also use const more often.
2021-06-30Fix editor suffixes and degrees conversionreduz
* Functions to convert to/from degrees are all gone. Conversion is done by the editor. * Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees. * Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m" * In general, can add suffixes for EditorSpinSlider Not covered by this PR, will have to be addressed by future ones: * Ability to switch radians/degrees in the inspector for angle properties (if actually wanted). * Animations previously made will most likely break, need to add a way to make old ones compatible. * Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes. * Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-29Implement painting properties over TileSetsGilles Roudière
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-16Documentation search fixesGregory Basile
Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
2021-06-15Merge pull request #49083 from foxydevloper/make-easing-line-smoothRémi Verschelde
Make easing properties drawn with anti aliasing
2021-06-11Rename Reference to RefCountedPedro J. Estébanez
2021-06-04Rename Quat to QuaternionMarcel Admiraal
2021-06-03Rename EditorPropertyTransform to EditorPropertyTransform3DAaron Franke
2021-06-03Rename Variant TRANSFORM to TRANSFORM3DAaron Franke
Also _transform to _transform3d
2021-06-03Rename Transform to Transform3D in coreAaron Franke
2021-05-25Make easing properties drawn with anti aliasingfox
2021-05-19Use EditorResourcePicker in the InspectorYuri Sizov
2021-05-12Fix EditorPropertyEasing capturing drag events originated outside of itYuri Sizov
2021-05-09Fix EditorPropertyResource focus outline being drawn behind the previewHugo Locurcio
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