Commit Graph

806 Commits

Author SHA1 Message Date
Rémi Verschelde
83def92d87 Style: Cleanup single-line blocks, semicolons, dead code
Remove currently unused implementation of TextureBasisU, could be re-added
later on if needed and ported.
2022-02-16 14:06:29 +01:00
Haoyu Qiu
022c73fcb6 Fix VisualScript crash when using Set Index node 2022-02-16 15:27:41 +08:00
Rémi Verschelde
02425e4d48 Merge pull request #58136 from akien-mga/editor-includes-cleanup 2022-02-15 16:22:11 +01:00
Rémi Verschelde
92165cb7c1 Editor: Cleanup some includes dependencies
Removes some unnecessary includes from `editor_node.h`, and instead add
those where they're used.

Removes unnecessary `editor_node.h` includes in various editor classes.

Renames `dynamicfont` to `dynamic_font` in a couple files.

Misc cleanup while jumping through that rabbit hole.
2022-02-15 14:54:15 +01:00
Hugo Locurcio
c60bf051e0 Add an XML schema for documentation
This makes it easier to spot syntax errors when editing the
class reference. The schema is referenced locally so validation
can still work offline.

Each class XML's schema conformance is also checked on GitHub Actions.
2022-02-15 00:03:31 +01:00
Rémi Verschelde
bd3a47e3c3 Merge pull request #57954 from TokageItLab/refactor-cubic-interpolate
Implement `cubic_interpolate()` as MathFunc for refactoring
2022-02-13 10:34:13 +01:00
jmb462
285bc6bfa2 Fix renaming function dialog in VisualScript does not work correctly 2022-02-12 21:28:28 +01:00
Silc 'Tokage' Renew
1cc952bc43 Implement cubic_interpolate() as MathFunc for refactoring 2022-02-12 18:11:17 +09:00
Rémi Verschelde
a46cf2baf1 Merge pull request #57909 from akien-mga/codespell 2022-02-10 15:16:04 +01:00
Rémi Verschelde
2d58a2091e Fix typos with codespell
Using codespell 2.2-dev from current git.

Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
2022-02-10 12:30:19 +01:00
Rémi Verschelde
b7df73244f Merge pull request #57796 from akien-mga/revert-sname-theme-setters 2022-02-08 11:13:24 +01:00
Rémi Verschelde
7b93c2e6ab Re-add missing SNAME macros in get_theme_* calls
They were removed in the previous commit reverting the addition of `SNAME`
to `add_theme_*` and theme setter methods, which is not wanted.
2022-02-08 10:31:56 +01:00
Rémi Verschelde
e7f16d8a1e Revert "Add missing SNAME macro optimization to all theme methods call"
This reverts commit 48a1cb7c96.

