Commit Graph

761 Commits

Author SHA1 Message Date
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
Rémi Verschelde
b1ab16023b Merge pull request #55906 from Chaosus/vss_fix 2021-12-13 18:55:06 +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
Rémi Verschelde
8cee138698 Merge pull request #50139 from LightningAA/rename-remove-to-remove-at
Rename `remove()` to `remove_at()` when removing by index
2021-11-24 07:59:56 +01:00
Lightning_A
cb47e7f319 Rename remove() to remove_at() when removing by index 2021-11-23 18:58:57 -07:00
Yuri Roubinsky
df1fcaf100 Added reset_size method to Control and Window classes 2021-11-22 16:55:21 +03:00
Yuri Roubinsky
e56b37a0a8 Fix randfn in visual scripts 2021-11-17 18:52:44 +03:00
Yuri Roubinsky
1dca7ea720 Expose randfn to global scope 2021-11-17 14:29:19 +03:00
Rémi Verschelde
9b13c77b25 Replace Godot docs URL with $DOCS_URL in XML class reference 2021-11-15 13:02:21 +01:00
Rémi Verschelde
e6e1160b76 Merge pull request #51684 from aaronfranke/enum-class 2021-11-12 23:39:17 +01:00
Aaron Franke
9526feece0 Use "enum class" for input enums 2021-11-12 15:37:54 -06:00
Rémi Verschelde
16c662221c Merge pull request #54903 from aaronfranke/modules-no-editor
Make OpenSimplex and VisualScript modules not depend on editor files
2021-11-12 21:17:31 +01:00
Aaron Franke
2da99a9f01 Make OpenSimplex and VisualScript modules not depend on the editor 2021-11-12 12:03:54 -06:00
Rémi Verschelde
0706a17ac8 Merge pull request #53819 from TokageItLab/re-implement-ping-pong
Reimplement ping-pong animation and reverse playback
2021-11-09 22:11:04 +01:00
Rémi Verschelde
7398a03a64 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
aa23b76249 Improve save handling for built-in scripts 2021-11-07 23:51:12 +01:00
David Cambré
ba8abc832a VisualScript-sync-and-improve-variable-and-property 2021-11-06 13:03:38 +01:00
kobewi
a206d93d8f Add is_built_in() method to Resource 2021-11-04 12:45:58 +01:00
Rémi Verschelde
f55b3592c1 Merge pull request #54571 from Calinou/rename-noeditor-property-hint 2021-11-04 00:18:44 +01:00
Hugo Locurcio
5507c243c3 Rename PROPERTY_USAGE_NOEDITOR to PROPERTY_USAGE_NO_EDITOR
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
David Cambré
05f85a9e89 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
Silc 'Tokage' Renew
1da316233b reimplement ping-pong 2021-11-03 13:39:33 +09:00
Rémi Verschelde
a8b1696509 clang-format: Various fixes to comments alignment from clang-format 13
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 15:43:36 +02:00
Rémi Verschelde
4db876a82c 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
Marcel Admiraal
aaccecb0d8 Remove unimplemented methods 2021-10-21 18:44:25 +01:00
Gilles Roudière
efd8ba99d7 Implement toast notifications in the editor 2021-10-14 13:30:54 +02:00
Juan Linietsky
556ee2a8ab Merge pull request #53687 from godotengine/revert-48332-implement-ping-pong
Revert "Implement reverse playback and ping-pong loop in AnimationPlayer and NodeAnimation"
2021-10-11 19:28:34 -03:00
Juan Linietsky
0837a9115d Revert "Implement reverse playback and ping-pong loop in AnimationPlayer and NodeAnimation" 2021-10-11 19:27:50 -03:00
Rémi Verschelde
2abbede480 Merge pull request #48332 from TokageItLab/implement-ping-pong 2021-10-11 22:55:01 +02:00
Paulb23
8f8831841e Move add_syntax_highlighter bind to ScriptEditorBase 2021-10-11 18:13:31 +01:00
Tokage
b19f39d0a2 implement ping-pong loop in animation
Co-authored-by: Chaosus <chaosus89@gmail.com>
2021-10-09 18:08:43 +09:00
Rémi Verschelde
f38cbcd002 doc: Update links to latest documentation after content reorganization 2021-10-06 13:48:48 +02:00
kobewi
d7d542c5b9 Fix some leftover references to idle_frame 2021-10-04 20:57:31 +02:00
Rémi Verschelde
4ca06d1620 Merge pull request #51409 from LightningAA/use-map-iterators
Use range iterators for `Map` in most cases
2021-09-30 23:52:46 +02:00
Lightning_A
8cf95dee4d Use range iterators for Map 2021-09-30 15:09:12 -06:00
Rémi Verschelde
87125310ec Merge pull request #52877 from Calinou/add-print-verbose
Add `print_verbose()` built-in function to print in verbose mode only
2021-09-21 17:00:58 +02:00
Hugo Locurcio
e126128b49 Add print_verbose() built-in function to print in verbose mode only
This can be used as a shorthand for:

    if OS.is_stdout_verbose():
        print("...")

Unlike `print_debug()`, this works in release builds too and can
be toggled off in debug builds.
2021-09-21 15:59:49 +02:00
Aaron Franke
d20cff9207 Don't generate empty doc sections and reduce code duplication 2021-09-20 20:59:33 -05:00
Rémi Verschelde
95e9f88063 Merge pull request #52810 from Chaosus/vs_fix_gotoline
Fix incorrect call of `_center_on_node` in VisualScript editor
2021-09-18 12:40:34 +02:00
Yuri Roubinsky
468abdae1f Fix incorrect call of _center_on_node in VisualScript editor 2021-09-18 10:58:28 +03:00
Rémi Verschelde
5837c1d689 Merge pull request #52655 from Chaosus/toggle_scripts_panel 2021-09-17 13:54:54 +02:00
Max Hilbrunner
1fbfa0190e Merge pull request #52656 from akien-mga/rename-vseditor-singleton
Rename VisualScriptEditor singleton to VisualScriptCustomNodes
2021-09-15 22:51:45 +02:00