584 Commits

Author SHA1 Message Date
Rémi Verschelde
402d27c3ed Merge pull request #51166 from RandomShaper/fix_can_reset_3.x 2021-08-09 09:19:25 +02:00
Rémi Verschelde
8fd0cd8c11 Merge pull request #51208 from Chaosus/vs_cleanup_warnings_3.x
[3.x] Prevents some warnings from appearing in visual scripts
2021-08-03 11:08:00 +02:00
Rémi Verschelde
a100d5d5f9 Merge pull request #51207 from akien-mga/3.x-cherrypicks 2021-08-03 11:03:53 +02:00
Yuri Roubinsky
535960fcab [3.x] Prevents some warnings from appearing in visual scripts 2021-08-03 11:27:45 +03:00
Rémi Verschelde
02ee17f9a2 doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring
having all details in the method's description.

Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.

(cherry picked from commit 6846557be1)
2021-08-03 10:20:19 +02:00
Haoyu Qiu
f8471f68b0 Validates VisualScript.add_node input node
(cherry picked from commit 61295c2a31)
2021-08-03 09:33:25 +02:00
Pedro J. Estébanez
36c2185455 Add Script::inherits_script()
Partial cherry-pick of 3dcee28bb2.

Co-authored-by: Juan Linietsky <reduzio@gmail.com>
2021-08-02 15:18:30 +02:00
Haoyu Qiu
cb237c1b49 Make action names translatable 2021-07-31 22:19:47 +08:00
Rémi Verschelde
624bbb76b9 Merge pull request #50882 from akien-mga/3.x-cherrypicks 2021-07-26 14:31:17 +02:00
Gallilus
4a16b926cf Change "Add Preload Node" action to "Add Node(s)"
The action might also drop Custom Nodes

(cherry picked from commit 0bb9c1b0d9)
2021-07-26 13:36:07 +02:00
Rémi Verschelde
cf65b385c8 Merge pull request #50709 from DavidCambre/Improve-and-stramline-VisualScriptFuncNodes-Call-Set-Get
[3.x] Improve and streamline VisualScriptFuncNodes Call Set Get
2021-07-23 13:00:24 +02:00
David Cambré
4e792ac804 Improve and streamline VisualScriptFuncNodes Call Set Get
This PR improves and streamlines the workflow for VisualScriptFunctionNodes Call Set Get
Uniform design.
Drag in set-get from tree is now working.
port 'pass' not backported to 3.x to keep script backwards compatibility
2021-07-22 21:13:37 +02:00
Rémi Verschelde
f7098e8e5a Merge pull request #50696 from DavidCambre/Allow-dropping-custom-node-scripts-in-VisualScript-editor
[3.x] Allow dropping custom node scripts in VisualScript editor
2021-07-22 12:42:06 +02:00
Rémi Verschelde
767ffaefc3 Expose visual script custom node type hints 2021-07-21 19:33:10 +02:00
David Cambré
8a33608e4b Allow dropping custom node scripts in VisualScript editor 2021-07-21 15:01:07 +02:00
Rémi Verschelde
9c4071830c Merge pull request #50475 from akien-mga/3.x-cherrypicks 2021-07-15 12:19:47 +02:00
Tomasz Chabora
b1410bc498 Document remaining Visual Script classes
(cherry picked from commit 7f3186137e)
2021-07-15 10:46:04 +02:00
Rémi Verschelde
6ad439226a Merge pull request #49999 from kleonc/visual_script_editor-fix-position-when-zooming
[3.x] VisualScriptEditor Fix in graph position calculation (do not skip zoom)
2021-06-29 16:31:27 +02:00
kleonc
dd943be1dd VisualScriptEditor Fix in graph position calculation (do not skip zoom) 2021-06-29 15:32:16 +02:00
Rémi Verschelde
01af7cc3fd Merge pull request #49997 from akien-mga/3.x-cherrypicks 2021-06-29 14:56:18 +02:00
Umang Kalra
86fc486a8e Fixes missing descriptions in search window of visualscript
(cherry picked from commit 2873b2e8d1)
2021-06-29 13:11:47 +02:00
Rémi Verschelde
ce22b8440e Style: Cleanup uses of double spaces between words
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.

