Commit Graph

671 Commits

Author SHA1 Message Date
Rémi Verschelde
5e9394fbe8 Merge pull request #49749 from DavidCambre/VisualScriptFunction_Call_Set_Get_Improvement-2
VisualScriptFunctionNodes Improvements
2021-07-21 11:22:59 +02:00
David Cambré
f0428a5c94 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.
Removes redundant method_select popup.
2021-07-21 10:15:36 +02:00
Nick Huelin
35565d39b4 Fix visual script icons
This pull request fixes an issue where the visual script icons weren't representative of their data.
2021-07-20 17:23:42 -04:00
Rémi Verschelde
ce29cc2228 Merge pull request #50581 from DavidCambre/VisualScript-Drop-Custom-Nodes
Allow dropping custom node scripts in VisualScript editor
2021-07-20 12:46:50 +02:00
Rémi Verschelde
bc059e63e6 Merge pull request #50566 from reduz/optimize-stringname-usage
Optimize StringName usage
2021-07-19 15:20:25 +02:00
reduz
c5931d7c14 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
Yuri Roubinsky
0834e15f6c Prevents some warnings from appearing in visual scripts 2021-07-18 19:41:51 +03:00
David Cambré
df5a4b0a14 VisualScript-Drop-Custom-Nodes
Allows to drop custom node scripts directly in VisualScript
2021-07-18 15:48:35 +02:00
Tomasz Chabora
7f3186137e Document remaining Visual Script classes 2021-07-13 23:43:46 +02:00
reduz
41e6f189fc Implement the ability to disable classes
* This PR adds the ability to disable classes when building.
* For now it's only possible to do this via command like:
  `scons disable_classes=RayCast2D,Area3D`
* Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
2021-07-13 09:25:14 -03:00
Rémi Verschelde
e14ce52b7e Merge pull request #50398 from Faless/mp/4.x_networked_rename
[Net] NetworkedMultiplayerPeer(s) renames
2021-07-12 19:22:12 +02:00
Fabio Alessandrelli
9a35f88f15 [Net] Rename NetworkedMultiplayerPeer to MultiplayerPeer. 2021-07-12 16:36:34 +02:00
Rémi Verschelde
13fc12b731 Merge pull request #50342 from Chaosus/vs_fix_function
Fix creating a new function in visual scripts
2021-07-10 15:13:33 +02:00
Yuri Roubinsky
41255a164a Fix creating a new function in visual scripts 2021-07-10 14:45:53 +03:00
Rémi Verschelde
72da5b725d Merge pull request #50041 from aaronfranke/prop-usage-flags
Use `PROPERTY_USAGE_NONE` instead of `0` for no property usage
2021-07-01 21:29:32 +02:00
Aaron Franke
09c8270756 Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
2021-07-01 14:13:27 -04:00
Dipal M Zambare
47d8d98121 Fixes Visual script nodes operator mismatch issue #49943 2021-06-29 15:01:34 +05:30
kleonc
34ab1c994c VisualScriptEditor Fix in graph position calculation (do not skip zoom) 2021-06-23 22:01:15 +02:00
Martin
a901bb7002 Fix logic operators mislabeled #49412 2021-06-23 12:04:55 +02:00
Rémi Verschelde
b697563c13 Merge pull request #49693 from LightningAA/instance-is-not-a-verb
Rename `instance()`->`instantiate()` when it's a verb
2021-06-20 09:39:29 +02:00
Lightning_A
6db897c183 Rename instance()->instantiate() when it's a verb 2021-06-19 20:49:18 -06:00
Eric M
122875c4e7 Added support for scripts reporting multiple errors to ScriptTextEditor
Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors.
2021-06-19 22:20:30 +10:00
Michael Alexsander Silva Dias
84271acf1d Better format arguments in variant parser 2021-06-18 00:06:40 -03:00
Rémi Verschelde
eba32e2874 Merge pull request #49043 from theoway/missing_description_vs_search_window_fixed
Fixes missing descriptions in Visual Script search window when adding nodes
2021-06-17 23:04:07 +02:00
Umang Kalra
2873b2e8d1 Fixes missing descriptions in search window of visualscript 2021-06-15 20:30:54 +05:30
Bastiaan Olij
f605d9d160 Adding some more missing renames for Transform3D and Quaternion 2021-06-15 16:01:50 +02:00
George Marques
c470e84518 Fix default value binding in VisualScriptFunctionState 2021-06-14 12:26:05 -03:00
kobewi
58b7bf0076 Consistently prefix bound virtual methods with _ 2021-06-12 00:55:52 +02:00
Pedro J. Estébanez
6c237004df Rename Reference to RefCounted 2021-06-11 18:48:42 +02:00
Jonathan Gollnick
e6d4346f80 Let var2str display StringName with correct sigil 2021-06-10 16:30:28 -05:00
Rémi Verschelde
6ab1c9d023 Merge pull request #49265 from KoBeWi/keepfreplace_2_keepers_of_replace
Move FindReplaceBar out of CodeTextEditor
2021-06-09 21:07:27 +02:00
Rémi Verschelde
2c0f903bf5 Merge pull request #49462 from TokageItLab/update-property-selector-icon-list
update property selector's icon list
2021-06-09 17:54:59 +02:00
Silc 'Tokage' Renew
9ae1a2e7d2 update property selector's icon list and rename Quat.svg to Quaternion.svg 2021-06-09 23:50:29 +09:00
kobewi
74dbc4bb6b Move FindReplaceBar out of CodeTextEditor 2021-06-08 23:23:07 +02:00
Rémi Verschelde
945159a79c Merge pull request #49433 from NoFr1ends/fix-49410
Rename missing shortcut names in visual script editor
2021-06-08 23:14:32 +02:00
Jonas Bernemann
a0109d39d8 Rename missing shortcut names in visual script editor
With the change of the shortcuts for common actions like delete, copy
and paste the delete menu items in the visual script editor for members
where missing because of a missing shortcut.
2021-06-08 20:03:19 +02:00
Rémi Verschelde
0ac385b189 Merge pull request #49221 from Faless/mp/4.x_rpc_refactor
[Net] Refactor RPCs, remove RSETs
2021-06-07 17:00:08 +02:00
Rémi Verschelde
8fad8b7035 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.
2021-06-07 11:03:08 +02:00
Yuri Roubinsky
cbf4a3d6eb Merge pull request #49365 from Chaosus/fix_visual_scripts_header_color 2021-06-06 21:34:37 +03:00
Yuri Roubinsky
ee7769b6ee Fixed color for node headers in visual scripts 2021-06-06 21:20:05 +03:00
Marcel Admiraal
65f1988621 Rename Quat to Quaternion 2021-06-04 18:14:32 +01:00
Aaron Franke
f90a890006 Rename Variant TRANSFORM to TRANSFORM3D
Also _transform to _transform3d
2021-06-03 07:30:01 -04:00
Fabio Alessandrelli
34be5981b9 [Net] Refactor RPCs, remove RSETs
In this PR:
- Removed rset
- rpc_config can now optionally configure transfer mode
  (reliable/unreliable/ordered) and channel (channels are not actually
  implemented yet.)
- Refactor how the RPC id is computed to minimize the logic in Node and
  scripts that now only needs a single `get_rpc_methods` function.
2021-06-01 17:24:21 +02:00
David Cambré
fe3c1bffbf The built in function math/seed was missing the sequenceport. 2021-05-22 14:01:35 +02:00
trollodel
4064bcd604 Improve TreeItem API and allow to move nodes 2021-05-17 22:06:46 +02:00
Rémi Verschelde
82497812ba Merge pull request #48168 from LightningAA/control-to-ctrl-4.0 2021-05-17 17:38:02 +02:00
sent44
7a7062322e Add get_base_editor to ScriptEditorBase 2021-05-15 18:47:00 +07:00
Lightning_A
0906e4af54 Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
Rémi Verschelde
c0ad735db8 Merge pull request #33577 from Calinou/highlight-control-flow-keywords
Highlight control flow keywords with a different color
2021-05-07 00:52:50 +02:00
Rémi Verschelde
8030307934 Merge pull request #45607 from Calinou/improve-editor-theme
Improve the editor theme
2021-05-06 16:45:07 +02:00