As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
2022-02-08 10:17:25 +01:00
Rémi Verschelde
fa316dc084 Refactor some object type checking code with cast_to
Less stringly typed logic, and less String allocations and comparisons.
2022-02-08 10:08:34 +01:00
jmb462
48a1cb7c96 Add missing SNAME macro optimization to all theme methods call 2022-02-06 23:06:11 +01:00
bruvzg
96200e990d Cleanup and move char functions to the char_utils.h header. 2022-02-04 11:35:01 +02:00
Rémi Verschelde
6a776b9b29 Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
2022-02-03 22:21:24 +01:00
Anilforextra
7e95de1c59 String: Add contains(). 2022-02-04 01:28:02 +05:45
Rémi Verschelde
b68f34f3ed Merge pull request #57467 from webbuf/modules-initialize
Initialized Member Variables in /modules
2022-02-03 20:41:29 +01:00
zwebb
cc3a9884da initialized member variables in header 2022-02-03 11:14:42 -05:00
bruvzg
660970bd1f Add support for the escaped UTF-16 and UTF-32 Unicode characters in the scripts and expressions. 2022-01-30 20:16:04 +02:00
Nathan Franke
b5a6de95e4 simplify formatting scripts, add a clang-tidy script, and run clang-tidy 2022-01-29 04:41:03 -06:00
Yuri Sizov
a2cdc388a7 Update icons and color conversion rules to simplify the palette 2022-01-29 01:03:39 +03:00
Rémi Verschelde
bd0bbdcd7d Merge pull request #57080 from KoBeWi/ULTIMATER_PANNING 2022-01-23 16:03:35 +01:00
kobewi
f5cda30606 Minor tweaks and fixes to panning 2022-01-23 13:49:53 +01:00
Rémi Verschelde
466c7d20e1 Merge pull request #57000 from KoBeWi/UNLIMITED_PANNING 2022-01-23 00:47:52 +01:00
kobewi
f869309c77 Add ViewPanner to 2D editor 2022-01-21 18:35:06 +01:00
Rémi Verschelde
2f77495c2c Merge pull request #56252 from Gallilus/Update-visual-script-property-selector 2022-01-21 10:35:19 +01:00
Rémi Verschelde
fc862658e8 Merge pull request #55066 from trollodel/less_singletons_in_editornode 2022-01-20 22:29:17 +01:00
Rémi Verschelde
0eea7638c2 Merge pull request #52134 from RandomShaper/fix_naming 2022-01-20 22:01:37 +01:00
trollodel
3d90c54bb3 Store panels and docks singletons in their own classes 2022-01-20 20:13:26 +01:00
Pedro J. Estébanez
f1481707df Rename Variant::is_ref() to is_ref_counted() 2022-01-20 18:46:25 +01:00
Paulb23
15c6492d9a Convert TextEdit callbacks to Callable 2022-01-19 17:26:22 +00:00
David Cambré
98b6d803f0 Improve Visual Script editor to suggest the proper visual script nodes. 2022-01-17 20:22:22 +01:00
Rémi Verschelde
b4216e7923 Merge pull request #56808 from timothyqiu/crash-fix
Fix crash when exiting the editor
2022-01-15 09:34:43 +01:00
Haoyu Qiu
f39dd7418a Fix crash when exiting the editor 2022-01-15 11:22:18 +08:00
Rémi Verschelde
1338ad90c1 Merge pull request #55541 from KoBeWi/outcognito_scripts 2022-01-14 21:04:13 +01:00
kobewi
daeb06c50b Make script type distinguishable by icon 2022-01-13 12:29:05 +01:00
Rémi Verschelde
a6a86a8d52 Merge pull request #56646 from Chaosus/vst_context_menu 2022-01-12 11:39:06 +01:00
Rémi Verschelde
603481c93a Merge pull request #53185 from KoBeWi/viewing_pan 2022-01-12 11:36:41 +01:00
Haoyu Qiu
66ac415f08 i18n: Make VisualScript node caption & text translatable 2022-01-11 21:18:15 +08:00
kobewi
5d2371d595 Unify panning in sub-editors and make it configurable 2022-01-11 13:57:19 +01:00
Yuri Roubinsky
98c58138f7 Add context menu to visual script editor 2022-01-09 19:19:39 +03:00
Rémi Verschelde
39360d908e Merge pull request #56352 from Gallilus/Include-base-signals-to-VisualScriptEmitSignal 2022-01-05 11:02:10 +01:00
Rémi Verschelde
7a2dfcf238 Update copyright statements to 2022
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Rémi Verschelde
4abf7104e1 Merge pull request #53957 from fabriceci/new-template-workflow 2022-01-03 20:40:33 +01:00
Max Hilbrunner
f7ac4a4e50 Merge pull request #56440 from KoBeWi/returnals
Fix usage of "Return" in the docs
2022-01-02 23:49:04 +01:00
fabriceci
f69d7f463f Improve editor template workflow
Co-Authored-By: jmb462 <jmb462@gmail.com>
2022-01-02 21:52:09 +01:00
kobewi
5376803cb6 Fix usage of "Return" in the docs 2022-01-02 21:09:18 +01:00
David Cambré
bc8c95f9ad Include base signals to VisualScriptEmitSignal 2021-12-30 20:08:54 +01:00