Rémi Verschelde and GitHub
e3f3fc517a
Merge pull request #54653 from KoBeWi/built_in_scripts_deserved_that
...
Improve save handling for built-in scripts
2021-11-09 21:46:58 +01:00
kobewi
134e4d168b
Improve save handling for built-in scripts
2021-11-07 23:51:12 +01:00
David Cambré
d763ee8398
VisualScript-sync-and-improve-variable-and-property
2021-11-06 13:03:38 +01:00
kobewi
e393c2a734
Add is_built_in() method to Resource
2021-11-04 12:45:58 +01:00
David Cambré
8714e1e961
Fixes copy-paste issue in the visual script editor
...
Moves copy and paste in their own functions so copy_nodes_request and paste_nodes_request are able to work.
Applies paste offset to the last mouse clicked position.
2021-11-03 20:40:52 +01:00
Rémi Verschelde
3b11e33a09
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 15:19:35 +02:00
Paulb23
3010bca41b
Move add_syntax_highlighter bind to ScriptEditorBase
2021-10-11 18:13:31 +01:00
Lightning_A
c63b18507d
Use range iterators for Map
2021-09-30 15:09:12 -06:00
Yuri Roubinsky
dfae75d0c5
Fix incorrect call of _center_on_node in VisualScript editor
2021-09-18 10:58:28 +03:00
Yuri Roubinsky
1dda47c280
Added status bar and toggle scripts panel button to EditorHelp/VScripts
2021-09-15 11:35:03 +03:00
Max Hilbrunner
c314203a70
Fix Visual Script editor
2021-08-24 19:33:40 +02: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
Max Hilbrunner and Ignacio Roldán Etcheverry
81f7d1890b
Namespaces instead of underscore prefix for binds
...
Thanks to neikeq for the initial work.
Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com >
2021-08-17 16:10:09 +02:00
Anilforextra
d73d8b8d78
Fix duplicate conditions.
2021-08-13 12:22:38 +05:45
Rémi Verschelde
6e9439198c
Resource: Remove unused _use_builtin_script() virtual method
...
And another piece of dead code found while searching for "use_builtin".
2021-08-12 12:16:17 +02:00
Haoyu Qiu
284c6c81eb
Make action names translatable
2021-07-31 22:19:51 +08:00
Rémi Verschelde and GitHub
54f6b30bd4
Merge pull request #50840 from Gallilus/VisualScript-drop-preload-nodes-change-action-name
...
Change "Add Preload Node" action to "Add Node(s)"
2021-07-26 08:29:31 +02:00
Gallilus and GitHub
70a6ff0a71
Change "Add Preload Node" action to "Add Node(s)"
...
The action might also drop Custom Nodes
2021-07-25 13:47:57 +02: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
Rémi Verschelde and GitHub
b5f5fac840
Merge pull request #49749 from DavidCambre/VisualScriptFunction_Call_Set_Get_Improvement-2
...
VisualScriptFunctionNodes Improvements
2021-07-21 11:22:59 +02:00
David Cambré
10b4cb75f2
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
e50ab50169
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 and GitHub
124e27b7b2
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 and GitHub
855c7c7414
Merge pull request #50566 from reduz/optimize-stringname-usage
...
Optimize StringName usage
2021-07-19 15:20:25 +02: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
Yuri Roubinsky
88088f351a
Prevents some warnings from appearing in visual scripts
2021-07-18 19:41:51 +03:00
David Cambré
aefde680a4
VisualScript-Drop-Custom-Nodes
...
Allows to drop custom node scripts directly in VisualScript
2021-07-18 15:48:35 +02:00
Yuri Roubinsky
f9ab70eb60
Fix creating a new function in visual scripts
2021-07-10 14:45:53 +03:00
kleonc
921e6efe0d
VisualScriptEditor Fix in graph position calculation (do not skip zoom)
2021-06-23 22:01:15 +02:00
Lightning_A
e28fd07b2b
Rename instance()->instantiate() when it's a verb
2021-06-19 20:49:18 -06:00
Bastiaan Olij and Rémi Verschelde
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
Rémi Verschelde and GitHub
0818a466c0
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
67689dac7b
update property selector's icon list and rename Quat.svg to Quaternion.svg
2021-06-09 23:50:29 +09:00
Jonas Bernemann
3b18aa4910
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
Yuri Roubinsky
e02e50505c
Fixed color for node headers in visual scripts
2021-06-06 21:20:05 +03:00
Marcel Admiraal
8acd13a456
Rename Quat to Quaternion
2021-06-04 18:14:32 +01:00
Aaron Franke
08a85352fb
Rename Variant TRANSFORM to TRANSFORM3D
...
Also _transform to _transform3d
2021-06-03 07:30:01 -04:00
trollodel
bca0d36fe6
Improve TreeItem API and allow to move nodes
2021-05-17 22:06:46 +02:00
Rémi Verschelde and GitHub
6c367f8e0d
Merge pull request #48168 from LightningAA/control-to-ctrl-4.0
2021-05-17 17:38:02 +02:00
sent44
2b30728ebf
Add get_base_editor to ScriptEditorBase
2021-05-15 18:47:00 +07:00
Lightning_A
97fecd1b69
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 and GitHub
6e621441ca
Merge pull request #45607 from Calinou/improve-editor-theme
...
Improve the editor theme
2021-05-06 16:45:07 +02:00
Aaron Franke
0de9a7d803
Rename doubleclick to double_click
2021-05-04 04:38:08 -04:00
Hugo Locurcio
60b70c77e0
Improve the editor theme
...
The editor theme now makes use of rounded corners and less borders
to follow modern visual trends.
The default theme's colors were also tweaked to make the blue hue
more subtle (similar to the Arc theme, which was removed as a
consequence). The Alien theme was replaced by a Breeze Dark theme,
which should blend in well with the KDE theme.
2021-04-27 22:38:26 +02:00
Marcel Admiraal
86822b187e
Rename LineEdit caret_* properties getters and setters to match property
2021-04-17 12:41:23 +01:00
Rémi Verschelde
d83761ba80
Style: Apply clang-tidy's readability-braces-around-statements
2021-04-05 14:09:59 +02:00
Rafał Mikrut
504bc5cc67
Fix crashes in *_input functions
2021-04-05 08:52:21 +02:00
Aaron Franke
10d7fccb54
Rename ButtonList enum and members to MouseButton
2021-03-23 07:13:23 -04:00