(cherry picked from commit 8fad8b7035)
2021-06-07 12:06:59 +02:00
David Cambré
782f64743f The built in function math/seed was missing the sequenceport.
(cherry picked from commit fe3c1bffbf)
2021-06-01 12:52:18 +02:00
Rémi Verschelde
5fe0d1b0cb Merge pull request #47751 from Calinou/highlight-control-flow-keywords-3.x
Highlight control flow keywords with a different color (3.x)
2021-05-25 09:20:46 +02:00
Hugo Locurcio
ba26c63dd0 Highlight control flow keywords with a different color
This makes them easier to distinguish from other keywords.
2021-05-25 00:31:39 +02:00
Rémi Verschelde
10eb2c702a VisualScript: Fix wrongly setting default value on property hint change
PR #45096 put the backported code in the wrong case, it should be for `type`
and not for `hint`.

Also synced `hint` enum values with `Object.PropertyHint`.

Fixes #48698.
2021-05-13 22:37:31 +02:00
Rémi Verschelde
6833bea01d Merge pull request #48475 from akien-mga/3.x-style-changes 2021-05-05 15:12:55 +02:00
Rémi Verschelde
72cacd5961 Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00
Rémi Verschelde
f3e02724a6 Merge pull request #48454 from akien-mga/3.x-style-changes 2021-05-04 17:55:17 +02:00
Rémi Verschelde
59e9b7aee3 Style: Enforce use of bool literals instead of integers
Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
2021-05-04 16:39:13 +02:00
Rémi Verschelde
8cc8a132ac Style: Replaces uses of 0/NULL by nullptr (C++11)
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2021-05-04 16:30:23 +02:00
Rémi Verschelde
116e3d4569 Merge pull request #48447 from akien-mga/3.x-style-changes 2021-05-04 16:30:15 +02:00
Rémi Verschelde
4d501e587c Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
Rémi Verschelde
994ab2f95c Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine 2021-05-04 14:45:15 +02:00
Rémi Verschelde
ad3b5f6971 Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
kleonc
91a015a063 Make posmod use int64_t instead of int 2021-05-03 22:03:16 +02:00
Rémi Verschelde
d38877a616 Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb.

There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.

Backport of #48239.
2021-04-29 12:34:11 +02:00
Rémi Verschelde
2fae164f4e Merge pull request #48209 from akien-mga/3.x-cherrypicks 2021-04-26 13:43:34 +02:00
Rémi Verschelde
8e7a44c537 doc: Update classref headers with 3.4 version 2021-04-26 13:15:29 +02:00
Rémi Verschelde
648bf9291b doc: Make all tutorial links point to 3.3 branch of docs 2021-03-26 10:43:43 +01:00
Rémi Verschelde
8588d87ca6 doc: Sync classref with 3.3 version bump 2021-03-23 13:40:34 +01:00
Pedro J. Estébanez
a1023f2e00 Modernize Mutex
- Based on C++11's `mutex`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed
- Simpler for `NO_THREADS`
- `BinaryMutex` added for special cases as the non-recursive version
- `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`.
- `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same.
2021-02-18 11:58:08 +01:00
Rémi Verschelde
460ad9886d Merge pull request #45828 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.4) - 21st batch
2021-02-09 09:35:58 +01:00
Kanabenki
6603578ab3 Snap VisualScript comment to grid when resizing
(cherry picked from commit 07fb7f9888126d189476ec9a6272447b7c9748ac)
2021-02-08 22:36:36 +01:00
Rémi Verschelde
b2d31c3d5f Merge pull request #45448 from pycbouh/graphedit-minimap-active-invisible-3.2
[3.2] Fix minimap capturing events and improve its theme and editor settings
2021-01-25 20:33:21 +01:00
Yuri Sizov
c0776f90f5 Fix minimap capturing events and improve its theme
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:34 +03:00
Rémi Verschelde
ab9abab463 Update copyright statements to 2021
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 🎆

(cherry picked from commit b5334d14f7a471f94bcbd64d5bae2ad853d0b7f1)
2021-01-13 16:17:06 +01:00
Rémi Verschelde
0f3927aff2 Merge pull request #45096 from Chaosus/vs_assign_default_value_3.2
[3.2] Auto-assign default value for variable in visual script on type changing
2021-01-11 10:39:39 +01:00
Yuri Roubinsky
d1e3e8bc86 [3.2] Auto-assign default value for variable in visual script on type changing 2021-01-11 10:29:12 +03:00
Rémi Verschelde
dbc8647b06 Merge pull request #44795 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.4) - 14th batch
2020-12-29 17:16:25 +01:00