Commit Graph

624 Commits

Author SHA1 Message Date
sent44
7a7062322e Add get_base_editor to ScriptEditorBase 2021-05-15 18:47:00 +07: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
Hugo Locurcio
5dc2c36069 Highlight control flow keywords with a different color
This makes them easier to distinguish from other keywords.
2021-05-05 22:38:12 +02:00
Rémi Verschelde
395de681a8 Re-bind posmod, use int64_t instead of int
Fixes #48420, fixes #48421.
The binding was missed when moving GDScript built-in to Global Scope it seems.

Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
2021-05-04 13:25:08 +02:00
Aaron Franke
6acc81c30e Rename doubleclick to double_click 2021-05-04 04:38:08 -04:00
Rémi Verschelde
d1a4a787cb Merge pull request #48292 from akien-mga/stay-modern
Replace remaining uses of `NULL` with `nullptr`
2021-04-29 12:11:27 +02:00
Rémi Verschelde
ada016cb1e Replace remaining uses of NULL with nullptr
Follow-up to #38736 (these uses were likely added after this PR was merged).
2021-04-29 11:53:27 +02:00
Hugo Locurcio
758fa0d8c2 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
Rémi Verschelde
e9b5ec763b Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb.

There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
2021-04-27 16:26:27 +02:00
Marcel Admiraal
a3434fa094 Rename LineEdit caret_* properties getters and setters to match property 2021-04-17 12:41:23 +01:00
Rémi Verschelde
8aac0b1096 Merge pull request #47642 from akien-mga/clang-tidy-fixes 2021-04-05 14:34:31 +02:00
Rémi Verschelde
0abfd7b89c Style: Apply clang-tidy's readability-braces-around-statements 2021-04-05 14:09:59 +02:00
Rémi Verschelde
ce107dd3b6 Style: Apply clang-tidy's modernize-use-nullptr 2021-04-05 14:05:07 +02:00
Rémi Verschelde
572c0e4f6b Merge pull request #47592 from jmb462/fix-VisualScriptFunctionState-connect-to-null-signal-crash
Fix VisualScriptFunctionState connect to null object crash (Fix #47572)
2021-04-05 12:15:58 +02:00
Rafał Mikrut
b1359d13ff Fix crashes in *_input functions 2021-04-05 08:52:21 +02:00
jmb462
0180a45dcf Fix VisualScriptFunctionState connect to null object crash 2021-04-03 12:13:26 +02:00
Aaron Franke
c2c0fd3546 Rename ButtonList enum and members to MouseButton 2021-03-23 07:13:23 -04:00
Anshul7sp1
a579127541 Fixes small typos and grammar correction 2021-03-12 19:05:16 +05:30
Rémi Verschelde
81bf140390 Merge pull request #43663 from EricEzaM/PR/INP4-dehardcode_scene_shortcuts
Remove hardcoded shortcuts from /scene and instead use the input action system to allow them to be customised.
2021-02-18 19:37:28 +01:00
Eric M
9dcd0214ec Removed hardcoded shortcuts from /scene and converted to input actions
This removes hardcoded actions from things like LineEdit and TextEdit.

Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-18 16:22:51 +01:00
reduz
9a402f0232 Improve resource load cache
-Added a new method in Resource: reset_state , used for reloading the same resource from disk
-Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type)
-Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-11 15:44:28 -03:00
Juan Linietsky
1891d0f88e Merge pull request #45879 from reduz/remove-change-notify
Removed _change_notify(property)
2021-02-10 20:06:14 -03:00
reduz
8de8017dac Removed _change_notify
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap.
-For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed()
-Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10 19:31:24 -03:00
Rafał Mikrut
72d6550244 Initialize class/struct variables with default values in modules/ 2021-02-08 10:57:18 +01:00
Kanabenki
178f564bd0 Snap VisualScript comment to grid when resizing 2021-02-06 21:39:35 +01:00
Rémi Verschelde
49769260a8 Merge pull request #45030 from aaronfranke/color-str-construct
Replace ColorN and from HTML with a string constructor
2021-02-02 09:49:35 +01:00
Aaron Franke
f593488534 Replace ColorN and from HTML with a string constructor 2021-02-01 17:27:19 -05:00
Yuri Sizov
a033ffdc66 Fix minimap capturing events and improve its theme
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:07 +03:00
Rémi Verschelde
7a60cc4b82 Merge pull request #44918 from Chaosus/vs_assign_default_value
Auto-assign default value for variable in visual script on type changing
2021-01-07 16:51:01 +01:00
Rémi Verschelde
a4d3b5e412 Merge pull request #44914 from swarnimarun/master-visualscript-refactor
Fix doc for the VisualScript class after #39649 PR
2021-01-04 21:19:00 +01:00
Swarnim Arun
d82e2ea20d Fix doc for the VisualScript class. 2021-01-05 00:15:53 +05:30
Yuri Roubinsky
dd6b30d3ac Auto-assign default value for variable in visual script on type changing 2021-01-04 21:10:04 +03:00
Rémi Verschelde
0a46675f02 Merge pull request #39649 from swarnimarun/master-visualscript-refactor
Visual Script Refactor
2021-01-04 15:02:23 +01:00
Rémi Verschelde
a6ce1b6bba doc: Sync classref with current source 2021-01-04 14:33:44 +01:00
Rémi Verschelde
175d908b16 Merge pull request #44859 from akien-mga/hello-2021
Update copyright statements to 2021
2021-01-01 21:24:55 +01:00
Rémi Verschelde
3debf92210 Update copyright statements to 2021
Happy new year to the wonderful Godot community!

