Anilforextra
cc51b045da
Construct values only when necessary.
2021-09-23 22:26:07 +05:45
Yuri Roubinsky
c6d5c98c71
Fix pressing Add Node
button in visual shader editor
2021-09-15 19:01:02 +03:00
Juan Linietsky
d085b2d04d
Merge pull request #43838 from lupoDharkael/cancel-member
...
Clear connection data from/to empty after used
2021-08-30 19:38:51 -03:00
reduz
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_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-23 08:10:13 -03:00
reduz
3682978aee
Replace BIND_VMETHOD by new GDVIRTUAL syntax
...
* New syntax is type safe.
* New syntax allows for type safe virtuals in native extensions.
* New syntax permits extremely fast calling.
Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`.
These will require API rework on a separate PR as they work different than the rest of the functions.
Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-22 08:23:58 -03:00
Rémi Verschelde
e1e01427cc
Merge pull request #50411 from Chaosus/vs_filter
...
Added port type content filter on port dragging in visual shader
2021-08-18 20:43:03 +02:00
Yuri Roubinsky
f653cc13b9
Added port type content filter on port dragging in visual shader
2021-08-18 21:13:04 +03:00
Paulb23
ac39022dbc
Fix visual shader keyword colour
2021-08-18 17:56:04 +01:00
Paulb23
bcfc591f86
Reorganise text editor settings
2021-08-16 17:18:49 +01:00
Rémi Verschelde
24ec20414a
Merge pull request #50114 from Chaosus/vs_constants
...
Few improvements for constants in visual shader
2021-08-13 14:45:13 +02:00
Rémi Verschelde
f0e420e981
Merge pull request #51519 from Chaosus/vs_transform_operator
...
Changed `TransformMult` node to `TransformOp` in visual shaders
2021-08-13 14:44:14 +02:00
Yuri Roubinsky
b2b33ce4f6
Merge pull request #51572 from Chaosus/vs_fix_transform_instance
...
Fix printing error about unsupported modifier on `TransformUniform`
2021-08-12 21:23:18 +03:00
Yuri Roubinsky
c43b7c113f
Fix printing error about unsupported modifier on TransformUniform
2021-08-12 19:40:45 +03:00
Paulb23
7dbb0f3233
Rename readonly to editable
2021-08-12 09:29:58 +01:00
Yuri Roubinsky
9cf158019d
Changed TransformMult
node to TransformOp
in visual shaders
2021-08-11 22:05:04 +03:00
Yuri Roubinsky
0eb97c11cf
Few improvements for constants in visual shader
2021-08-11 13:14:16 +03:00
Yuri Roubinsky
8249ae8085
Fix incorrect position of the created VisualShader nodes on zoomed graph
2021-08-11 10:53:26 +03:00
Yuri Roubinsky
72a9ca1505
Added small offset to the content of nodes in VisualShader
2021-08-09 15:19:27 +03:00
Yuri Roubinsky
5e5cd2495d
Added editor dialog for easily creating shaders.
2021-08-07 21:02:13 +03:00
Yuri Roubinsky
a34a91a30b
Added more input/output built-ins to visual shaders
2021-08-03 09:32:40 +03:00
Rémi Verschelde
a6374c6675
Merge pull request #50703 from Chaosus/vs_remove_subparticles_from_start
...
Removes EmitParticle node from the start functions in visual shader
2021-08-03 08:14:15 +02:00
Yuri Roubinsky
bd6b7c4b0f
Merge pull request #51144 from Chaosus/vs_version
...
Makes dictionary instead of string for visual shader version
2021-08-02 21:55:50 +03:00
Yuri Roubinsky
94c6817b51
Makes dictionary instead of string for visual shader version
...
Update doc/classes/VisualShader.xml
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-08-02 21:34:19 +03:00
Paulb23
12f0053555
Move auto brace completion to CodeEdit
2021-08-01 12:06:33 +01:00
Yuri Sizov
969ba687ef
Put multiple colons back into translated strings
2021-07-31 20:08:07 +03:00
Rémi Verschelde
ac3322b0af
Use const references where possible for List range iterators
2021-07-25 12:22:25 +02:00
Aaron Franke
4e6efd1b07
Use C++ iterators for Lists in many situations
2021-07-23 17:38:28 -04:00
Yuri Roubinsky
80bd8171d0
Removes EmitParticle node from the start functions in visual shader
2021-07-21 17:56:01 +03:00
reduz
6631f66c2a
Optimize StringName usage
...
* 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-18 21:20:02 -03:00
Rémi Verschelde
536825d004
Rename Curve3Texture to CurveXYZTexture
...
Neither name is a perfect match but `Curve3Texture` looked too similar to
`CurveTexture` and `Curve3D`, which made things confusing when picking a
texture type or browsing the API reference.
2021-07-14 00:30:58 +02:00
Rémi Verschelde
aab6dc301c
Merge pull request #50086 from Geometror/label-improve-layout-options
...
Improvements to Label's layout options
2021-07-13 13:10:42 +02:00
Yuri Roubinsky
7d34701d63
Auto-set a first compatible uniform on dragging to create a UniformRef
2021-07-12 11:19:42 +03:00
Yuri Roubinsky
9d4afa8b75
Merge pull request #50149 from Chaosus/vs_curve3d
2021-07-11 12:36:56 +03:00
Yuri Roubinsky
2736c389aa
Fix a connection bug in visual shaders
2021-07-07 20:42:32 +03:00
Hendrik Brucker
56a8d3f30c
Improvements to Label's layout options
...
- Added options to trim the text in case it overruns
- Added more autowrap modes
- Improved line breaking, which ignores trailing spaces
2021-07-04 16:43:55 +02:00
Yuri Roubinsky
4cf2f79892
Added Curve3Texture to Visual Shaders
2021-07-04 12:21:19 +03:00
Aaron Franke
2508fd0533
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
...
Also use const more often.
2021-07-01 14:13:27 -04:00
Yuri Roubinsky
46cd36f009
Fix auto-connection from output node to input (VisualShaders)
2021-06-28 14:38:08 +03:00
Lightning_A
e28fd07b2b
Rename instance()
->instantiate()
when it's a verb
2021-06-19 20:49:18 -06:00
Gregory Basile
8ab13f8ace
Documentation search fixes
...
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-16 09:43:34 -07:00
Bastiaan Olij
2161fd117b
Adding some more missing renames for Transform3D and Quaternion
2021-06-15 16:01:50 +02:00
kobewi
7ff135b015
Consistently prefix bound virtual methods with _
2021-06-12 00:55:52 +02:00
Yuri Roubinsky
f632e36ae5
Continuation of work on visual particles system
2021-06-07 20:33:17 +03:00
Yuri Roubinsky
b2d2822a39
Adds UVFunc
for panning/scaling on UV's to VisualShader's.
2021-06-07 08:31:48 +03:00
Aaron Franke
6f472d154b
Rename EditorPropertyTransform to EditorPropertyTransform3D
2021-06-03 21:58:26 -04:00
Yuri Roubinsky
8456682222
Fix changing theme coloring for error label in VisualShader editor
2021-06-03 10:58:55 +03:00
Paulb23
680dc9e81a
Add comment and string tracking to CodeEdit
2021-06-01 15:38:45 +01:00
Yuri Roubinsky
f06db8b778
Added Billboard Node to Visual Shaders
2021-05-28 09:24:06 +03:00
Yuri Roubinsky
8f9b91dab1
Implements expandable color ports in visual shaders
2021-05-26 10:45:53 +03:00
Yuri Roubinsky
6772f70ec3
Fixes adding nodes on dragging in visual shaders
2021-05-24 13:50:10 +03:00