Rémi Verschelde
26d51fa0c3
Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init
...
Didn't commit all the changes where it wants to initialize a struct
with `{}`. Should be reviewed in a separate PR.
Option `IgnoreArrays` enabled for now to be conservative, can be
disabled to see if it proposes more useful changes.
Also fixed manually a handful of other missing initializations / moved
some from constructors.
2022-05-02 16:28:25 +02:00
David Cambré
ea620759ca
Improve VisualScript search and instancing of nodes
...
Constructors are more accessible.
Basic type methods are now based on ClassDB and not registerd_node_names.
Selecting search_classes now automatically changes the scope.
2022-04-17 15:21:26 +02:00
Nicholas Huelin
d2a3675ec8
Fix Visual Script's jump to function relative to zoom
...
When double-clicking on a function name the graph will now correctly jump to the function relative to the zoom ratio.
2022-04-12 15:27:49 +02:00
Rémi Verschelde
b00aef8f29
Zero initialize all pointer class and struct members
...
This prevents the pitfall of UB when checking if they have been
assigned something valid by comparing to nullptr.
2022-04-04 19:49:50 +02:00
Aaron Franke
d1feea8ccb
Initialize bools in the headers in editor
2022-03-12 13:34:06 -06:00
reduz
00e3a9b7a1
Remove VARIANT_ARG* macros
...
* Very old macros from the time Godot was created.
* Limited arguments to 5 (then later changed to 8) in many places.
* They were replaced by C++11 Variadic Templates.
* Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard.
* Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-03-09 18:39:13 +01:00
Raul Santos
e9e0b643ef
Sort variables in VisualScriptEditor
...
Sorts the script variables in alphabetical order to display them
in VisualScriptEditor.
2022-02-24 21:18:02 +01:00
megalobyte
f649a96f6a
Don't process VisualScriptNodes
2022-02-19 14:33:27 -05:00
Rémi Verschelde
de2d041f6e
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
...
Convert _notification methods to switch - Chunk C
2022-02-16 20:58:55 +01:00
Jakob Bouchard
2768f4bb23
Convert _notification methods to switch - Chunk C
2022-02-16 13:03:05 -05:00
MisoMosiSpy
3183e25ca4
Added icons for missing types in visual script’s icon list.
2022-02-16 20:31:18 +05:30
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
jmb462
285bc6bfa2
Fix renaming function dialog in VisualScript does not work correctly
2022-02-12 21:28:28 +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
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
zwebb
cc3a9884da
initialized member variables in header
2022-02-03 11:14:42 -05: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
trollodel
3d90c54bb3
Store panels and docks singletons in their own classes
2022-01-20 20:13:26 +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
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
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
7a2dfcf238
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Yuri Roubinsky
14d47b6399
Fix incorrect placement of default value editor in visual scripts
2021-12-13 19:32:24 +03:00
Nathan Franke
c4524d0331
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
Nathan Franke
d60470a957
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
jmb462
1c4e5a5bc7
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com >
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com >
2021-12-06 14:29:48 +01:00
Umang Kalra
791e48f793
Fixes variable/singal nodes not renaming in visualscript editor
2021-11-24 23:56:43 +05:30
Yuri Roubinsky
df1fcaf100
Added reset_size method to Control and Window classes
2021-11-22 16:55:21 +03:00
Aaron Franke
9526feece0
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Aaron Franke
2da99a9f01
Make OpenSimplex and VisualScript modules not depend on the editor
2021-11-12 12:03:54 -06:00