2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.

We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)

Here's to a great year 2021 for all Godot users 🎆
2021-01-01 20:19:21 +01:00
Swarnim Arun
f396005107 Refactoring Visual Script
* for bloat from hacks for default function
* for ease of development nodes becoming detached from functions
2021-01-01 22:50:33 +05:30
Marcel Admiraal
246c54b09b Rename Math::stepify to snapped 2020-12-28 13:01:30 +00:00
Rémi Verschelde
56c66eeae5 Merge pull request #44401 from madmiraal/rename-empty-is_empty
Rename empty() to is_empty()
2020-12-28 13:23:25 +01:00
Marcel Admiraal
661173bdfc Rename empty() to is_empty() 2020-12-28 10:39:56 +00:00
Marcel Admiraal
2165537c1e Rename Control margin to offset 2020-12-23 06:25:56 +00:00
Yuri Roubinsky
0ed1582cf9 Fix broken members panel in visual script editor 2020-12-18 14:16:12 +03:00
Marcel Admiraal
22bc5277e7 Rename AcceptDialog get_ok() to get_ok_button()
Also renames:
- AcceptDialog add_cancel() to add_cancel_button()
- ConfirmationDiaglog get_cancel() to get_cancel_button()
2020-12-14 18:43:52 +00:00
Rémi Verschelde
46046f9a54 Merge pull request #44132 from aaronfranke/no-connect-compat
Remove connect *_compat methods
2020-12-06 00:55:28 +01:00
Aaron Franke
3706ea319f Remove connect *_compat methods 2020-12-05 17:56:47 -05:00
Thakee Nathees
fb8485a03e Refactor DocData into core and editor (DocTools) parts 2020-12-02 00:48:39 +05:30
Thakee Nathees
bbe199ea80 Documentation generation for GDScript
- ClassDoc added to GDScript and property reflection data were extracted
from parse tree

- GDScript comments are collected from tokenizer for documentation and
applied to the ClassDoc by the GDScript compiler

- private docs were excluded (name with underscore prefix and doesn't
have any doc comments)

- default values (of non exported vars), arguments are extraced from the
parser

- Integrated with GDScript 2.0 and new enums were added.

- merge conflicts fixed
2020-11-29 19:45:36 +05:30
Rémi Verschelde
dc176af890 Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
2020-11-28 09:04:25 +01:00
bruvzg
f215b764e6 [Complex Text Layouts] Refactor Font class, default themes and controls to use Text Server interface.
Implement interface mirroring.
Add TextLine and TextParagraph classes.
Handle UTF-16 input on macOS and Windows.
2020-11-26 14:25:48 +02:00